This forum is no longer active. Please post your questions to our new community site

Forums LAMPStack

How to restart webserver

Subscribe to How to restart webserver 2 post(s), 2 voice(s)

Avatar chrisshan168 28 post(s)

It’s wired, I tried this command:

sudo /etc/init.d/apache2 restart

But here is the error:

sudo: /etc/init.d/apache2: command not found

What’s wrong?

Avatar Beltrán Rueda Administrator 3,714 post(s)


The command to start/stop servers is the following “/opt/bitnami/” or “/etc/init.d/bitnami”

       ./ (start|stop|restart|status)
       ./ (start|stop|restart|status) mysql
       ./ (start|stop|restart|status) apache
  start      - start the service(s)
  stop       - stop  the service(s)
  restart    - restart or start the service(s)
  status     - show the status of the service(

You can find more info at

Forums LAMPStack