How to restart Apache

If your web host is running Cent OS with Cpanel the command to execute in your command line is:

service httpd restart

you may also run:

/etc/init.d/httpd restart

If your web host is running Ubuntu/Debian the command to execute is:

service apache2 restart

you may also run:

/etc/init.d/apache2 restart