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 […]

Continue Reading…

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 : […]

Continue Reading…

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. […]

Continue Reading…

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: [wpfmb type=’error’ theme=2]mysql evince142_tiwi1 < backup.sql ERROR 1153 (08S01) at line 1868: Got a packet bigger than ‘max_allowed_packet’ bytes[/wpfmb] 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 […]

Continue Reading…