Server :: Optimizing Apache2 Load?
Jul 23, 2011
I would like to ask how can I optimize apache2 load on my dedicated server. I am hosting Facebook applications on it, but most users will get a Timed Out message when they try to access it. I was tinkering with MaxClients directive in apache2 config, and it got better, but still it's not best. Programmers are trying their best to optimize the applications at their side, but I am afraid this is an server issue.
View 2 Replies
ADVERTISEMENT
Nov 19, 2010
I have suse10 64 bit installed. I am setting up a svn server on it. After installation and adding the modules ,while reloading the apache2 it's throwing the error as: HTML Code: httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server
View 9 Replies
View Related
Dec 9, 2009
I am getting this error
Starting web server: apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost XX.XX.XX.XXX:80 has no VirtualHosts(99)Cannot assign requested address: make_sock: could not bind to address 68.178.232.100:80
no listening sockets available, shutting down Unable to open logs failed!
also what is 68.178.232.100
View 1 Replies
View Related
Oct 30, 2010
With optimizing my webserver.
Hardware
- Intel Q8300 2.33 GHz
- 2GB RAM
- 100 Mbit
Code:
Ok this might get a bit messed up ... but basically..
When someone visits the site, the connection should be terminated in 30 sec and if he wishes to further browse reconnected.
How i can maximize output, the more users server can entertain the better. on peak times i get around 2000 visitors, so any tips on how to compensate the most..
View 7 Replies
View Related
May 4, 2010
I'm attempting to use mod_security with apache2 but it doesnt seem to load. Running Ubuntu 9.10.
Code:
$ ls -a mods-enabled/
. authz_host.load dir.load php5.load
.. authz_user.load env.load setenvif.conf
alias.conf autoindex.conf mime.conf setenvif.load
[code]....
View 1 Replies
View Related
Nov 30, 2010
My apache and wordpress were running fine till this morning. I ran updates via webmin,though I wasn't sure what those updates were for.
Then when I tried to access mysite.com, index.php downloads instead of opening.
I tried some troubleshooting and followed a form where it was advised to enable mod php5, so I did a2enmod php5 and tried to restart apache. Since I get this error Cannot load /usr/lib/apache2/modules/libphp5.so into server.
View 1 Replies
View Related
Feb 3, 2011
we have an ubuntu server (10.04 LTS) with apache2 (2.2.9) and mod_proxy + proxy_balancer enabled.Reverse proxy works greatly, but I can't get load balancing working. Apache connect always to first member.
My configuration is as follow:
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Proxy balancer://test>
[Code]...
View 6 Replies
View Related
Oct 24, 2010
Using Debian Lenny I'm getting the following message in my mail: /etc/cron.daily/logrotate:
Quote:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
View 1 Replies
View Related
Jan 19, 2010
I am working on optimizing the iptables. I came across some way of optimizing the rules by removing the redundant rules and merging the rules . Is there any other way to increase the optimization of iptables ?The network that we applied the iptables is a simple LAN network. (College Network)
View 1 Replies
View Related
Aug 24, 2010
I have just bought a digital-to-analog converter, this one to be exact, along with an amplificator and two speakers. I'd like to get the most of my Ubuntu, a good sound (what player can I use ?) and to know wether I need to do some extra changes in the kernel (OSS / PulseAudio / ALSA ?) or not.
I wonder if my converter will be detected when i plug it in, and if any sound from my computer will be leaded to it automatically ? (I'll have the converter tomorrow). I believe its purpose is to replace the sound card, to provide a greater, pure sound. The converter is linked by USB by the way.
View 4 Replies
View Related
Apr 28, 2011
I have a friend who is using Ubuntu 10.10 Netbook Edition on their netbook and well they love it. However, I notice that at times (if not all the time) their internet is ridiculously slow. Yes, it's a 1 Mbps download connection, but I still think it's a little slow and at times I can't even get it to load a website. I'm thinking if I adjusted the MTU within Ubuntu, it might improve, if even only slightly. I believe the router is set to 1490 or 1500, I haven't really looked yet.
View 3 Replies
View Related
Aug 20, 2010
In one of my interview, interviewer asked the following question on deep copy constructor:
When we are externally overloading the copy constructor is there any optimization strategies when we are using several copy constructors.
View 2 Replies
View Related
Apr 12, 2011
I wrote a little Bash script which accepts two values -- sender address and recipient address -- and finds any instances of mail sent from sender to recipient in /var/log/maillog. The script works fine, but it seems to be very inefficient. I'm just wondering how I can optimize it.
Code:
Example:
Code:
Again, it seems to work fine, but the script greps through /var/log/maillog three times -- first to find the sender; second to see if it's also going to the desired recipient; finally to view all instances of the message ID in the logs. This seems redundant and inefficient.
View 3 Replies
View Related
Jul 13, 2011
I'm trying to solve this problem, but always get Time limit exceeded. I've tried my best but still can't get under time limit. Could you please give me some hint about it?
Code:
#include <iostream>
#include <cmath>
[code]...
View 14 Replies
View Related
May 12, 2010
I'm running 10.04 with Apache2/PHP5.x I wanted to test some basic cgi scripts, but my browser is displaying the code (#!...) If I run the scripts on the console, they work fine so CGI is not the problem, it's apache. To install the CGI module I ran sudo apt-get install libapache2-mod-perl2 with no problems. By the way, I installed Apache through apt-get instead of doing it manually, but it seems that the installation divides the conf file in different parts, so the regular apache2.conf has this:
Code:
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
# Include all the user configurations:
Include /etc/apache2/httpd.conf
# Include ports listing
Include /etc/apache2/ports.conf
[Code]....
I can't figure out what I need to do to get CGI working on my server.
View 9 Replies
View Related
May 14, 2010
I seem to be having a problem with mod_proxy and https websites. A simple connection to port 80 works fine but all calls to 443 fail.
I had a look at my firewall but can't see anything that would block port 443, although I get no tcpdump traffic on that port on the deb01 client when I try and connect to it. I disabled the firewall but still no luck.
My configuration consists of 3 VMs (KVM) each running a different website.
I get the following error when connecting to ssl deb01
Code: An error occurred during a connection to deb03.example.com.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
The following is what can be found on the host
Code:
View 1 Replies
View Related
Jun 15, 2010
I am having some problems after installing apache2-mpm-itk on my Debian 5.4 server. From my understanding apache2-mpm-itk will run child processes as root until a http request is received. It then suid's to the username in the VirtualHost directive. This is all working fine, as I can see a few apache processes started by a specific user.
However, the problem is when I try to restart apache. It will kill all the processes running by root but wont kill any of the processes that have been suid'ed to another username.
When i attempt to restart I get this error:
Code:
charged:/etc/apache2# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
[Code]....
If I do a "ps aux | grep apache" before and after I see all the root processes killed, but processes running as specified users from VritualHost directive remaining.
Now I am not an extreme linux power user, but I know a bit.
View 1 Replies
View Related
Apr 30, 2010
I downloaded grails [URL]... and installed it. Created a sample application hello world. It was running successfully. In browser [URL].. I was able to see grails running. Now comes the problem. To be able to always start the grails application running after boot I wrote a script in /etc/init.d/software_grails its contents are
[code]...
I have to open command prompt and go to /root/helloworld and then execute grails run-app. you dont have to write the name of application to run it. logging of boot messages is enabled /etc/default/bootlogd BOOTLOGD_ENABLE=Yes. then I opened /var/log/boot.
[code]...
But it does not work. If I am not wrong then above method will work ONLY WHEN some one Logs in not on boot time. Is there a way where I can embed grails in apache2 they [URL]... have not mentioned any thing about apache2 to deploy my applications.
View 2 Replies
View Related
Sep 14, 2010
I want to learn perl CGI. I tried to configure it on apache server. But when I was searching about it in the net, I faced some difficulties. Each and every post has been leaded me in different way. I am confused now. I have done this,
1. Installed this libapache2-mod-perl2 module
2. Then I checked the /etc/apache2/mods-available/ using ls command for checking the module availability.Here I mentioned the output of ls command.
[Code]...
View 2 Replies
View Related
May 24, 2011
I have lots of bots searching for broken PHPAdmin URL's showing up in my apache2 logs. (Guess why I don't run PHPAdmin)
View 1 Replies
View Related
Nov 6, 2010
I have a problem about redirection over Apache2 over Debian Lenny. We have build a LAMP, and our programmer make a software with these features:
When you put on your browser (i.e.) [URL], you access to the program in /var/www/vhosts/hugohome/inside. And when you put [URL] you access to the program in /var/www/vhosts/hugohome/outside. Today, if you just put [URL] our Apache answers 403 (forbidden), because we had blocked folder access. (You know....isn't the right way). Our Apache's Document Root is in /var/www/vhosts/hugohome.
Our goal is to change definitely [URL] to access -> /var/www/vhosts/hugohome/inside. This is our main intention. Also, we can continue with [URL] pointing to /var/www/vhosts/hugohome/outside. I thought, hmm easy!: I can change the DocumentRoot to /var/www/vhosts/hugohome/inside and try with an Alias to outside. But the problem is that the programmer has taken the software reference with /var/www/vhosts/hugohome and when I tried to change the Document Root the programs didn't work fine (loops, error 404, etc).
How can I do?. I have tried with Apache with many manners, but I just have a relative success with: "RedirectMatch ^/$ [URL]". It works, but the Browser shows the ugly [URL]. Our intention is just show [URL]. Unfortunately we can't work directly with the DNS servers, and I guess that I can resolve with (i.e.) Apache and Bind together.
View 3 Replies
View Related
May 10, 2011
why apache2 won't run my shell script i made.So in detail this is what i want it to do. I have a apache2 web-server running on my mac and i found some shell commands that control itunes so i wrote a shell script that basically pause's itunes. Now i have put the shell script in the cgi executable folder. and the link for the webpage is http://10.10.0.110/cgi-bin/itunes.sh but when i goto the page in my browser it just keeps loading. I have run other scripts and they work and i don't think you need root access.
View 7 Replies
View Related
Nov 22, 2010
Im currently serving a web in apache2; no problems I recently set up squid to filter internet for my LAN users.
***i dont want squid to accelerate WEB requests in my apache2.
So the problem is that SQUID blocks my 192.168.1. LAN denied attemps, so far, its ok BUT IT ALSO BLOCKS ANY OF THE INTERNET USERS TRYING TO REACH MY HOSTED WEB.
Can i have both servers in the same box without interferring each other?
View 6 Replies
View Related
Apr 23, 2010
Its a silly problem but I am facing it.The OS is Debian Lenny ,apache2. I am having a webserver.www.mydomain.comand site1.mydomain.comsite1 is on a webserver which is on LAN.
On main server i.e. our Gateway
in /etc/apache2/sites-available/
I have
[code].....
View 4 Replies
View Related
Aug 13, 2010
I am running Ferdora 12 (constantine) 64 with Intel Xeon 3.2GHz processor + 12GB Ram. I am running this machine specifically for number chunching applications but it isnt running as fast as i thought it would! Are there any tips to optimizing the speed of processors in fedora?
View 7 Replies
View Related
Jan 19, 2010
I recently purchased a Western Digital 1TB USB hard drive to use for general data storage. I had thought about repartitioning it into 8 - 10 individual drives (most Linux users will doubtless understand the arguments for and against this) and reformatting them with another filesystem, probably ext2.
The unit actually consists of two 500GB drives that are presented by the internal controller as a single 1TB drive, and are formatted with the old HPFS/NTFS filesystem, so I'm a bit cautious about the possibility of my original plan confusing the drive's controller. Does anyone have any experience with these large drives, any thoughts about repartitioning/reformatting, and relevant criteria for optimizing their use?
View 1 Replies
View Related
Nov 21, 2010
Where can I find comprehensive information on optimizing Linux? I keep searching online but seem to get only to performance monitoring. I don't want to run a lighter version of Linux or upgrade my hardware! Just want to get my current distro and future ones I might install to run at its best.
View 8 Replies
View Related
Jan 15, 2011
I tried to summarize the this as best as possible in the title. I am writing an initial value problem solver in the most general way possible. I start with an arbitrary number of initial values at arbitrary locations (inside a boundary.) The first part of my program creates a mesh/grid (I am not sure which is the correct nuance), with N points total, that contains all the initial values. My goal is to optimize the mesh such that the spacing is as uniform as possible. My solver seems to work half decently (it needs some more obscure debugging that is not relevant here.)
I am starting with one dimension. I intend to generalize the algorithm to an arbitrary number of dimensions once I get it working consistently. I am writing my code in fortran, but feel free to reply with pseudocode or the language of your choice.Allow me to elaborate with an example:Say I am working on a closed interval [1,10]
xmin=1
xmax=10
Say I have 3 initial points: xmin, 5 and xmax
num_ivc=3
known(num_ivc)=[xmin,5,xmax] //my arrays start at 1. Assume "known" starts sorted
I store my mesh/grid points in an array called coord. Say I want 10 points total in my mesh/grid.
N=10
coord(10)
Remember, all this is arbitrary--except the variable names of course. The algorithm should set coord to {1,2,3,4,5,6,7,8,9,10} Now for a less trivial example:
num_ivc=3
known(num_ivc)=[xmin,5.5,xmax
or just
num_ivc=1
known(num_ivc)=[5.5]
Now, would you have 5 evenly spaced points on the interval [1, 5.5] and 5 evenly spaced points on the interval (5.5, 10]? But there is more space between 1 and 5.5 than between 5.5 and 10. So would you have 6 points on [1, 5.5] followed by 4 on (5.5 to 10]. The key is to minimize the difference in spacing.I have been working on this for 2 days straight and I can assure you it is a lot trickier than it sounds. I have written code that
only works if N is large
only works if N is small
only works if it the known points are close together
[code]....
So as you can see, I have coded the gamut of almost-solutions. I cannot figure out a way to get it to perform equally well in all possible scenarios (that is, create the optimum spacing.)
View 3 Replies
View Related
May 4, 2010
I'm a web developer and I make plug-ins for various shopping cart softwares on demand. because of this I'm constantly installing carts and then immediately updating them/modifying them. The problem I'm having is that I'm having to update the permissions manually all the time (every time I copy a new cart into the /var/www folder). Instead of doing this I'd like apache2 to run under my user, so I don't ever have to update the permissions again. How do I do this?
View 1 Replies
View Related
Jun 14, 2010
I have recently downloaded and installed apache2 http server from tarball source (i'm running ubuntu but i think its more fun to use tarballs i don't know why but its how i am) anyway i just installed apache2 and when i go into the servers section of webmin and click on apache web server i get this message:
The Apache server executable /usr/local/apache2/conf/ does not exist. If you have Apache installed, adjust the module configuration to use the correct path. and when i go to the configuration menu i don't understand a word of it.
View 9 Replies
View Related