Stopping Apache
Title
Question
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
Answers:
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.
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,
JSP
## 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,
JSP
Login to add comment