How can we restart Apache via SSH?


Staff member
If you are server admin and need to restart Apache then you can check below steps:
  • Login to your server via Putty.
  • Now you will see the fields to enter Hostname and Port number.
  • In hostname field you can either enter IP address or Hostname of server.
  • Now you will see new windows where you have to enter username and password of server.
  • After login you have to enter below command:
/etc/init.d/httpd restart