It might happens you start getting cpanel/whm default page for all the domains. Follow the steps in order to resolve the issue: Run following command: Option 1: /usr/local/cpanel/bin/userdata_update This command helps to restores the missing alias in the userdata and merge it with your existing data. /scripts/rebuildhttpdconf This command helps to builds the httpd.conf against the […]
Enable “Update Now” in Awstats
In order to enable “Update Now” in Awstats in cPanel follow the below steps: Login to server via SSH You need to edit the domain awstats conf (awstats.domainName.conf) file: cd /home/username/tmp/awstats Search for the “AllowToUpdateStatsFromBrowser”,in the conf file. (The default value of AllowToUpdateStatsFromBrowser will be 0) grep AllowToUpdateStatsFromBrowser awstats.example.com.conf It should be set to AllowToUpdateStatsFromBrowser=1 […]
Changing ownership of a symlink
While changing the ownership for the symlink,We use the following command: chown -R user.user link_path It sometimes will not allow you to change the ownership of the symlink. Use following command in order to change the ownership for a symbolic link chown -h user.user link_path Now you can change the ownership of a symbolic link. […]
How to check server configuration files through command line.
Following commands can be use to check the syntax of the configuration files of different services: 1) To check the syntax of APACHE: httpd -t In order to check the syntax of virtualhost: httpd -t -D DUMP_VHOSTS 2)To check syntax for DNS: a) checking syntax errors in the main configuration file.. named-checkconf main-config-file main-config-file : […]
Change disk quota for a user using script
To change the disk quota of a user ‘test’ to 150 MB in a cPanel server, Run the following: /scripts/editquota test 150M That’s it. […]
Error : The following exception has occurred: API failure: DBD::mysql::db selectall_arrayref failed: Table is marked as crashed and should be repaired.
Sometimes website start displaying error as follows: If you receive such error just try to repair the database related to the site. […]
Creating a file with specific size
Sometimes we need to add a file with specific file size for testing the download speed etc.. For this you can create a file with specific size by following command: Lets create a test file with specified size 100Kb. [root@server ~] # dd if=/dev/zero of=Testfile bs=1024 count=100 Where, dd – dd is a common UNIX program whose […]
ModSecurity: Rule execution error – PCRE limits exceeded (-8)
Some times After browsing site we get a blank page and the Apache error logs display following error logs: In order to solve this error follow the steps: […]
How to install Softaculous in WHM
Softaculous is an auto installer which allows you to install 350+ awesome scripts on your server. By utilizing Softaculous you can install WordPress, Joomla, Drupal, PrestaShop, Magento and so on within some clicks. Today we are demonstrating how to install Softaculous on WHM/cPanel. […]
ERROR 1153 (08S01) at line 1868: Got a packet bigger than ‘max_allowed_packet’ bytes
While importing some data into a local MySQL database we got an error: This error is basically occurs when a MySQL client or the server receives a packet bigger than max_allowed_packet bytes, it issues a Packet too large error and closes the connection. To resolve the error: Login to the sever as root. Open the file […]