Fastcgi Error

[stextbox id=”warning”]Connection reset by peer: mod_fcgid: error reading data from FastCGI server[/stextbox] Connection reset by peer: mod_fcgid: error reading data from FastCGI server [Thu Jul 31 13:05:21 2014] [error] [client 99.xxx.xx.xx] Premature end of script headers: cron.php Edit fastcgi.conf and add the following: nano /etc/nginx/fastcgi.conf FcgidBusyTimeout 3600

PHP Spam Scripts

PHP Spam Scripts I finally decided this topic deserves its own page. To find the script sending spam Plesk Ver -11.0 cat /var/www/vhosts/domain.com/statistics/logs/access_log | grep POST > /tmp/post.log Ver 11.5+ cat /var/www/vhosts/system/domain.com/statistics/logs/access_log | grep POST > /tmp/post.log WHM cPanel cat /usr/local/apache/domlogs/domain.com | grep POST > /tmp/post.log View the results catRead More…

Curl Error

[stextbox id=”warning”]Error: SSL read: error:00000000:lib(0):func(0):reason(0), errno 104[/stextbox] Getting a curl error from a php script. Try to run curl without php. ssh to the server find the script cd /var/www/vhosts/path/to/script nano script.php Find the call and execute from a command line curl –verbose https://api-internal.script.com Output: * About to connect() to api-internal.script.comRead More…

Using Mysqltuner

Download/Installation Simple wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl # chmod +x mysqltuner.pl # ./mysqltuner.pl You can download the entire repository by using ‘git clone’ followed by the cloning URL above. The simplest and shortest method is: wget mysqltuner.pl perl mysqltuner.pl Change the permissions you can execute it without calling perl directly. [root@austin ~]# chmodRead More…