I wrote this tutorial a while back and figured it would be good to post because suPHP is growing more popular as an alternative to phpSuExec. The instructions assume that you are on a Linux cPanel server and are familiar with how to install PHP, but do not want to use EasyApache’s suPHP installer in… Continue reading Installing suPHP on cPanel
Category: cPanel
Individually Convert MBOX to MailDir – cPanel
When migrating user emails manually from an mbox server to a maildir server, it’s usually preferred to run a partial conversion using the convert2maildir script. However, in some cases you may want to do a mailbox individually to either do it quickly or to restore it to another location. cPanel has a built-in script for… Continue reading Individually Convert MBOX to MailDir – cPanel
Unactivated License File Error
When logging into cPanel or WHM you see the following error: Unactivated License File To update the license file, run this command: /usr/local/cpanel/cpkeyclt This is assuming that the server’s IP has a valid cPanel license.
cPanel commands run from root.
Common cPanel commands that are used in root. Restart chkservd: /etc/init.d/chkservd restart Tail Apache log: tail -f /usr/local/apache/logs/error_log Updates the cpanel server software: /scripts/upcp Reinstalls exim: /scripts/exim4 View traffic or if you think a site is being DDoS: cd /usr/local/apache/domlogs tail -f targetsite.com Correct bandwidth issues /scripts/cleanbw To fix problem in webalizer that stop updating… Continue reading cPanel commands run from root.
cPanel FAQ for VPS
From: http://www.cpanel.net/docs/whm/FAQ.htm Q: I’m having server problems but the problem is not listed below. What should I do? A: There are two options: You can search the Knowledgebase in WebHost Manager. The is explained in the support part of this manual. You can search the CPanel forums – http://support.cpanel.net/ Q: How do I login to… Continue reading cPanel FAQ for VPS
Cpanel disk used incorrect showing unlimited or 0MB
You can fix this by running the script /scripts/fixquotas is this doesn’t work and you are using Virtuozzo or OpenVZ you will need to set the QUOTAUGIDLIMIT perimeter – this allows the system to allocate user IDs (UID) e.g (openvz) vzctl set 101 –quotaugidlimit 1000 –save then run the scrip “/scripts/fixquotas” and it should all… Continue reading Cpanel disk used incorrect showing unlimited or 0MB
Easy apache error on a VPS – You are only only allowed to use xx Megabytes of ram! xxx Megabytes is required
Sometimes, you can get the following error on VPS while running easy apache. You can fix by simple following steps. Login in to main VPS and edit the variable PRIVVMPAGES accordingly /scripts/easyapache Use of uninitialized value in pattern match (m//) at /var/cpanel/perl/easy/Cpanel/Easy/Utils.pm line 436. !! Critical Error (VZ): You are only only allowed to use… Continue reading Easy apache error on a VPS – You are only only allowed to use xx Megabytes of ram! xxx Megabytes is required
Hotlink protection: How-To prevent people from stealing your files
Create an .htaccess file in your public_html directory with the following code: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com.*$ [NC] RewriteRule .(gif|jpg)$ – [F] Where domain.com is your domain.
WHM : Spamassassin / spamd not working
Spamassassin / spamd not working — solution 1. When restarting exim it will show [root@server ~]# /scripts/restartsrv_exim Starting exim: [ OK ] Starting exim-smtps: [ OK ] Starting antirelayd: [ OK ] Starting spamd: Can’t locate Cpanel/SpamAssassinSandBox.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl) at /usr/bin/spamd… Continue reading WHM : Spamassassin / spamd not working
WHM :: Access Denied
When you login to the WHM, you get the following error: Access Denied Functions in cPanel / WHM are available only directly through the cPanel and WHM interfaces or through our XML API. It appears that this request is coming from a referring site and might be malicious. When XSRF attacks is enabled in the… Continue reading WHM :: Access Denied