httpd will not start

ghettoc401

Verified User
Joined
Jan 18, 2009
Messages
5
First and foremost, let me say that I have been searching the forums for the past 2 days and I have not found anything that has helped me.

Ok, now for my situation. I was on the forums last week looking for a way to block IP access to my VPS (running Fedora Core 7) when I came across this thread here. Now because I have 3 other VPS's with CentOS5 on them, I forgot that the VPS I was working on had FC7 and I installed Quick Deployment. After I installed it, my VPS went down, and I had to get my hosting company to reinstall the O/S files for me so that I could at least SSH into the VPS again. Ok, that was the whole backstory

Now I finally have SSH access and I was able to reinstall DA on my VPS again, but only sometimes after a lucky reboot of my VPS, I can log into DA. After looking in the services panel, it (being DA) found that httpd is not running / cant run. I tried to run
Code:
service httpd start
and I get errors for days. Just to see what would happen, I would comment out the error in httpd.conf to see if httpd would continue starting, but it seems like there's always another error coming after it. Here is a log of all the errors:
Code:
[root@eoclan conf]# service httpd start
Starting httpd: httpd: Syntax error on line 24 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_vhost_alias.so into server: /etc/httpd/modules/mod_vhost_alias.so: undefined symbol: ap_pcalloc
                                                           [FAILED]

[root@eoclan conf]# service httpd start
Starting httpd: httpd: Syntax error on line 31 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_env.so into server: /etc/httpd/modules/mod_env.so: undefined symbol: ap_make_table
[root@eoclan conf]# service httpd start
Starting httpd: httpd: Syntax error on line 32 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_log_config.so into server: /etc/httpd/modules/mod_log_config.so: undefined symbol: ap_month_snames
                                                           [FAILED]
[root@eoclan conf]# service httpd start
Starting httpd: httpd: Syntax error on line 33 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_log_agent.so into server: /etc/httpd/modules/mod_log_agent.so: undefined symbol: ap_palloc
                                                           [FAILED]
Now my intial thoughts are that the modules directory does not exist or there are no modules installed, but I dont know how to install modules. I would use yum but I read in another thread that using yum to install/update httpd will break the installation, so I didn't want to try doing that (and potentially making things worse). Any help is greatly appreciated, thanks in advance.
 
After I installed it, my VPS went down, and I had to get my hosting company to reinstall the O/S files for me so that I could at least SSH into the VPS again.

Was this a fresh install on a newly formatted virtual drive?
 
no, only the operating system files were replaced. They called it a template replacement or something of the sort. At this point I'm so frustrated I'm just ready to start fresh. I would have them just wipe the whole drive clean because I've already backed up my website files in a safe place, but I can't access my mysql databases.
 
Their template probably reinstalled a different version of Apache; this kind of error is common when the httpd.conf file doesn't match the apache version.

You need to find out what else they installed. I'm not sure but I think running customapache in full update mode will solve the problem.

Jeff
 
I just decided to format my VPS and reinstall Direct Admin, but now I have another problem. I can't log into the control panel to setup my admin account. I've tried restarting my VPS and I even tried to reinstall Direct Admin again but I'm still not able to log into the control panel.

EDIT: To add more info, here is the error that direct admin is giving me:

Code:
2009:01:21-09:29:01: ioctl can't find the server's ip address for eth0 : No such device
2009:01:21-09:29:02: The ip of this machine () does not match the ip in the license file.<br>
Check the value of your ethernet_dev=eth0 setting in your /usr/local/directadmin/conf/directadmin.conf file and the output of /sbin/ifconfig<br>

For some reason my vps can't grab its IP from eth0 (I've had this problem before) so I guess I need to edit my IP into some file. I've already tried changing ethernet_dev=myip but it still didnt work.
 
Last edited:
You cant put ethernet_dev=myip it has to be the device. Check for the device by typing /sbin/ifconfig
 
http://www.directadmin.com/installguide.html

Special notice for VPS/VDS installs:
After the install, add:

ethernet_dev=devicename

for example, on many vps systems it will be:
ethernet_dev=venet0:0

other systems where the IP is not the base IP on the device, you'd need to simply set the correct number:
ethernet_dev=eth0:1

or other systems with the IP on a different device, it might be:
ethernet_dev=eth1

type: /sbin/ifconfig
to see which device your IP is in.
to /usr/local/directadmin/conf/directadmin.conf.

Replace devicename with the FULL devicename reported by ifconfig. If your VDS/VPS system emulates eth0, then you may skip this step.
 
Back
Top