CAll Us: USA +1 9176775553   Login

DB Error: connect failed in horde

Error :  When try to access the Horde from cPanel  then it shows following error. Warning: fopen(/var/cpanel/horde/log/horde_0.log) [function.fopen]: failed to open stream: Permission denied in /usr/local/cpanel/3rdparty/lib/php/Log/file.php on line 216 A fatal error has occurred DB Error: connect failed Details have been logged for the administrator. Solution: The problem due to the ” Horde Groupware Webmail […]

Read More »

retry time not reached for any host

Error : When error logs shows error “retry time not reached for any host” 2010-12-08 21:29:30 1PQRZp-0008IM-VT <= test123@domain.com H=localhost (mail.domain.com) [127.0.0.1]:37322 I=[127.0.0.1]:25 P=esmtpa A=fixed_login:test123@domain.com S=864 id=dd7281d7c14931d64d38983153498914.squirrel@mail.domain.com T=”test” from <test123@domain.com> for username@senderdomain.com 2010-12-08 21:29:30 1PQRZp-0008IM-VT == username@senderdomain.com R=dk_lookuphost T=dk_remote_smtp defer (-53): retry time not reached for any host Solution: If you are getting the above […]

Read More »

backup script for reseller account

Following are the steps to take increment backup of reseller account on backup server. 1) First we need to find out the user name which is under the reseller account. On shared/source server :- vi /home/resellerUsername/backup.sh # For finding the username under the reseller account cat /etc/trueuserowners | grep resellerUsername | awk -F: ‘{print $1}’ […]

Read More »

Manager of pid-file quit without updating fi

Error : Manager of pid-file quit without updating fi Solution : When try to restart the mysql service on the server then above error is generated. This problem is occurred due the “mysql ” database crashed and should be repaired but the mysql is already stopped on the server  so you need to use the […]

Read More »

change reseller ownership

How to change the reseller ownership from one reseller user to another reseller user by using SSH Ans: If you want to change the reseller ownership means the old reseller is “test” and you have created new account with the user name “indian” and you want to move all the domains which is under the […]

Read More »

Template Error: The template file must be given

Error : Template Error: The template file must be given Solution : The problem due the cpanel default page missing on the server so you can reset the default page setting by using following steps … WHM Main >> Account Functions >> Web Template Editor >  Revert to Default Once done you will again see […]

Read More »

copy outgoing messages to another email

How to copy the outgoing messages from the server to another email address ? Ans : If you want copy all the emails send to anything@domain.com to your test@gmail.com email address then you can do is by using following steps 1) Enable the System Filter File in exim configuration by using cpanel. Main >> Service Configuration […]

Read More »

block ftp access using firewall

Block FTP access using the IPtables(Default system firewall) 1) If you want to completely disable the FTP access on the server then run the command : root@server[#] iptables -A INPUT -p tcp –dport 21 -j DROP 2) If you want to block FTP access for a Specific IP then run the below command : root@server[#] […]

Read More »

find out the reseller name with domains

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 »

yum problem + easyapache + 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 »

Custom php.ini not working on SuExec Enabled Server

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 »

auto delete old emails on 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 »

Cannot allocate memory: couldn't create child process

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 »

Server Monitoring Scripts and commands

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 »

Too many open files: could not open transfer

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 »

How to Stop Spamming on cpanel server

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 »

Stop spamming using iptables

You can stop the number of spammer  ip address to known spam ip addresses from spamhaus . org vi /root/blockspamips.sh ========================= #!/bin/bash IPTABLES=/sbin/iptables FILE=”/tmp/drop.lasso” URL=”http://www.spamhaus.org/drop/drop.lasso” #echo “” #echo -n “Applying DROP list to existing firewall…” $IPTABLES -D INPUT -j Spamhaus $IPTABLES -D OUTPUT -j Spamhaus $IPTABLES -D FORWARD -j Spamhaus $IPTABLES -F Spamhaus $IPTABLES -X […]

Read More »

Important cpanel/whm files

Important cpanel/whm files ==================== /etc/httpd/conf/httpd.conf – apache configuration file /etc/exim.conf – mail server configuration file /etc/named.conf – name server (named) configuration file /etc/proftpd.conf – proftpd server configuration file /etc/pure-ftpd.conf – pure-ftpd server configuration file /etc/valiases/domainname – catchall and forwarders are set here /etc/vfilters/domainname – email filters are set here /etc/userdomains – all domains are listed […]

Read More »

daily mysql databases backup on cpanel server

Question: How to back up MySQL databases using cron jobs on cpanel server ? Ans: You can take the mysql backup of all databases for last 10 days and keep on the server.  You need to add the cron to create the daily mysql backup of all the databases. The backup is stored in the folder […]

Read More »

scan FTP uploaded files on cpanel servers

This Howto will help you virus can all uploaded via FTP to make sure all files are virus free: First lets install clamAV , it has been now been included in Cpanel/WHM you can do so from your WHM interface as root by clicking on : Cpanel —> Manage Plugins —> on clamavconnector Check the […]

Read More »

terminate old suspended accounts

Question : How to terminate old suspended accounts on cpanel server ? Ans:  You can terminate the 90 days old suspended accounts by using the following script. 1) vi /root/terminatesuspended.sh ================== for i in `find /var/cpanel/suspended/ -mtime +90 | cut -d’/’ -f5 | sed ‘1 d’` do y | /scripts/killacct $i –killdns n; done; ================== […]

Read More »

How to install R1soft cdp agent on the Linux server

Question: How to install R1 soft cdp agent on the Linux server? Ans : You can install the Latest R1 soft cdp agent on Linux server by using following steps 1) Create the yum repository for the r1soft vi /etc/yum.repos.d/r1soft.repo [r1soft] name=R1Soft Repository Server baseurl=http://repo.r1soft.com/yum/stable/$basearch/ enabled=1 gpgcheck=0 2) Install the cdp agent by using following […]

Read More »

reset ssh port through WHM

If you mess up with the SSH setting’s on your server and lock yourself out of ssh then you can reset the SSH configuration settings from WHM by following the below steps : Login to your WHM on a non secure port that is : 2086 for example : http://serverip:2086 And then browse the URL […]

Read More »

empty trash folder automatically

How to disable delete emails from trash after 7 days ? Ans : Sometimes  Problems arise when clients E mail accounts run out of its quota, even tough the In-boxes kept empty, they somehow forget to clean the Trash boxes too. After checking it is found that, all the E mails were left in the […]

Read More »

Mysql Database size shows 0 in cPanel

Error : database size not updated in cpanel Ans : In cPanel >> mysql databases , it shows database size as ” zero” even if it is not. You just need to make  the below changes to fix  it : root@server [#] vi   /var/cpanel/cpanel.config and search for following line. disk_usage_include_sqldbs=0 ( set it to […]

Read More »

cronjob for first sunday of the every month.

How to set the Cronjob for first Sunday of the every month. Ans: You can not set such type of cron by using the cPanel. I have used  following script to set this cron. This script detect the first Sunday of every month and then execute the defined script. Add the following Cron to execute […]

Read More »

How to Re-Install cPanel Softwares

You can easily reinstall the cpanel softwares. Roundcube: /usr/local/cpanel/bin/update-roundcube –force Horde: /usr/local/cpanel/bin/update-horde –force or /scripts/fullhordereset Squirrelmail /usr/local/cpanel/bin/update-squirrelmail –force cPanel /scripts/upcp MySQL /scripts/mysqlup PostgreSQL /scripts/installpostgres phpMyAdmin /usr/local/cpanel/bin/updatephpmyadmin pureFTP /scripts/ftpup –force (See: Installing and Configuring pure-FTP) Exim /scripts/eximup Courier IMAP /scripts/courierup –force (See: Installing/Configuring Courier IMAP) Dovecot /scripts/dovecotup –force (See: Installing and Configuring Dovecot) cpAddons /scripts/cpaddonsup NSD/BIND […]

Read More »

how to enable SSL3.0 on cpanel server

To Disable SSLv2 and enable SSLv3 in the server in cpanel Linux Server Edit the ssl.conf file root@server []# vi /usr/local/apache/conf/ssl.conf Edit the line from SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL To SSLProtocol -SSLv2 +SSLv3 +TLSv1 SSLCipherSuite !NULL:!ADH:!EXP:!LOW:SSLv3:+HIGH:+MEDIUM root@server []# /etc/init.d/httpd restart You can connect the server using OpenSSL to test it SSLv3 enable or not : root@server []# […]

Read More »

access .jsp pages by using the temporay URL

If  domain does not points to the server and you want to access .jsp pages by using the temporary URL (ex: http://domain.com/~username ) Solution: Add the following code in server.xml file under the virtual host entry for any domain. <Listener className=”org.apache.catalina.startup.UserConfig” directoryName=”public_html” homeBase=”/home” userClass=”org.apache.catalina.startup.HomesUserDatabase”/> For example : Web files would need to be in directories […]

Read More »

Warning: shell_exec() has been disabled for security reasons in

Warning: shell_exec() has been disabled for security reasons in 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 […]

Read More »

How to install Mail::SPF on cpanel server

How  to install Mail::SPF on cpanel server ? 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 Done =========================================== As an alternative, to help clarify […]

Read More »
Internal Server Error

Internal Server Error

SuPHP Permission Issue suPHP enhances overall server security. When migrating from a server that is not running suphp to a server running these, permission and ownership issues occur . When you access your domain you usually see Tail the Apache error logs to see what the error is # tail -f /usr/local/apache/logs/error_logs You can see […]

Read More »

set correct ownership to all accounts

How to set correct ownership to all account on the cPanel server. You can use the following commands to set the correct ownership for all accounts which is hosted on the cPanel server. =============================== for i  in `cat /etc/trueuserdomains   | awk ‘{print $2}’` > do > chown $i.$i /home/$i -R; > chown $i.mail /home/$i/etc -R; […]

Read More »

Create your own Apache Rewrite Log file

How to Create your own Apache Rewrite Log file ? If your account is hosted on suexec server then you need to add this code in http.conf file otherwise you can enable it by using .htaccess file. By using  http.conf file You need to ============================= # Roll your own Rewrite log # Log details via […]

Read More »

How to update webalizer?

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.

Read More »

Cpanel Introduction

Cpanel Introduction ============================================= Cpanel Important directories. /usr/local/cpanel /var/cpanel /scripts /usr/local/cpanel ————— cpsrvd cpsrvd-ssl cpkeyclt /usr/local/cpanel/bin ——————- *Houses only scripts and binaries which provide installation and configuration of many cPanel managed services Notable Contents: eximstats checkperlmodules /usr/local/cpanel/logs ——————– CPSRVD ——-access_log, error_log CPANELLOGD—stats_log CPKEYCLT——license_lo /usr/local/cpanel/base ——————- frontend——-x, x2,xmail,monsoon webmail——-x, monsoon neomail horde 3rdparty——-squirrelmail, phpPgAdmin, phpMyAdmin /usr/local/cpanel/etc ——————- […]

Read More »

spamming on server

How to check  spamming on server.. exim -bpc If this  is change very fast then it seems spamming is on server also you can check using tail -f /var/log/exim_mainlog some times client can spam using scripting that time above using above you can’t find error log so you can use tail -f /var/log/message or ps […]

Read More »

Script for create package on cpanel server

If you want to migrate more accounts from one server to another server then you need to create packages for each accounts . You can easilly create packages by using this script. 1) Create one Migarting-Accounts.txt file and add the the user name , which you want to create packages. 2) Create Migration directory for […]

Read More »

Cannot get cPanel data. Connection timeout.

Cannot get cPanel data. Connection timeout. If this is an addon domain, make sure the domain correctly addon on the account. You can verify it by access to the cPanel/Addon Domains. It musts display the addon domain on this page. Make sure the home directory of the domain exists on the server. Make sure you […]

Read More »

How to enable FollowSymLinks on the server

If your site shows the 404 forbidden error and the server logs shows “Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: ” Then you need to enable the Options FollowSymLinks for your account or on the server. For your account you need to add the following code into .htaccess file […]

Read More »

Perl script run without .pl extension.

Perl script run without .pl extension. If client want to run perl script without .pl extension then add the following rule in the .htaccess file under the public_html folder. ============== <Files ~ ‘^[^.]*$’> SetHandler cgi-script </Files> ==============

Read More »

How to reset WordPress admin password from cPanel?

How to reset WordPress admin password from cPanel? You have to do this through the WordPress database directly. The most convenient way to manage the database is via the phpMyAdmin tool. Goto your cPanel -> MySQL Databases section. Scroll down the page till you notice the small phpMyAdmin link. Click on it. or Goto your […]

Read More »

TikiWiki installation Error

Hello.. If you receive the error below after installing tikiwiki, please follow the steps provided. ===================================================== Tiki is not properly set up: The directory ‘/tmp’ does not exist or PHP is not allowed to access it (check open_basedir entry in php.ini). Your options: 1- With FTP access: a) Change the permissions (chmod) of the directories […]

Read More »

cgiemail shows Internal server error

cgiemail shows Internal server error CGIEmail is another form processing script, totally different than FormMail. Some cpanel user uses this script for form processing but due to some server configuration it shows error “Internal server error” . Please follow the steps provided. 1) Login to cpanel and goto file manager 2) Then delete these four […]

Read More »