Modify MaxClients
Jun 13, 2008i 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
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
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.
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.
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?
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 )
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.
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
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?
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?
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.
Used chirpy's method
/etc/init.d/chkservd stop
/etc/init.d/mysql stop
umount /var/tmp
umount /tmp
replace "256000" "512000" -- /scripts/securetmp
rm /usr/tmpDSK
/scripts/securetmp --auto
cd /tmp
ln -s /var/lib/mysql/mysql.sock
/etc/init.d/mysql start
/etc/init.d/chkservd start
df
Problem
[root@host ~]# umount /tmp
umount: /tmp: device is busy
umount: /tmp: device is busy
[root@cmee34 ~]# lsof | grep /tmp
sshd 6650 root 9u unix 0xf57fe300 24988 /tmp/ssh-SDVLUi6650/agent.6650
If I killall -9 sshd, I got obviously logged out of ssh. I need to make /tmp 1GB instead of the current 500MB it is now.
i need to modify a domain name in plesk. is that possible without having to recreate the account or losing the info?
for example from [url]to [url]
Code:
-rw-r--r-- 1 root root 975 Dec 22 2006 .bash_profile
root@server [~]# rm -f .bash_profile
rm: cannot remove `.bash_profile': Operation not permitted
root@server [~]# chmod +t .bash_profile
chmod: changing permissions of `.bash_profile': Operation not permitted
I simply wanted to modify something within the file but I keep getting permission errors. I'm logged in as root.
On the server (linux, cpanel), we have global registers set to off. Some scripts require them on. What's the most secure way to allow customers to do their own settings for their own domains and bypass the main server php.ini settings?
View 4 Replies View Relatedfix some DNS errors for the shared IP on the server. Noramlly inside cPanel, we would edit zone file for each domain. How do we make DNS changes for the IP address used as the shared IP on the server?
View 7 Replies View RelatedI have a dedicated box with softlayer and I have noticed at varying times the past few months that with sites we host, sometimes the connection times out (I'll try to access like 5 or 6 sites within 30 seconds or so and they all drop, then a minute later they load fine).
I opened a support ticket and they said it usually has to do with the # of requests Apache can handle, and that this can be modified. They stated they could: "tweak the apache configuration file in this server that can make it possible to handle more requests."
So my question is what should the # of requests be set to? (I'm not sure what it is now, but I assume whatever the default # is).
I've just run upon a problem while trying to go into my phpMyadmin from within my MySQL Databases icon.
When I try to log into phpMyadmin I get this message:
Quote:
"This feature is not available while logged in with root override. You are logged in with the root, or reseller's password. Please login with this user's account password."
Also, as soon as I log into cPanel I receive a red "Warning: You are logged in using the reseller or root password." Yes, I am logging into the only account I have.
When logging in with the initial account I created I can view the MySQL dbs that I have created, but I don't have access to phpMyadmin - I get that error message. This is new because for the last two weeks - about as long as I've had this server - I have had no problem even signing in with the same user id and password. Suddenly it won't let me in.
So what do I need to do?
I created a new account, but I can't see my MySQL dbs with that new account.
I don't know how to modify my one existing account so that I can access phpMyadmin.
Any thoughts? I hope I've been clear.
I have WHM and Cpanel on my dedicated server. Is there a way to give them access to change this? I dont want then to have access to everything either.
Edit your httpd.conf file.
Timeout 50
KeepAlive On
MaxKeepAliveRequests 120
KeepAliveTimeout 10
MinSpareServers 10
MaxSpareServers 20
StartServers 16
MaxClients 125
MaxRequestsPerChild 5000Â
What exact file to modify in order to optimize fastcgi settings, then to set default for all websites. Sample code below:
# execute all .php files via php-fpm
location ~ .php$ {
# connect to a unix domain-socket:
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
[Code] ....
Applying Plesk firewall changes? I make my change, apply and get to:
Status: Applying in progress. If your browser shows connection error messages, or if this screen does not disappear in more than 30 seconds, go to previous page.
And there things stay. Going back to look at the firewall I can see the change haven't been applied, and going to apply just results in the same. No error, just no anything. It also took numerous attempts to get firewall modification to be swtich on although finally at about the eighth attempt changes were enabled. Only now I can't apply them ...
We cant' modify any files of my website in WordPress that contain user www-data.
How can you can change the permissions to this user (www-data).
The version is Plesk 12.0.18 Actualización #44
We have also Plesk 11.5 with WordPress and never has www-data user.
i want to modify a conf file using commandline or a shell script. for eaxmple:
here is a line from my conf file:....
When a domain name is pointing to our server and the account is not setup yet, there's a default page that says:"
Quote:
Great Success!
Apache is working on your cPanel® and WHM™ Server
If you can see this page, then the people who manage this server have installed cPanel and WebHost Manager (WHM) which use the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl) successfully. They now have to add content to this directory and replace this placeholder page, or else point the server at their real content.
How can I modify that page ONLY for ROOT accounts and not my resellers?
I am unable to disable or modify the firewall by using the plesk firewall extention. Plesk throw the two errors below:
Code:
Error: Could not disable firewall:
util_exec(.., 'proc_open') failed: file does not exist or is not executable: /opt/psa/admin/bin/modules/firewall/register_service
Code:
Error: Could not activate firewall configuration:
util_exec(.., 'proc_open') failed: file does not exist or is not executable: /opt/psa/admin/bin/modules/firewall/safeact
I checked the symlinks, they point to the same location: /opt/psa/admin/bin/modules/firewall/mod_wrapper
-r-s--x--- 1 root root 18896 Jun 6 10:37 mod_wrapper