Q. How to Stop Spamming on cpanel server ? Ans : There are number of steps but you must enable/disable some Tweaks on cpanel server. Setting in “Exim Configuration Manager” 1. Login to WHM control panel by using root user 2. Goto Main >> Service Configuration >> Exim Configuration Manager 3. Enable RBL filtering by [ Read More ]
Error : You do not have sufficient permissions to access this page When try to activate the plugin in wordpress and then some time it shows the error “You do not have sufficient permissions to access this page” then you need to made some changes under that account. Solution : Open wp-config.php file and Replace [ Read More ]
Error : Apache error : Too many open files: could not open transfer ……..Unable to open logs Solutions: When apache is not started and the error log shows above error then you need to follow the steps 1) Open file /etc/init.d/httpd or /usr/sbin/apachectl Add `ulimit -n 65536` This is because of the low number of [ Read More ]
You can upgrade your mysql version from 5.0 to 5.5 by using following steps 1. Enable remi repository for yum wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm 2. Run mysqldump to export data out from MySQL 5.0 mysqldump -uroot -p –all-databases > mysqlbackup.sql 3. Run ‘yum –enablerepo=remi install mysql mysql-server mysqlclient’ 4. Run [ Read More ]
Error : Account modification aborted, there was a problem changing the user name. When you go to Account Functions >> Modify an Account and try to change the username of domain, sometimes you may get the following error. There is currently a configuration error in the Apache configuration file. User name change aborted. Account modification [ Read More ]
Error: When you try to upload the image or logo from your theme or media library then wordpress shows the error “Cheatin’ uh?” Solution : 1) Open file media-upload.php vi wp-admin/media-upload.php search line number 126 and replace the code From wp_die( __( ‘Cheatin’ uh?’ ) ); To // wp_die( __( ‘Cheatin’ uh?’ ) ); Save [ Read More ]
Script to delete a line from a file if it have a particular pattern sed -i “/”pattern”/d” filename find /home/ \( -name “*.php” -o -name “*.html” -o -iname “*.htm” \) -exec grep -l “nVRNj9owEL33Z1gqShqj+iMOdr3eHvYn” {} \; -exec sed -i “/”nVRNj9owEL33Z1gqShqj+iMOdr3eHvYn”/d” {} \; To find the connections to HTTP netstat -pan | sort +4 | grep [ Read More ]
Problem : When wordpress is installed on main domain and you want to set the password to any directory which is under the public_html folder but when access it by using browser then the URL shows 404 error or not found error. Solution : You need to add the following code in .htaccess files in [ Read More ]
Error : Cannot allocate memory: couldn’t create child process When you access your site and it shows the internal server error and server logs shows following error I get this error in my cpanel error log; [Sun Jun 19 04:03:02 2011] [error] [client (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/site/public_html/forum/index.php, referer: http://www.site.com/forum/index.php?topic=5930.0 [ Read More ]
Posted by Rishikesh Vispute Categories: cpanel How to auto delete old emails on CPanel ? Solution: You need to set the cron by using cpanel >> cronjob and add the following command to run in cron. /usr/bin/archivemail –quiet –delete –days 20 /home/{USER}/mail/inbox By using above command you can delete the 20 days old emails . Make sure you replace {USER} with [ Read More ]
Install ConfigServer Security & Firewall rm -fv csf.tgz wget http://www.configserver.com/free/csf.tgz tar -xzf csf.tgz cd csf sh install.sh Remove installation files: cd .. rm -Rfv csf/ csf.tgz Install ConfigServer Mail Manage rm -fv cmm.tgz wget http://www.configserver.com/free/cmm.tgz tar -xzf cmm.tgz cd cmm sh install.sh Remove installation files: cd .. rm -Rfv cmm/ cmm.tgz To uninstall: rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmm.cgi [ Read More ]
/etc/init.d/buagent start: buagent could not be started Error: # /etc/init.d/buagent start /etc/init.d/buagent start: buagent could not be started Solution : If you upgraded the kernel, you need to date the agent. 1)root@server [] r1soft-cki Then 2) service buagent restart. It should be working.
How to enable Custom php.ini on SuExec Enabled Server ? Ans : Normally, on SuExec Enabled Server, you can create php.ini in your account to customize php settings for your account. If php.ini is created under an account with customize php setting and it doesn’t work for you, then this is because override is disabled [ Read More ]
Posted by Rishikesh Vispute Categories: cpanel Error : We have a server which seems to fail to start EasyApache. I get the following error : ======================================== !! The server’s system package manager, ’YUM’, failed. !! !! This is the command that failed: yum –exclude=kernel* -y install aspell aspell-devel gettext automake19 libstdc++.x86_64 libpng-devel readline-devel openssl libpng-dev zlib-devel autoconf261 libidn-devel gmake libidn libXpm openssl-devel automake coreutils patch libltdl3-devel libltdl libopenssl0.9.7-static-devel readline-dev libtool-ltdl-devel sed libXpm-devel libXpm-dev lsof krb5-dev flex glibc-dev expat-dev krb5-devel pspell-devel libstdc++-devel.x64_64 xorg-x11-devel libtool-ltdl libssl-dev bzip2-devel pam-devel libopenssl0-devel zlib1-devel expat-devel pspell libopenssl0-dev gcc-c++ expat glibc-devel zlib bison libjpeg-devel libtool-libltdl-devel snmp-devel libtool openssl-dev libopenssl0 libz-devel bzip2-libs libjpeg-dev pam-dev net-snmp-devel fileutils libltdl-devel libopenssl0.9.7-devel e2fsprogs-devel make libstdc++-dev.x86_64 libX11-devel gd net-snmp cpp xorg-x11-dev gcc ssl-dev lex autoconf !! !! Since EasyApache was unable to resolve it automatically you should: 1) Manually run the failed YUM command (shown above) via SSH 2) See if your particular error is addressed at http://www.cpanel.net/support/could_not_ensurepkgs.htm 3) Resolve the YUM problem manually 4) Re-run EasyApache !! !! Please visit http://www.cpanel.net/support/could_not_ensurepkgs.htm for help with this error. !! !! Restoring original working apache !! !! Executing ’/scripts/initsslhttpd’ !! !! Restarting ’httpd’ … !! !! ’httpd’ restart complete. !! Building global cache for cpanel…Done !! Executing ’/scripts/initfpsuexec’ !! !! Executing ’/scripts/initsslhttpd’ !! !! Executing ’/scripts/update_apachectl’ !! Compiling report… Sending report (73479 bytes)… ======================================== Solution : This error due the update openssl on the server [ Read More ]
How to find out the reseller name with domains? Ans : If you want to list all cPanel accounts under a specific reseller, then you can use the below simple shell script. 1) Crete the file reseller.sh and add the following code. vi /home/reseller.sh ========================================================== #!/bin/bash usage() { echo “Example : $0 domain.com or username” [ Read More ]
Posted by Rishikesh Vispute Categories: Wordpress Question : wordpress permalink problem in windows server Ans: If you are using IIS 7 and have admin rights on your server, you can use Microsoft’s URL Rewrite Module instead. Though not completely compatible with mod_rewrite, it does support WordPress’s pretty permalinks. Once installed, open the web.config file in the WordPress folder and add the following rule to the system.webServer element [ Read More ]