Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
30
rated 0 times [  30] [ 0]  / answers: 1 / hits: 39552  / 1 Year ago, fri, may 5, 2023, 3:03:14

I receive the same message than explained in this thread when I'm trying to restart apache2 :



 * Restarting web server apache2 [fail]
* There are processes named 'apache2' running which do not match your pid file which are left untouched in the name of safety, Please review the situation by hand.


But the problem is that I don't have any file inside /var/run/apache2.
The command pidof apache2 returns :



1274


I don't know if it will help but here is the line in apache2.conf :



PidFile ${APACHE_PID_FILE}


And the one in envvars :



export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid


Should I manually create a .pid file inside /var/run/apache2 ?



Thank you very much !


More From » server

 Answers
5

Thanks to @douggro who found the answer.



Find the processus id of Apache2 with :



pidof apache2 


Kill the process(es) :



sudo kill -9 <pid>


Then you can start Apache2 as usually :



sudo service apache2 start


UPDATE



If sudo kill -9 <pid> doesn't work, just try sudo kill <pid> !


[#26605] Sunday, May 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
overine

Total Points: 20
Total Questions: 109
Total Answers: 98

Location: Aruba
Member since Fri, Jun 24, 2022
2 Years ago
overine questions
Tue, Jul 12, 22, 00:27, 2 Years ago
Wed, Jan 11, 23, 02:15, 1 Year ago
Tue, Aug 10, 21, 01:39, 3 Years ago
;