Skip to content

Instantly share code, notes, and snippets.

@todiadiyatmo
Last active February 24, 2016 04:44
Show Gist options
  • Select an option

  • Save todiadiyatmo/fabb5b357a910166069f to your computer and use it in GitHub Desktop.

Select an option

Save todiadiyatmo/fabb5b357a910166069f to your computer and use it in GitHub Desktop.
Log Location config

journalctl

journalctl -u mysql.service

System

tail  -f /var/log/messages -n 1000 | grep --line-buffered "timeout"

**last modified**
ls -las1t | head -5

PHP FPM

/etc/php5/fpm/php-fpm.conf

#/etc/php5/fpm/pool.d/www.conf
slowlog = /var/log/php5/slow.log
request_slowlog_timeout = 10s

Apache

/usr/local/apache/logs/error_log

Mysql

/var/lib/mysql/{SERVER_NAME}.err

mysqlcheck -u root -p --auto-repair --check --all-databases

#Easy Engine 
tail /var/log/syslog -n 200

sudo redis-cli monitor



run backup

/usr/local/cpanel/bin/backup --force

memcached

/etc/sysconfig/memcached

php conf

/usr/local/apache/conf/php.conf 

Compile Easy Apache

  1. Copy Memcached config
  2. Edit /usr/local/php.ini

Trace Mail

grep cwd=/home /var/log/exim_mainlog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment