Page 1 of 1

New installation issue, httpd service wont start. Help!

Posted: Sun Jun 12, 2011 10:39 pm
by ctmiller82
Hello I have a fresh install of the newest nagios xi running inside vsphere

Virtual Machine version is 7
CentOS release 5.4 (final)
Kernel 2.6.18-238.12.1.e15 on an 1686

After configuring my interface and brining it up I noticed I was unable to access the the nagiosxi configuration page on port 80. After some basic troubleshooting I discovered the following problem when running servce httpd start

Starting httpd: (2)No such file or directory: httpd: could not open error log file /etc/httpd/logs/error_log.
Unable to open logs [failed]

I thought maybe something went wrong during installation so I preformed another install and the same problem is happening. I'm not that familiar with Linux/Unix OS's so my ability is weak but I attempted to open /etc/httpd/logs/error_log

When i open /etc/httpd/logs/ it tells me there is no directory "logs"

Next I decided to do a ls -l logs inside the /etc/httpd/ directory, below is my output
lrwxrwxrwx 1 root root 19 May 24 14:49 logs -> ../../var/log/httpd

Any help would be much appreciated, thank you!

Re: New installation issue, httpd service wont start. Help!

Posted: Mon Jun 13, 2011 10:41 am
by mguthrie
Just to clarify, are you using our pre-installed Nagios XI VM, or did you do a manual install on your own VM?

Do you have Gnome installed on this system?

Re: New installation issue, httpd service wont start. Help!

Posted: Mon Jun 13, 2011 12:18 pm
by ctmiller82
I am using the prebuilt vmware appliance.

Re: New installation issue, httpd service wont start. Help!

Posted: Mon Jun 13, 2011 12:32 pm
by ctmiller82
I am running the pre configured VM that I converted to run inside VSphere using the VMWare stand alone converter.

Re: New installation issue, httpd service wont start. Help!

Posted: Tue Jun 14, 2011 9:50 am
by tonyyarusso
What date did you download the VM? What is the md5sum of the ZIP file you downloaded?

Re: New installation issue, httpd service wont start. Help!

Posted: Tue Jun 14, 2011 7:17 pm
by ctmiller82
Not sure how to calculate the md5 hash but I downloaded on Saturday 6/11/2011 and it appears to be the newest release. Any idea on whats wrong?

Re: New installation issue, httpd service wont start. Help!

Posted: Tue Jun 14, 2011 9:45 pm
by ctmiller82
Small Update
I re downloaded the current VMWare Image, reinstalled, same thing. I than changed the VM Version from 7 to 4 and re converted, same thing. Possible the image is bad? Any directions on how to fix?

Re: New installation issue, httpd service wont start. Help!

Posted: Wed Jun 15, 2011 10:54 am
by tonyyarusso
Yup, confirmed that our image is broken. Here's what you need to do for a temporary workaround:

Code: Select all

sed -i '/.*MACADDR.*/d' /etc/sysconfig/network-scripts/ifcfg-eth0
mkdir /var/log/httpd
chown apache.apache /var/log/httpd
Then reboot.