PDA

View Full Version : HTTPD problem



grayboots
26th May 2006, 10:24 AM
Hi,
I had a small problem this morning which seems to be getting bigger !

I've had my web server up and running. It had a slight problem with looking for the php index file before the html file, i fixed this in the server settings. I went to restart httpd it stopped and wont start again .
I,ve found the httpd.conf file , and it appears to be blank ! , ive also found the http.conf.bak file and have tried to save this as the httpd.conf, but i don't have permission. I am logged in as root.
Anyone got any ideas ?

im running out of them !

many thanks

graham

Omega Blue
26th May 2006, 11:07 AM
It may be a SELinux problem

grayboots
26th May 2006, 11:14 AM
Thanks for your reply, but SElinux and the firewall are disabled !

grayboots
26th May 2006, 12:41 PM
I also have tried to start it in my terminal using > service httpd start
I am getting an unable to start 'load module' error,

when i try to alter the httpd file to remove this line i am denied permission to save the updated file !!

am i on the right track here ?

any help appreciated

grayboots
26th May 2006, 02:52 PM
When i try to start my apache server in terminal im getting this message

[root@server ~]# service httpd start
Starting httpd: httpd: Syntax error on line 218 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

i would appreciate any help !

thanks

graham

Jman
27th May 2006, 03:43 AM
[root@server ~]# service httpd start
Starting httpd: httpd: Syntax error on line 218 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

I'm quite sure Fedora doesn't look there for modules, mine are in /usr/lib/httpd/modules/ (well, lib64)

Where did you get this mod_access, I'm not finding a Fedora package for an Apache httpd module?

gavinw6662
28th May 2006, 03:35 AM
do you need mod_access?? If not - then you should just comment out that line......

vi httpd.conf (where ever it is - make sure you have the proper permissions to make changes to this file)
then type:
:218 (wil jump you to line 218)
then put a comment in front of it '#'.

Then try it and see if it helps you or not.

grayboots
28th May 2006, 07:17 PM
Yes thanks for the ideas . I found that commenting this line just brought up a similar error on the next line , and so on.
Anyway, the problem is solved now , i uninstalled apache and reinstalled a new one that worked out of the box. I don't know exactly why they should be different but it works now !.

Im nearly there now. I,ve only got to work out how to get my phpmyadmin to let me look at mysql. I don't seem to have the correct permissions !

thanks very much for reading my posts and offering all of the advice. It is really appreciated.


graham

tornadof3
28th May 2006, 10:12 PM
In my setup the /etc/httpd/modules is full of symlinks to the real ones in /usr/lib/...........

Omega Blue
29th May 2006, 03:02 AM
Im nearly there now. I,ve only got to work out how to get my phpmyadmin to let me look at mysql. I don't seem to have the correct permissions !

That's MySQL permissions, I think.