kbadmin has written 149 articles

cPanel mod_fcgid: couldn’t bind unix domain socket

After you change PHP 5 Handler to fcgi mode in cPanel, Home » Service Configuration » Configure PHP and suEXEC You can find the following error in the apache error log. # tail -f /usr/local/apache/logs/error_logs [warn] (13)Permission denied: mod_fcgid: spawn process /usr/local/cpanel/cgi-sys/php5 error [error] (13)Permission denied: mod_fcgid: couldn’t bind unix domain socket /usr/local/apache/logs/fcgidsock/30113.5 The result…

How to check cPanel CPU and Memory usage for a specific user with Bash scripting

http://en.wikibooks.org/wiki/Bourne_Shell_Scripting/Appendix_C:_Quick_Reference #!/bin/bash    = Starting line echo “print text” $X                          = Read the value of X if [ -n $X ]; then # -n tests to see if the argument is non empty Loops while [ $X -le 20 ]                     // ( -le  is equel )    ( -lt Less than) do touch $X.html X=$((X+1))                     // (or) let X=X+1…

How to Limit Connections per IP using mod_limitipconn on cPanel

Problems one of our clients had on their cPanel servers was that some people were using download managers to download files from the server, so hundreds and sometimes thousands of connections were being ESTABLISHED to Apache which would trigger an alert on our IDS systems that a pontental ddos attack was occuring and at the…