Can’t open freshclam.log in append mode
Posted by blackonsole on December 27th, 2014 12:05 PM | No Comment
:: Error in cronjob
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
:: How to fix clamav can't open /var/log/clamav/freshclam.log in append mode in cPanel server
+ Check permission in log files
ls -lh /var/log/clamav/
-rw-r--r-- ...
Linux :: su: cannot set user id: Resource temporarily unavailable
Posted by blackonsole on January 11th, 2013 02:27 AM | No Comment
:: How to fix su: cannot set user id: Resource temporarily unavailable issue
+ error
$ su -
su: cannot set user id: Resource temporarily unavailable
$
+ How to fix
vi /etc/security/limit.conf
# add / change on these line:
* ...
MySQL :: Cannot load from mysql.proc. The table is probably corrupted
Posted by blackonsole on December 18th, 2012 12:52 PM | 2 Comments
:: How to fix Cannot load from mysql.proc. The table is probably corrupted in mysql
Try to run this command line:
mysql_upgrade
or
mysql_upgrade -uroot -p --force
:: Link
+ Google
+ WebCheatSheet
PHP :: Fatal error: Class 'DomDocument' not found
Posted by blackonsole on July 17th, 2012 12:44 PM | No Comment
:: PHP error
Fatal error: Class 'DomDocument' not found
:: How to fix
+ install php-xml
yum install php-xml
+ restarting httpd
/etc/init.d/httpd restart
:: Links
+ Google
:: NGINX: [emerg] directive "rewrite" is not terminated by ";"
Posted by blackonsole on May 8th, 2012 07:19 PM | 3 Comments
:: Error when reload / restart nginx
nginx -s reload
nginx: directive "rewrite" is not terminated by ";" /etc/nginx/vhost/blackonsole.org.conf:15
in line 15 use { and } characters in the regular expressions conflict with the block delimiter of the Nginx configuration file syntax ...
:: PHP: Unable to load dynamic library json.so
Posted by blackonsole on May 6th, 2012 02:16 PM | No Comment
:: Error
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/json.so' - /usr/lib/php/modules/json.so: undefined symbol: ZVAL_DELREF in Unknown on line 0
:: How to fix unable to load dynamic library json.so on centos
+ reinstall php
yum remove php
yum install php
+ reinstalling php-common
yum ...
:: PHP : apc.shm_size now uses M/G suffixes
Posted by blackonsole on May 3rd, 2012 04:39 AM | No Comment
:: PHP error
php -v
PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line
:: How to fix apc.shm_size now uses M/G suffixes on CentOS
edit apc.ini and change on apc.shm_size
vi /etc/php.d/apc.ini
from
apc.shm_size = 128
to
apc.shm_size ...