1 points, 1448 views
Linux trick and tips
Bits and pieces for me to remember...
Starting and stopping apache

/sbin/service httpd start

/sbin/service httpd stop

/sbin/service httpd restart

Apache - Location of httpd.conf

/etc/httpd/conf/httpd.conf

VI & VIM - Saving and existing

:x - Exit and save changes

:q - Exit without changes

:q - Exit ignoring changes

MySQL Config file

/etc/my.cnf

MySQL - starting and stopping

/etc/init.d/mysql start

/etc/init.d/mysql stop

/etc/init.d/mysql restart

Zipping and unzipping

tar -zxvf file.tar - unzip a file

Location of Apache log files

/var/log/httpd/