Ubuntu: How to start and stop LAMP server

To view any changes in php.ini file or some LAMP server files we should restart the apache server again.  and you can do this by following commands:

sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start

Above both commands will stop the apache server and start again. But you can do restart apache server by single command only:

sudo /etc/init.d/apache2 restart


Comments

2 responses to “Ubuntu: How to start and stop LAMP server”

Leave a Reply

Your email address will not be published. Required fields are marked *

*