Apache not starting after reboot
-
Apache2 not starting on reboot of server. Have tried reinstalling fog and still cant get Apache to start.
This site can’t be reached
fog-srv refused to connect.
Search Google for fog srv
ERR_CONNECTION_REFUSED -
root@FOG-SRV1:/# sudo service apache2 restart
- Restarting web server apache2 [fail]
- The apache2 configtest failed.
Output of config test was:
AH00534: apache2: Configuration error: No MPM loaded.
Action ‘configtest’ failed.
The Apache error log may have more information.
root@FOG-SRV1:/#
-
I edited the apache2.conf and now I am getting this
root@FOG-SRV1:/# sudo service apache2 restart
- Restarting web server apache2 [fail]
- The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
Action ‘configtest’ failed.
The Apache error log may have more information.
root@FOG-SRV1:/#
-
Ok now i have reinstalled libphp5 and am getting
root@FOG-SRV1:/# service apache2 restart
- Restarting web server apache2 AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message
Segmentation fault (core dumped)
Action ‘start’ failed.
The Apache error log may have more information.
[fail] - The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
root@FOG-SRV1:/#
this
- Restarting web server apache2 AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message
-
This has been resolved by Tom.
It was a php version issue he had me run
rm -rf /etc/apache* /etc/php*
apt-get purge ‘libphp’ ‘apache*’ ‘php*’then reinstall and it worked perfectly.