PDA

View Full Version : Web Server Not Up



MickeyMouse
14th June 2006, 06:06 AM
I setup a low end PC that I bought for $150 as a Linux home file server. The PC has AMD Geode CPU, 640MB DIM memory and a 40GB HDD and a 60GB HDD. I installed Fedora Core 5 mainly as a Server but with additional apps as needed to maintain the box.

Once it is up, I've got Samba running well and everyone in the house is able to connect to their shares, but I'm having web problems.

The server just isn't runing. When I start it with the /etc/rc.d/init.d/httpd start, I get the following error:

[root@linuxserver init.d]# ./httpd start
Starting httpd: httpd: Syntax error on line 176 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_access.so into server: /etc/httpd/modules/mod_access.so: cannot open shared object file: No such file or directory

Once I fix this error, then I get another error of another module that fails.

We hope to use this for data storage and internal web server for testing web applications, PHP and MySQL. I'm hoping toget Webmin runing once this is fixed.

Anyone have an idea why these are failing and where I went wrong?

Thanks

Mat
14th June 2006, 07:05 AM
often it's SELinux that is misconfigured which prevents apache from runnning

try to disable and test the web server again.. then you know that it's SELinux and can start to configure it they way you want to


Mat

MickeyMouse
15th June 2006, 12:36 AM
Since this is on our local LAN in our home, I disabled both the Firewall and SELinux during the install. I will check again tonight to make sure, but I don't think it is running.

MickeyMouse
15th June 2006, 06:05 AM
Ok, I checked and I was correct, they are both disabled. Tonight I am re-installing all the web services to see if that helps.

ccrvic
15th June 2006, 07:18 AM
/etc/httpd/modules/mod_access.so: cannot open shared object file: No such file or directory

What do you get from

locate mod_access.so

Vic.

MickeyMouse
16th June 2006, 06:41 AM
Nothing...

MickeyMouse
16th June 2006, 06:47 AM
When I evecute "/etc/rc.d/init.d/httpd start", this is what I get:

[root@someserver init.d]# ./httpd start
Starting httpd: httpd: Syntax error on line 182 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_access.so into server: /etc/httpd/modules/mod_access.so: cannot open shared object file: No such file or directory

When I look for the file listed above, there is no such file:

[root@someserver init.d]# ls -l /etc/httpd/modules/mod_access.so
ls: /etc/httpd/modules/mod_access.so: No such file or directory

niseidea
27th June 2006, 12:38 AM
i had the very same issue with my new install of FC5 -and i fixed it.

what i suspected was that a complete and correct install of apache didn't make it onto my FC5 Discs. After spending 2 days trying to figure out how to get mod_access.so, or commenting it and it's other erroring mods out of httpd.conf -i found the easier solution.

1. from the GNOME desktop i unistalled the flawed Apache that came with the FC5 distribution with Applications > Add/Remove Software > Servers > HTTP

2. after restarting i used Add/Remove Software again to ADD the HTTP server back. this gets a new install of Apache from the web -not from the FC5 distribution discs.

3. restart and BINGO all fixed