Manual Migration from slaved drive to new one

The following guide was taken from Cpanel support forum. This information is when you need to migrate Cpanel account information from one drive or to another. Manually moving Cpanel These commands will allow you to manually migrate all customer data and configs from an old primary drive installed as a slave. source drive should be … Read more

Web stats not updating in cPanel

First check permission of /usr/local/cpanel/3rdparty/bin/awstats.pl, it should be 755. Then to update awstats and webalizer run the script : If that doesn’t update stats, then check domlogs of the domain and see if it is up to date. You can use the following script to run statistics : If none of the above fixes the … Read more

cpanel access logs

Location of cpanel access logs Apache Logs General Error and Auditing Logs: Location : /usr/local/apache/logs/error_log Description : All exceptions caught by httpd along with standard error output from CGI applications are logged here.. The first place you should look when httpd crashes or you incur errors when accessing website. Domain Access Logs: Location : /usr/local/apache/domlogs/domain.com … Read more

How to enable PDO on WHM

For cPanel/WHM, to enable PDO in the system you can use EasyApache: 1. Login to WHM 2. Click Apache Update 3. Click Start Customizing Based on Profile 4. Select an Apache version 5. Click Next Step 6. Select PHP 5 7. Click Next Step 8. Select a version of PHP 5 9. Click Next Step … Read more

Subdomains redirecting to primary domain

Scenario WordPress is installed for the primary domain. WordPress is installed for a subdomain. Subdomains set up under the primary domain. Primary domain – domain.com Subdomain – demo.domain.com Issue: demo.domain.com redirects to domain.com/demo or domin.com Check if there is an .htaccess file in the subdomain directory: If not, create an .htaccess file and include the following: … Read more

php include path changes

Loading a phpinfo file for a domain on a cpanel server, you notice that the “include_path” variable changes. Resolution: With PHP PEAR enabled, PEAR is by default configured to include its PHP directory (/home/domina/php in this case). You can disable /home/domain/php from being in the PHP include_path by either removing that directory (/home/freedc/php) or uninstalling … Read more

Restrict access to ftp and other services in WHM

Source: https://documentation.cpanel.net/display/1142Docs/Host+Access+Control You can use the Host Access Control feature to allow or deny clients’ access, based on the IP address, to the following services: Daemon Name Service Name cpaneld cPanel whostmgrd WHM webmaild Webmail cpdavd WebDisk Allow access for an IP address To allow an IP address to access a service, perform the following … Read more