Ubuntu: How to start and stop LAMP server

May 10, 2011 | In: LAMP, mysql, Ubuntu, web development

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



2 Responses to Ubuntu: How to start and stop LAMP server

Avatar

Jerin Oommen

April 18th, 2012 at 7:44 pm

Thanks

Avatar

aldi fajrin

May 26th, 2016 at 8:55 am

to the point, thanks

Comment Form

Leave a Reply

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

*

Categories

Latest comments


    Fatal error: Uncaught Error: Call to undefined function split() in /home4/nos/public_html/naveenos.com/wp-content/themes/smoker/functions.php:72 Stack trace: #0 /home4/nos/public_html/naveenos.com/wp-content/themes/smoker/sidebar.php(11): mdv_recent_comments() #1 /home4/nos/public_html/naveenos.com/wp-content/themes/smoker/single.php(47): include('/home4/nos/publ...') #2 /home4/nos/public_html/naveenos.com/wp-includes/template-loader.php(74): include('/home4/nos/publ...') #3 /home4/nos/public_html/naveenos.com/wp-blog-header.php(19): require_once('/home4/nos/publ...') #4 /home4/nos/public_html/naveenos.com/index.php(17): require('/home4/nos/publ...') #5 {main} thrown in /home4/nos/public_html/naveenos.com/wp-content/themes/smoker/functions.php on line 72