Ubuntu – Starting apache2 server from terminal

Apache2

I have installed LAMP stack on Ubuntu 14.04. Now I want to start apache2 server from terminal. What are the commands to do that?

Best Answer

Try executing following command

$sudo service apache2 restart|stop|start 

open the web browser and go to the URL http://localhost

if you read

"It works!"

message on browser

which is the content of the file

/var/www/index.html

this proves that Apache server has started and it is working. source.

Related Question