linux stuff

Server admin stuff

on May 03, 2008

Server reboot commands:

  • shutdown -r now - Reboot ("safe" - runs the init scripts associated with the shutdown process)
  • shutdown -nr now - Reboot ("forced" - skips the init scripts - use of this command option is not recommended, as it may affect database integrity and cause other errors)
  • shutdown -h now - Halt the VPS (equivalent to a "safe" shut down)

Logs (cPanel/WHM):

  • /usr/local/apache/logs/error_log - General Apache error log.
  • /usr/local/apache/logs/suexec_log
  • /usr/local/apache/domlogs/domain.com - General access log for each domain.
  • /var/log/messages - FTP log
  • /var/lib/mysql/domain.err - MySQL error log

Other stuff:

  • /var/lib/mysql/account_name/ - MySQL database files location for each account

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.