How To Change MaxClients On Apache2
Jan 8, 2008
Since I upgraded to apache2.2 I dont seem to be able to find the "MaxClients" setting in httpd.conf.
I spent some time on google and aparently this has been taken out because apache2 is multi-threaded. What I do know is no more than about 250 people can connect to my server.
View 13 Replies
ADVERTISEMENT
Aug 17, 2014
I am using Plesk 12 / Ubuntu 14.04
In PLESK 11 I could set maxclients, ServerLimit ..... in /etc/apache2/apache2.conf
But I cannot find these settings in apache2.conf.
Where to configure these settings, in which file?
View 6 Replies
View Related
May 27, 2009
im using apache2, and in apache config i set maxclients value is 60.
it mean, my vps will accept only 60 clients at the same time.And when vps have more than 60 clients, all clients over are locked out till my vps have less than 60 connections.
But when my vps had more than 60 clients, apache is crash, ram is not full, and i must restart apache.
View 6 Replies
View Related
Jun 13, 2008
i want to larger the "MaxClients",
i add the MaxClients 1000 in the httpd/conf/httpd.conf and restart the httpd
but it looks likely not work at all,
what should i do else?
my apache is version 2
View 10 Replies
View Related
May 25, 2008
Noticed that our http.conf file only contains MaxClients but not HardServerLimit. Is it because we are running an older version of Apache where the server limit has to be compiled with that set? We are running: 1.3.37
Our management server has set MaxClients to 2000 and it seems to work. Have been doing lots of reading and this number may cause issues when the server spikes in traffic. Most users recommend a number below 500.
View 0 Replies
View Related
Mar 25, 2008
I`m on VPS 768Ram WHM/Cpanel
when i check error log on apache i see that error around 5 times daily.
[error] server reached MaxClients setting, consider raising the MaxClients setting
the apache restart automatically (~3 second). and that the problem when user make downloading all connections CUT.
my httpd.conf
maxclients 150
maxrequestperchild 0
i can increase maxclients no problem but i don`t know if i need to do something else or not.
Is there any way to LIMIT connection ( if server get more than 256 connection it says SERVER BUSY and doesn`t accept any connection )
View 7 Replies
View Related
Nov 30, 2007
well now my server load is back to normal i.e 1 - 2
but i want to increase the maxclients limit in my httpd.conf..
when i did 312 and restarted it, it says the max is 256.. so how do i increase the limit
View 8 Replies
View Related
Mar 23, 2005
I am using prefork MPM in apache because we are running php which is not thread safe.
I have a ServerLimit of 500 and a MaxClients/MaxSpareServers set at 500. However, the server seems to be stuck at 352 processes.
Any ideas of why that may be?
View 0 Replies
View Related
Feb 1, 2007
One of my sites gets around 10k+ visitors a day which has caused my httpd to be really slow.
My MaxClients is set to 250.
What should I do to get it back to normal?
View 5 Replies
View Related
Jun 18, 2015
I am using apache 2.2 webserver and tomcat 6 as app server.
I have two unix boxes (let say A and B) where apache is installed for load balancing purpose.
The issue is now and then I see that on both the server reaches to 250 busy servers which makes my site very slow and after some time the site is unaccessible.
When I see this I restart apache on both unix boxes and also restart my app server.
But that does not work. As soon as I start apache the httpd process ramps up to 12 (ps -ef | grep httpd) within a minute and the busy servers still remains at 250.
The only I have to do is wait and watch till the busy servers goes down to 250 and then site is back to normal.
Some times it takes hours for busy servers to go down below 250.
I dont understand that why even restarting apache and tomcat doesn't work. why the busy servers are still at 250. even after I restart.
This is what I have in httpd.conf
<IfModule worker.c>
ServerLimit 80
StartServers 2
MaxClients 250
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
I tried to increase MaxClients to 300, which also didn't work and apache or httpd process shuts down by itself.
View 3 Replies
View Related
Apr 28, 2009
Usually our website traffic is about 50 MB/day in our dedicated server. From these past 2 days it's consuming 5 GB/day and Apache2 opens so many processes/connections that our router can't handle and turns our WAN/LAN extremely SLOW!
If the reboot the server, it calms down but soon the apache2 starts again to open the connection (+1000).
Can this be a worm? I'm using Ubuntu Server 8.04.
View 2 Replies
View Related
Oct 25, 2007
I am still running apache 1.3 something on my debian vps but debian would really like to upgrade to apache 2 (Ie PHP5 updates).
So I wanted to ask what the advantages and disavantages of running apache2 is?
Can apache2 use a 1.3 httpd.conf?
View 4 Replies
View Related
Apr 4, 2009
Ive had this problem numerous times (website failed to connect error) before and the web management team tell me that apache2 needs to be restarted, seeing as they are not replying to my emails im gona try and do it myself.
i open up putty, login as root user, then what?
View 2 Replies
View Related
May 7, 2008
I have a problem. When MSN Search robot looks through my VPS, the machine is going "asleep", e.g. Apache2 (Port 80) doesn't answer at all. Here is the last falling:
Code:
23:14:15 up 4 days, 9:06, 5 users, load average: 37.18, 31.25, 27.46
I hardly ever can enter 'pkill apache2' to kill Apache2 processes. Here is my Apache2 configuration (timeouts, prefork, e.g.):
Code:
Timeout 30
KeepAlive On
MaxKeepAliveRequests 20
KeepAliveTimeout 5
<IfModule mpm_prefork_module>
StartServers 2
MinSpareServers 2
MaxSpareServers 5
MaxClients 10
MaxRequestsPerChild 400
</IfModule>
Maybe I configured Apache2 wrongly, but I only want to prevent this bad thing.
View 2 Replies
View Related
Apr 13, 2008
I just wondered if anyone can help me out with an Apache problem. I currently run Debian 3.1 (on 10 GB space and 256 MB of RAM) with Apache 2.0.59 installed through apt-get.
Apache runs with 10 child processes running simultaneously to handle multiple requests at once. I have set up Apache to use virtual hosts for every single account since they are hosted on their own domains/subdomains.
I put in a crontab to restart Apache every 15 minutes. The reason being is because after a while, Apache will start lagging to display web pages. When it's restarted, it works just fine and fast. After roughly 10 minutes now, it will take roughly a minute for the request to finally send the data back to the browser. It's not the web page that causes it, it's Apache or some factor effecting it's performance.
Does anyone know what the cause may be or how to fix it? Personally, I think it might be a memory issue.
View 10 Replies
View Related
Jul 30, 2007
I had php4 running as a module of apache2 on a debian sarge os.
i did the following to upgrade to PHP5
apt-get install php5 libapache2-mod-php5 php5-gd php5-mysql
But when i tried to start apache i got an error message saying that libphp5.so is corrupted or something.. (garbled - perhaps this is not an Apache module DSO?)
Now i just want to retore php4 working as it was !
i did apt-get remove php5 libapache2-mod-php5 php5-gd php5-mysql
and apt-get install php4 libapache2-mod-php4 php4-gd php4-mysql
but i can't find the php4.conf and php4.load on the /modules-enabled or /modules-available
tried to write those files manualy as php4.so exists with other libs.
apache does not load php
Quote:
host:/etc/init.d# apt-get install php4 php4-mysql php4-cli libapache2-mod-php4
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Paquets suggérés :
php-pear php4-pear
Les NOUVEAUX paquets suivants seront installés :
libapache2-mod-php4 php4 php4-cli php4-mysql
0 mis à jour, 4 nouvellement installés, 0 à enlever et 275 non mis à jour.
Il est nécessaire de prendre 0o/3258ko dans les archives.
Après dépaquetage, 6517ko d'espace disque supplémentaires seront utilisés.
Sélection du paquet libapache2-mod-php4 précédemment désélectionné.
(Lecture de la base de données... 35624 fichiers et répertoires déjà installés.)
Dépaquetage de libapache2-mod-php4 (à partir de .../libapache2-mod-php4_6%3a4.4.7-0.dotdeb.0_i386.deb) ...
Sélection du paquet php4 précédemment désélectionné.
Dépaquetage de php4 (à partir de .../php4_6%3a4.4.7-0.dotdeb.0_all.deb) ...
Sélection du paquet php4-cli précédemment désélectionné.
Dépaquetage de php4-cli (à partir de .../php4-cli_6%3a4.4.7-0.dotdeb.0_i386.deb) ...
Sélection du paquet php4-mysql précédemment désélectionné.
Dépaquetage de php4-mysql (à partir de .../php4-mysql_6%3a4.4.7-0.dotdeb.0_i386.deb) ...
Paramétrage de libapache2-mod-php4 (4.4.7-0.dotdeb.0) ...
Paramétrage de php4 (4.4.7-0.dotdeb.0) ...
Paramétrage de php4-cli (4.4.7-0.dotdeb.0) ...
Paramétrage de php4-mysql (4.4.7-0.dotdeb.0) ...
host:/etc/init.d# /etc/init.d/apache2 force-reload
Forcing reload of web server (apache2)...apache2: Syntax error on line 116 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php4.load: API module structure `php4_module' in file /usr/lib/apache2/modules/libphp4.so is garbled - perhaps this is not an Apache module DSO?
View 1 Replies
View Related
Sep 10, 2007
I'm running Apache 2.0.54 on my server and just recently Apache has been giving me problems that I haven't been able to fix permanently. In my error log, Apache marks down "[error] (88)Socket operation on non-socket: apr_accept: (client socket)" roughly 3 to 4 times a second and then turns off. In SSH, I send a restart command and it tells me it's still running but then it says when I restart it again that it wasn't running.
My main concern is fixing Apache from showing this error and from crashing so much. I did some research and through inconclusive evidence, it seems like a crontab error (ironically Apache doesn't use any cron jobs I can see).
View 2 Replies
View Related
Mar 30, 2007
I have apache2 and I have minimal webmin 1.330 installed at /webmin/
Following this tutorial: [url]
I have done the commands it asks and I have added this to my sites-available:
Quote:
<VirtualHost _default_>
ServerName panel2.ipalaces.org
ServerAdmin admin@ipalaces.org
DocumentRoot /webmin/
DirectoryIndex index.cgi index.html
<Directory /webmin/>
Options ExecCGI
AuthName Webmin
AuthType basic
AuthUserFile /etc/webmin/htusers
require valid-user
</Directory>
</VirtualHost>
and added this to apache2.conf:
Quote:
SetEnv WEBMIN_CONFIG /etc/webmin
SetEnv WEBMIN_VAR /var/webmin
SetEnv SERVER_ROOT /webmin
SetEnv MINISERV_CONFIG /etc/webmin/miniserv.conf
Am i doing this right? I want to be able to access webmin from the URL panel2.ipalaces.org.
I did
Quote:
htpasswd -c /etc/webmin/htusers brian
and then set a password as "test" for brian. However it won't login.
View 1 Replies
View Related
Mar 16, 2007
got the VirtualHost entries for Appache, so each Domain points to a folder.
The (Windows-)DNS runs on the server, means i have to create a new DNS Reverse-Lookup and Folder for each Domain seperatly, but this workflow appears to be pretty stupid..
Now my question:
Anyone can tell me how to setup somwhat a "Wildcard / Catchall DNS", and also "Catchall VirtualHost", so each Domain is automatically pointed to the right folder? Any scripts needed for that?
View 4 Replies
View Related
Nov 3, 2007
to move my image host to lighttpd. Does anyone know any step by step tutorial to move to lighttpd?
View 8 Replies
View Related
Nov 8, 2007
I have server with fedora core 6 with plesk 8.2
how to make upgrading from apache2.0 to apache 2.2.6?
View 3 Replies
View Related
Jul 17, 2008
I want run mod_deflate in my serve my server is apache 2.0.63
How can I do this?
View 0 Replies
View Related
Apr 26, 2009
I have a mobile email application (for Zimbra) that is not compatible with HTTPS, only with HTTP.
Is it possible to configure a Reverse Proxy so I can bypass the SSL? Something like this:
[url]<-> REVERSE PROXY <-> [url]
I was able to configure a Reverse Proxy but when it comes to https, something does wrong! here is my vhost config:
Quote:
NameVirtualHost mail.domain.com:*
<VirtualHost *>
ServerName mail
ServerAlias mail.domain.com
ProxyPreserveHost On
ProxyVia full
SSLProxyEngine On
ProxyRequests On
<proxy *>
Order deny,allow
Allow from all
</proxy>
ProxyPass / https://mail.domain.com/
ProxyPassReverse / https://mail.domain.com/
</VirtualHost>
I have all mod_proxy modules (and its sub-mods) load. If this is possible to achieve, I think it's only a manner of configuration lamess.
Have someone configured anything like this before?
View 2 Replies
View Related
Apr 28, 2008
On my webserver I host about 10 websites. I want to set up a subdomain of webmail.domain that works for all the domains but goes to the same squirrelmail install. Is there an easy way to do this or do I need to add code for each domain?
View 9 Replies
View Related
May 15, 2008
The error logs on my web server keep growing to stupidly large sizes within a couple of weeks.
when i look through the error logs it seems to be showing exactly the same line but just from diffferent Ip addresses. the line is as follows
[Sun May 11 07:11:41 2008] [error] [client ###.###.###.###] File does not exist: /var/www/phpmyadmin/tracker
View 5 Replies
View Related
Aug 26, 2007
Does anyone know who provides fully managed VPS that supports Apache2? I am currently hosting with LiquidWeb and I am happy with their service. However, they only support Apache 1.3 on their managed VPS.
View 7 Replies
View Related
Nov 5, 2007
I would like upgrading to apache2.X and PHP5.x I have some question about that, can I find details how can I make upgrade without any problem, in cpanel (aptche upgrade ) what modules can I check it befor upgrading I don't know what need to check ?? is my sites working well without problem after upgrading?
View 8 Replies
View Related
Mar 26, 2007
We have a CentOS sever running Apache 2 with the mod evasive plugin installed. Mod evasive keeps on blocking me though, and adding me to the blacklist, when I am just browsing pages.
Here are my settings:
<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 6
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600
DOSEmailNotify networkadmin@mydomain.com
</IfModule>
View 4 Replies
View Related
Nov 24, 2007
I've had two (or three) versions installed on my Fedora linux server. It seems I've had something installed when I just rented server, after that I've tried to upgrade by building PHP from source.
PHP, installed with yum (before upgrading) had 5.1.6 version. When I ran phpinfo(), browser displayed this version. But when I ran "php -v" in command line, it displayed 5.2.5 version.
I've got this error when server booted up:
Quote:
[20-Nov-2007 03:27:30] PHP Warning: PHP Startup: json: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
So, I've removed old version(s):
Quote:
rpm -qa | grep php
rpm -e *package*
yum remove php
Then I've downloaded latest version of PHP 5.2.5 and installed it. I've copied configuration list that yum uses for older version:
Quote:
./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib64 --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-rpath --without-pear --with-bz2 --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-pspell --with-expat-dir=/usr --with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-kerberos --enable-ucd-snmp-hack --with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --enable-calendar --enable-dbx --enable-dio --with-mime-magic=/usr/share/file/magic.mime --without-sqlite --with-libxml-dir=/usr --with-xml --with-apxs2=/usr/sbin/apxs --without-mysql --without-gd --without-odbc --disable-dom --disable-dba --without-unixODBC --disable-pdo --disable-xmlreader --disable-xmlreader --disable-xmlwriter
make clean
make
make install
After that PHP doesn't work with Apache2. Whe I try to load any .php page, I get PHP source code as simple text instead of result of executed PHP code.
When I install PHP with yum again, it works.
I wonder how can I install latest PHP from source? How to fix the problem with Apache2?
View 2 Replies
View Related
May 5, 2007
Im running a windows 2003 web edition server with apache 2.2.4 installed and a ported module; mod_dosEvasive, my server is vurnable for some sort of single machine dos attack. Not only my own server is vurnable but basically ANY apache 2.2.4 win32 server, even without additional modules (lik php) installed ( i checked by installing apache2 on 4 machines, all vurnable)
The tool used to attack apache is described here:
[url]
When attacked by the specific syn flood attack apache2 becomes useless and doesnt send any responses out anymore. When the attacker stops sending this flood Apache starts responding again.
how to secure a windows apache server against such an attack?
View 2 Replies
View Related
Aug 25, 2007
We are using Apache 2.2 prefork on Debian GNU/Linux.
Sometimes it happen to us that we have really lot of apache processes (slots) in state "sending reply". This is not freed for several hours. Server status looks like:
The question is how it is possible that some apache process can be locked to one client for several hours. Other clients are being served by free slots, however what if we will have used all the slots and not freed them?
View 7 Replies
View Related