Advertisement
rAthus

Relancer Apache2 quand il crash sur le serveur SYS

Feb 5th, 2018
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. When Apache2 won't reload, restart, stop or start, with errors like:
  2. - "Apache2 is not running"
  3. - "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."
  4. - "(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80"
  5. - "no listening sockets available, shutting down"
  6. - "The apache2 instance did not start within 20 seconds. Please read the log files to discover problems"
  7.  
  8. Find the processus id of Apache2 with:
  9.  
  10. >pidof apache2
  11.  
  12. Kill the process(es):
  13.  
  14. >sudo kill -9 <pid>
  15.  
  16. Then you can start Apache2 as usually:
  17.  
  18. >sudo service apache2 start
  19.  
  20. If sudo kill -9 <pid> doesn't work, just try:
  21.  
  22. >sudo kill <pid>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement