saving . . . saved Stopping Apache has been deleted. Stopping Apache has been hidden .
Stopping Apache
when i try to stop already running Apache2. system is saying command not found.
the command used to stop is: sudo /etc/init.d/apache2 stop

Moodle-Learning-Management-System Getting-Ready-for-Moodle-Installation 06-07 min 10-20 sec 01-03-19, 12:29 p.m. praveen897


Pls confirm whether you got a message that says An apache daemon is already running\\\\u201d

You can only stop a service that is running, else it will say command not found.
06-03-19, 10:52 a.m. nancy

Dear Praveen,
Which version of Ubuntu Server are you using pl.
sudo /etc/init.d/apache2 stop
is used specifically in pre Ubuntu Linux version Ubuntu 15.04.

For Ubuntu 15.04+ please use the following commands
## Start command ##
systemctl start apache2.service
## Stop command ##
systemctl stop apache2.service
## Restart command ##
systemctl restart apache2.service

Trust it helps.
Sharing information about the environment (OS and its Version, Server Version, PHP, Database Version) helps in understanding your requirement and will help easier trouble shooting.

All the best.
With Regards,
11-03-19, 11:02 p.m.

Log-in to answer to this question.