apachectl -l
Category: Apache
Check the Number of Concurrent Processes
ps -ef | grep http | wc -l
Increase the Maximum Number of Concurrent Access
vim /etc/httpd/conf/httpd.conf
ServerLimit 4000 StartServers 30 MinSpareServers 30 MaxSpareServers 45 MaxClients 4000 MaxRequestsPerChild 4000
Reference: http://tc.itkee.com/sysapp/detail-158c.html
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
Problem:
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
Solution:
netstat -lnp | grep 80
kill -9 process ID
Enable password on Apache by htpasswd
1. Add the following lines to .htaccess
AuthName “NAME”
AuthType Basic
AuthUserFile “/path/.htpasswd”
require valid-user
2. Create htpasswd by this command:
htpasswd -c /path/.htpasswd USERNAME