Apache2 error then reinstallning FOG
-
Then i reinstall FOG the install script installfog.sh cannot configure apache2. I cannot access apache2 by going to [url]http://localhost[/url] either. Anyone got an idea what is wrong?
[QUOTE]..#######:. ..,#,.. .::##::.
.:###### .:;####:…;#;…
…##… …##;,;##::::.##…
,# …##…##:::## …::
## .::###,##. . ##.::#.:######::.
…##:::###::…#. … .#…#. #…#:::.
…:####:… …##…##::## … #
# . …##:,;##;:::#: … ##…
.# . .:;####;::::.##:::;#:…
# …:;###…###########################################
FOG
Free Computer Imaging Solution
Created by:
SyperiorSoft
[url]http://www.SyperiorSoft.com[/url]
Developers:
Chuck Syperski
Jian Zhang
GNU GPL Version 3
###########################################
Version: 0.32 Installer/Updater
What version of Linux would you like to run the installtion for?
1) Redhat Based Linux (Fedora, CentOS) 2) Ubuntu Based Linux (Kubuntu, Edubuntu)
Choice: [2]
Starting Ubuntu Installtion.
FOG Server installation modes:
* Normal Server: (Choice N)
This is the typical installation type and
will install all FOG components for you on this
machine. Pick this option if you are unsure what to pick.* Storage Node: (Choice S) This install mode will only install the software required to make this server act as a node in a storage group
More information:
[url]http://www.fogproject.org/wiki/index.php?title=InstallationModes[/url]What type of installation would you like to do? [N]
What is the IP address to be used by this FOG Server? [192.168.1.199]
Would you like to setup a router address for the DHCP server? [Y/n]
What is the IP address to be used for the router on the DHCP server? [192.168.1.1]Would you like to setup a DNS address for the DHCP server and client boot image? [Y/n]
What is the IP address to be used for DNS on the DHCP server and client boot image? [192.168.1.1]Would you like to change the default network interface from eth0?
If you are not sure, select No. [y/N]Would you like to use the FOG server for dhcp service? [Y/n]
This version of FOG has internationalization support, would
you like to install the additional language packs? [Y/n]#####################################################################
FOG now has everything it needs to setup your server, but please
understand that this script will overwrite any setting you may
have setup for services like DHCP, apache, pxe, tftp, and NFS.It is not recommended that you install this on a production system
as this script modifies many of your system settings.This script should be run by the root user on Fedora, or with sudo on Ubuntu.
Here are the settings FOG will use:
Distro: Ubuntu
Installation Type: Normal Server
Server IP Address: 192.168.1.199
DHCP router Address: 192.168.1.1
DHCP DNS Address: 192.168.1.1
Interface: eth0
Using FOG DHCP: 1
Internationalization: 1Are you sure you wish to continue (Y/N) y
Installation Started…
Installing required packages, if this fails
make sure you have an active internet connection.-
Preparing apt-get
-
Installing package: apache2
-
Installing package: php5
-
Installing package: php5-gd
-
Installing package: php5-cli
-
Installing package: php5-mysql
-
Installing package: php5-curl
-
Installing package: mysql-server
We are about to install MySQL Server on
this server, if MySQL isn’t installed already
you will be prompted for a root password. If
you don’t leave it blank you will need to change
it in the config.php file located at:/var/www/fog/commons/config.php
Press enter to acknowledge this message.
Reading package lists…
Building dependency tree…
Reading state information…
mysql-server is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 243 not upgraded.- Installing package: mysql-client
- Installing package: isc-dhcp-server
- Installing package: tftpd-hpa
- Installing package: tftp-hpa
- Installing package: nfs-kernel-server
- Installing package: vsftpd
- Installing package: net-tools
- Installing package: wget
- Installing package: xinetd
- Installing package: sysv-rc-conf
- Installing package: tar
- Installing package: gzip
- Installing package: build-essential
- Installing package: cpp
- Installing package: gcc
- Installing package: g++
- Installing package: m4
- Installing package: htmldoc
- Installing package: perl
- Installing package: libcrypt-passwdmd5-perl
- Installing package: lftp
- Installing package: openssh-server
- Installing package: php-gettext
- Installing package: clamav-freshclam
- Installing package: language-pack-it
- Installing package: language-pack-en
- Installing package: language-pack-es
- Installing package: language-pack-zh-hans
Confirming package installation.
- Checking package: apache2…OK
- Checking package: php5…OK
- Checking package: php5-gd…OK
- Checking package: php5-cli…OK
- Checking package: php5-mysql…OK
- Checking package: php5-curl…OK
- Checking package: mysql-server…OK
- Checking package: mysql-client…OK
- Checking package: isc-dhcp-server…Failed!
- Checking for legacy package: dhcp3-server…OK
- Checking package: tftpd-hpa…OK
- Checking package: tftp-hpa…OK
- Checking package: nfs-kernel-server…OK
- Checking package: vsftpd…OK
- Checking package: net-tools…OK
- Checking package: wget…OK
- Checking package: xinetd…OK
- Checking package: sysv-rc-conf…OK
- Checking package: tar…OK
- Checking package: gzip…OK
- Checking package: build-essential…OK
- Checking package: cpp…OK
- Checking package: gcc…OK
- Checking package: g++…OK
- Checking package: m4…OK
- Checking package: htmldoc…OK
- Checking package: perl…OK
- Checking package: libcrypt-passwdmd5-perl…OK
- Checking package: lftp…OK
- Checking package: openssh-server…OK
- Checking package: php-gettext…OK
- Checking package: clamav-freshclam…OK
- Checking package: language-pack-it…OK
- Checking package: language-pack-en…OK
- Checking package: language-pack-es…OK
- Checking package: language-pack-zh-hans…OK
Configuring services.
- Setting up fog user…Exists
- Setting up and starting MySql…OK
- Backing up user reports…OK
- Setting up and starting Apache Web Server…Failed!
forv@fogserver:~/Documents/fog_0.32/bin$
[/QUOTE]
-
-
Hi,
A few questions:
-What particular version of ubuntu are you using?
-What software did you choose to install during OS installation? (eg I usually choose the LAMP option during installation)
-Have you checked the logs relevant to apache?Obviously, apache isn’t able to start for some reason. I’d be tailing the relevant log files (/var/log/messages, /var/log/apache/error.log etc) and manually attempting to start apache (/etc/init.d/apache2 start) and see what the log output is.
If needed, you can edit the httpd.conf file to make apache logging more verbose. Search for ‘LogLevel’ and set it to ‘Info’ (it will probably be on ‘Warn’ by default). Make sure you keep an eye on log file disk usage though, as apache will be spitting out much more log info than normal with this setting.
Other than those suggestions, I can’t think of much else without extra information on your part- all I can tell from you above post is that some undetermined error is stopping apache from working).
Hope that helps.
-
Did you install all the updates prior to installing FOG? I know that Ubuntu switched from dhcp3 to isc-dhcp or something like that (sorry, been a long day). I’m only suggesting this because I saw that you had an isc-dhcp fail as well. If you have done all the updates, then back to the drawing board on my idea
-
then i removed all php5 stuff and re-installed them it all worked again :). Thanx for your reply!