If icons not displaying in cPanel, run script : /usr/local/cpanel/bin/rebuild_sprites […]
Category: Cpanel
Redirect site without changing url
To redirect site without changing url add the following code to index.php or index.html file: [wpfmb type=’info’ theme=2]<FRAMESET ROWS=”*,0″ FRAMEBORDER=0 BORDER=0 FRAMESPACING=0> <FRAME SRC=”http://www.YOURNAME.COM/” NORESIZE> </FRAMESET>[/wpfmb] […]
FTP connection problem
Sometimes while accessing FTP you receive following error: [wpfmb type=’error’ theme=2]error: 14:15:20 Response: 421 Sorry, cleartext sessions are not accepted on this server. 14:15:20 Error: Could not connect to server[/wpfmb] In order to solve above problem follow the steps: 1) Login to WHM with root user. 2) Go To : Service Configuration >> FTP Server […]
Getting cpanel/whm default page for all the domains
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: [wpfmb type=’error’ theme=2]jtablesession::Store Failed DB function failed with error number 145 Table ‘./stuffabo_jo151/jos_session’ is marked as crashed and should be repaired SQL=INSERT INTO `jos_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` ) VALUES ( ‘55194ad14a496478f5b74592387b2680′,’1278058254′,”,’0′,’1′,’0′ )[/wpfmb] 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 […]