Apache Web Server

Apache Web Server is the most widely used web server software and it enables a computer to host one or more website that can be accessed over the internet using the web browser. It can host static website as well as dynamic websites and uses the server-side scripting language such as PHP, Python or Perl.

 Commands

/usr/local/cpanel/scripts/restartsrv_*  is used to restart the service from the command line. The command restartsrv_Apache*restarts the apache web server.

Some other common restart commands are as follows

restartsrv_clamd* - To restart ClamAV anti-virus software
restartsrv_dovecot* - To restart Dovecat mail server
restartsrv_ftpserver* - To restart FTP server
restartsrv_exim*- To restart Exim mail exchanger
restartsrv_mysql* -TO restart MySQL service

Commands used to restart, start and stop an Apache WebServer using SSH

# /etc/init.d/apache2 restart
# /etc/init.d/apache2 start
# /etc/init.d/apache2 stop

Click to know more about Apache versions and Apache Handler.

Categorized in:

Tagged in:

, ,