New Install of FOG 1.1.2 and Ubuntu 12.04 LTS
-
Your apache config looks broken. What does
[CODE]
$ apachectl configtest
[/CODE]
return now? Also can you try restarting and tailing the end of the error.log - it might help diagnose the reason why apache won’t start. -
[CODE]root@SC-Image:/# sudo apt-get remove --purge $(dpkg -l apache* | grep ii | awk ‘{print $2}’)
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
apache2* apache2-mpm-prefork* apache2-utils* apache2.2-bin*
apache2.2-common* libapache2-mod-php5*
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 13.7 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database …
dpkg: warning: files list file for package `apache2.2-bin’ missing, assuming package has no files currently installed.dpkg: warning: files list file for package `apache2-utils’ missing, assuming package has no files currently installed.
(Reading database … 227731 files and directories currently installed.)
Removing apache2 …
Removing libapache2-mod-php5 …
Module php5 disabled.
To activate the new configuration, you need to run:
service apache2 restart
Purging configuration files for libapache2-mod-php5 …
Removing apache2-mpm-prefork …
No apache MPM package installed
Removing apache2.2-common …
Purging configuration files for apache2.2-common …
dpkg: warning: while removing apache2.2-common, directory ‘/var/www’ not empty so not removed.
Removing apache2-utils …
Removing apache2.2-bin …
Processing triggers for man-db …
Processing triggers for ufw …
Processing triggers for ureadahead …[/CODE] -
Okay, now try reinstalling?
-
[quote=“ianabc, post: 32800, member: 24548”]Your apache config looks broken. What does
[CODE]
$ apachectl configtest
[/CODE]
return now? Also can you try restarting and tailing the end of the error.log - it might help diagnose the reason why apache won’t start.[/quote]
[CODE]root@SC-Image:/# $ apachectl configtest
$: command not found[/CODE] -
Yeah, sorry about that, my fingers are slower than Toms! that command won’t work until apache is reinstalled.
-
[CODE] * Setting up and starting Apache Web Server…Failed![/CODE]
-
[CODE]root@SC-Image:/# apachectl configtest
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
Syntax OK
[/CODE] -
Alright, now could you try the configtest,
[CODE]
$ apachectl configtest
$ service apache start
$ tail -n 100 /var/log/apache2/error.log
[/CODE] -
[code]sudo apt-get libapache2-mod-php5 libapache2-mod-mysql php5-mysql[/code]
-
[quote=“NDNtech, post: 32807, member: 23658”][CODE]root@SC-Image:/# apachectl configtest
Syntax OK
[/CODE][/quote]
That’s good, the apache config must be sane, you can ignore the fqdn stuff for the moment. What about the error.log? -
[CODE]root@SC-Image:/# apachectl configtest
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
Syntax OK
root@SC-Image:/# service apache2 start- Usage: /etc/init.d/apache2 {start|stop|graceful-stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean|status}
root@SC-Image:/# tail -n 100 /var/log/apache2/error.log[/CODE]
- Usage: /etc/init.d/apache2 {start|stop|graceful-stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean|status}
-
[quote=“Tom Elliott, post: 32809, member: 7271”][code]sudo apt-get libapache2-mod-php5 libapache2-mod-mysql php5-mysql[/code][/quote]
Install??
-
Sorry, that startup command was for redhat type distributions, for ubuntu it should be
[CODE]
$ /etc/init.d/apache2 start
$ tail -n 100 /var/log/apache2/error.log
[/CODE] -
[quote=“ianabc, post: 32810, member: 24548”]That’s good, the apache config must be sane, you can ignore the fqdn stuff for the moment. What about the error.log?[/quote]
error log is empty -
Is apache running then?
[CODE]
$ ps -ef | grep apache
[/CODE] -
[quote=“ianabc, post: 32815, member: 24548”]Is apache running then?
[CODE]
$ ps -ef | grep apache
[/CODE][/quote]
[CODE]root@SC-Image:/# ps -ef | grep apache
root 17892 5377 0 18:06 pts/1 00:00:00 grep --color=auto apache
[/CODE] -
OK, apache isn’t started then, you could try starting it manually to see if it throws an error
[CODE]
$ sudo apache2ctl -X -k start
[/CODE] -
[CODE]root@SC-Image:/# sudo apache2ctl -X -k start
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName[/CODE]and now it’s sitting with a flashing cursor
-
How does a fresh Ubuntu install sound? lol
-
[quote=“NDNtech, post: 32812, member: 23658”]Install??[/quote]
Yes, sorry about that.