Archive for December 20th, 2011

How to change upcp from release to stable?

We can change the upcp from the release version to the  stable version by changing the  option in following file cat /etc/cpupdate.conf From release to stable  

Invalid command ‘BytesLog’ error after upgrade to cPanel version to 11

cPanel version get upgraded to 11 most common problem many peoples are facing with starting Apache on new installation. The error reported is : Invalid command ‘BytesLog‘, perhaps mis-spelled or defined by a module not included in the server configuration /usr/local/apache/bin/apachectl start: httpd could not be started To fix this mod_log_bytes.c needs to be re-compiled. […]

How to enable stats from WHM?

To enable the stats you need root login details.Once you logged into your WHM as root user follow the steps. Look in “Server Configuration”. Choose “Statistics Software Configuration”. Scroll down to “Statistics Processing Configuration Summary”. Click on “Configure Statistic Process Time Schedule”. Tick the boxes to denote the times during which stats should not be […]

Options FollowSymLinks or SymLinksIfOwnerMatch forbidden error

If you receive following error message after browsing the domain/website [Sat Oct 31 04:28:39 2009] [error] [client x.x.x.x] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /home/xxx/public_html/xxx/403.shtml [Sat Oct 31 04:29:47 2009] [error] [client x.x.x.x] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /home/xxx/public_html/ To […]

Simple cgi script to check the Server uptime?

The following script you can use to check the Server uptime? root@admin[/usr/local/apache/cgi-bin]# nano loads #!/bin/bash echo Content-type: text/plain echo echo $(hostname) echo “=>” echo $(uptime)  

How to disable local-mail delivery for one domain name?

You can disable local-mail delivery for one  domain name from your shell and follow the instructions.. First go to file root@admin[~]#vi /etc/localdomains Then select the domain name give them comment# or remove it and save the file :wq! Second step go to file root@admin[~]#vi /etc/remotedomains and add the domain name we have comment or removed […]

How to install cPanel theme?

To install cPanl theme root login is required.Login into shell as root user and follow the steps root@admin[~]# cd /usr/local/cpanel/whostmgr/docroot/ root@admin[~]#mkdir -p cpanelappinstall root@admin[~]#cd cpanelappinstall root@gunjan[~]#wget -q root@admin[~]#tar -xf cpanelappinstall.tar root@gunjan[~]#rm -f cpanelappinstall.tar Than browse following URL You can replace your server ip in above URL instead of and follow the instruction […]

How to set E-mail size in exim?

You can set the E-mail size limit from your WHM. First login into WHM Second select “Exim Configuration Editor”  present unde ” Service Configuration” section. Third scroll down and  click on  “Advanced Editor” optoin. You will see  the empty box (remember select first empty box) where you can type  (right underneath where you see #!!# […]

Database sizes shows zero in cPanel?

Once we upgrade from cPanel 11.24 to 11.25 version. We are receiving lots bug. One of them is database size showing zero in cPanel. To resolve this issue you have to edit following file /var/cpanel/cpanel.config root@support[~]vi /var/cpanel/cpanel.config Search line “disk_usage_include_sqldbs” in file “ /var/cpanel/cpanel.config “and change it From   disk_usage_include_sqldbs=0 to disk_usage_include_sqldbs=1 And run script -/scripts/update_db_cache  

Ownership wrong for cPanel users.

Sometime when we migrate the servers by using rsync we face ownership problems for cPanel users files/directories. At that time we can use following command from shell to resolve issue within few minutes. —— for i  in `cat /etc/trueuserdomains   | awk ‘{print $2}’` do chown $i.$i /home/$i -R; chown $i.mail /home/$i/etc -R; chown $i.nobody /home/$i/public_html; […]