Archive for April, 2013

If you have been surfing the web for a while, you have at least seen this error a few times. Error Establishing a Database Connection is one of those courses that could be caused by many reasons. As a WordPress beginner, this could be awfully frustrating especially when it happened on its own without you […]

How to Fix the WordPress white screen of death

Posted: 12th April 2013 by kunwardharmesh in WordPress

If you have been using WordPress for a few years, then you have encountered the white screen of death at least once. The WordPress white screen of death is one of those extremely annoying problems like error establishing a database connection. The reason why this issue is frustrating for users is that it locks you […]

How to check server is suexec (suPHP) or not

Posted: 5th April 2013 by kunwardharmesh in Linux, WHM/cPanel

  root@dk []# /usr/local/cpanel/bin/rebuild_phpconf – –current Available handlers: suphp dso cgi none DEFAULT PHP: 5 PHP4 SAPI: suphp PHP5 SAPI: suphp SUEXEC: enabled If PHP5 SAPI or PHP4 SAPI it shows the suphp then the server is suexec server

If osCommerce  shows the above  error on the page then you need to change the ” Session Directory”  path in database by using phpmyadmin. Solution : 1) Login to cpanel then click on the phpmyadmin 2) choose your database and search “/tmp” in database then click on the “configuration” table 3) Then change the “/tmp […]

Update webalizer

Posted: 5th April 2013 by kunwardharmesh in Linux

  Some time the webalizer is not updated automatically , at that time you need to update the webalizer manually by using following command. /usr/local/cpanel/3rdparty/bin/english/webalizer  -N  10  -D  /home/username/tmp/webalizer/dns_cache.db -R 250 -p -n domain.com -o  /home/username/tmp/webalizer   /usr/local/apache/domlogs/domain.com Note : Replace username equal to correct username and domain.com equal to correct domain name.  

Delete php.ini file from all directories

Posted: 5th April 2013 by kunwardharmesh in Linux

  Command for to Delete php.ini file from all directories find -name php.ini -exec rm -f {} \;

Internal Server Error Fix

Posted: 5th April 2013 by kunwardharmesh in Linux, WHM/cPanel

Run the following script on the server. 1) Save the script to a file . # vi /root/suphpfix.sh #!/bin/bash for user in `ls /var/cpanel/users`; do chown ${user}:${user} /home/${user}/public_html chmod 755 /home/${user}/public_html find /home/${user}/public_html -group nobody -print0 | xargs -0 chgrp ${user} find /home/${user}/public_html -type f -print0 | xargs -0 chmod 644 find /home/${user}/public_html -type d -print0 […]

How to install Mail::SPF on cpanel server

Posted: 5th April 2013 by kunwardharmesh in Linux, WHM/cPanel

Please use the following one line command to perform the install: # perl -MCPAN -e “get(‘Mail::SPF’)” # cd /home/.cpan/sources/authors/id/J/JM/JMEHNLE/mail-spf # tar -xzvf Mail-SPF-v2.007.tar.gz # cd Mail-SPF-v2.007 # perl Build.PL # ./Build # ./Build test # ./Build install # /scripts/checkperlmodules –full You can check the perl module installed on the server by using the single command. […]

1. You can Fix it by setting max_allowed_packet = 16M in my.cnf and restarting MySQL 2. Run SHOW STATUS WHERE Variable_name LIKE ‘%onn%’ to see how many open connections you have. Mine looks like this: Run SHOW PROCESSLIST to see what processes are active. The problem may be that you are opening too many connections […]

Solution: You would receive the above warning message while accessing Fantastico through cPanel. Please check if the below options are selected in WHM (you need to access WHM as root) Login to your WHM control panel as root scroll down to the PHP section and make sure the IONCUBE PHP Loader option is selected. Then log […]