PDA

View Full Version : httpd conf problem cant start



brianmay27
7th April 2006, 04:28 AM
Well this may be a simple fix but i installed fedora 5 on and made some changes to http file on the program and saved it and tryed to start it but it failed. i did the service httpd configtest and it gave me this message "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" I then went to the conf file and deleted it and renamed the other conf file in the dir and it worked again. I tryed reinstalling it but no luck. This only happens when i change/save the file. Please help.

foobar47
7th April 2006, 09:00 AM
Hey man, read this one :



Opened by Chris Tyler on 2006-02-05 01:20 EST [reply]

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7

Description of problem:
system-config-httpd needs to be updated for compatibility with Apache 2.2 for FC5 -- many of the LoadModules and includes in the generated httpd.conf file fail when used with httpd-2.2.0-5.

Version-Release number of selected component (if applicable):
system-config-httpd-1.3.3-1.1

How reproducible:
Always

Steps to Reproduce:
1. Start httpd-config-httpd on FC5T2 or later Rawhide.
2. Enter a server name and click OK (and OK on subsequent dialogs).
3. Restart Apache.


Actual Results: Apache does not start due to errors in the configuration file.

Expected Results: Apache should have started with the specified configuration.

Additional info:

Tested on FC5T2 and Rawhide 2006-02-04 and compared with FC4 and with the httpd.conf supplied in the httpd-2.2.0.5 package. Sample error message when starting Apache with a configuration file generaated by system-config-httpd:

httpd: Syntax error on line 170 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


Comment #1 From Chris Tyler on 2006-02-18 22:23 EST [reply]

Created an attachment (id=124857) [edit]
Patch for /usr/share/system-config-httpd/httpd.conf.xsl

This patch updates the LoadModule directives in httpd.conf.xsl for
compatability with Apache 2.2 (FC5)


Comment #2 From Phil Knirsch on 2006-03-06 12:35 EST [reply]

Thanks for the updated module list, i'll include it in the next build of s-c-h.

Read ya, Phil


Comment #3 From Michael Paine on 2006-03-31 02:01 EST [reply]

(In reply to comment #2)
> Thanks for the updated module list, i'll include it in the next build of s-c-
h.
> Read ya, Phil

I ran patch /usr/share/system-config-httpd/httpd.conf.xsl attachment.cgi and I
still receive the same error.



Comment #4 From Michael Paine on 2006-03-31 03:51 EST [reply]

I figured out the problem: SELinux. I had to turn on "Allow HTTPD scripts and
modules to connect to the network." Is this a kludge or would this be
recommended?


Comment #5 From Phil Knirsch on 2006-04-03 11:23 EST [reply]

Ah, thats actually expected behaviour. By default with SELinux enabled your
system won't allow CGI scripts to be executed as they might pose a security risk.

So this is the correct way to "fix" this.

Read ya, Phil



https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=180056

Cheers ;)

Power button?
1st May 2006, 08:13 AM
Hi Guys,
I'm really new to Linux, and I've been trying to set up an Apache server on FC5. I have istalled the server no problem, but when I try to start the httpd service--it won't work. I have tried to patch the Bugzilla Bug 180056 (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=180056 ) , which seemed to be my problem, but when I try to start the service--it still says
Hunk #1 FAILED at 157.
Hunk #2 FAILED at 208.
2 out of 2 hunks FAILED -- saving rejects to file /usr/share/system-config-httpd/httpd.conf.xsl.rej
I also tried runnig this.
mv /etc/httpd/conf/httpd.conf.bak /etc/httpd/conf/httpd.conf
Nothing has worked!!!! I also tried this post (http://forums.fedoraforum.org/showthread.php?t=100312&highlight=httpd.conf.xsl), but as I also have a problem with my package manager, so I cannot follow all of the instructions...
Unable to retrive software information
If anyone can help I would greatly appreciate it, and I apologise if I have repeated a topic unnecessarily.

:confused: :confused: :confused: :confused:

Deore
1st May 2006, 03:18 PM
Well this may be a simple fix but i installed fedora 5 on and made some changes to http file on the program and saved it and tryed to start it but it failed. i did the service httpd configtest and it gave me this message "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" I then went to the conf file and deleted it and renamed the other conf file in the dir and it worked again. I tryed reinstalling it but no luck. This only happens when i change/save the file. Please help.


-> http://forums.fedoraforum.org/showthread.php?t=107243

Power button?
2nd May 2006, 07:53 AM
Thanks Deore,
I changed the reference in the httpd.conf.xsl file, and it looks like it works!!! Thanks for your help! :)