Linux and Apache commands
Here are some commands that we use at the Gazette on our Linux web server. It is running Red Hat Enterprise Linux 5.2.
Reload Apache Conf file
/etc/init.d/httpd reload
Restart Apache
apachectl -k graceful (didn’t work on Rackspace)
Restart Apache from ssh
/etc/rc.d/init.d/httpd restart
Modify Apache conf file
vi /etc/httpd/conf/httpd.conf
vi commands
i enter edit mode
esc to exit edit mode (command mode)
:wq to write changes and quit (in command mode)
:!q quit without saving
Memory Use
free -t -m