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 ]
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 ]
DB Error: connect failed in horde
Categories: cpanel, Error and solutionError : 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 ]
Mysql Database size shows 0 in cPanel
Categories: cpanelError : 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 ]
empty trash folder automatically
Categories: cpanel, Email problems, How toHow 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 ]
reset ssh port through WHM
Categories: cpanel, UncategorizedIf 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 ]
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 migrate and restore single account from one cpanel server to another cpanel server Login to source server : /scripts/whoowns domain.com It shows the username for that domain name. You can create full backup of account which contain all data, database and emails by using following command. #/scripts/pkgacct username Change the permission #chmod 755 [ Read More ]
How to Re-Install cPanel Softwares
Categories: cpanelYou 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
Categories: cpanel, Email Marketing Series, How to, InstallationTo 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
Categories: cpanel, TomcatIf 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
Categories: cpanel, Error and solutionWarning: 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
Categories: cpanel, InstallationHow 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
Categories: cpanel, PHPSuPHP 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 ]
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 ]
view webalizer stats without login to cpanel
Categories: cpanel, KnowledgeIs it possible to view webalizer stats without login to cpanel? Yes. Do the following steps. cd /home/username/www ln -s ../tmp/webalizer webalizer chown username.username webalizer cd ../tmp chmod 755 ./ chmod 755 ./webalizer —————- will allow domain.com/webalizer/ for viewing stats without logging in to cpanel
Create your own Apache Rewrite Log file
Categories: cpanel, htaccessHow 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?
Categories: cpanel, How to, KnowledgeSome 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.
Cpanel Introduction
Categories: cpanelCpanel 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 ]
How to find How many accounts are hosted on server #ll /var/cpanel/users | wc -l 1234
spamming on server
Categories: Basic Linux, cpanel, Email problemsHow 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 ]
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.
Categories: cpanelCannot 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
Categories: cpanelIf 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.
Categories: cpanel, How toPerl 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> ==============
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
Categories: cpanelHello.. 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 ]







