Restart services

Apache

Restart gracefully

This command ensures that current tasks are completed before restarting.

apachectl graceful

Restart immediately

apachectl restart

MySQL

 /etc/init.d/mysqld restart service mysql restart