Fedora Linux Support Community & Resources Center
  #1  
Old 19th June 2005, 10:32 AM
Flatron Offline
Registered User
 
Join Date: Apr 2005
Location: Hungary, Europe
Posts: 116
Apache2 - PHP error

When I start Apache2, I get this error:
Syntax error on line 239 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied

I found the problem in another topic, http://forums.fedoraforum.org/showthread.php?p=281108, but when I disable selinux from the httpd, the problem still appears. It olny works, when I disable the whol selinux. I think that's why my apache installed from source. So how can I tell selinux to handle /usr/local/apache2 as the http daemon?
Reply With Quote
  #2  
Old 19th June 2005, 12:50 PM
websavages Offline
Registered User
 
Join Date: May 2004
Location: The land down under
Posts: 140
i've installed my apache web server from source and php from source as well and have never run into problems with selinux, i tend to compile software to the /opt directory just for neatness

try this and see if this solves your problem

configure apache and php with --prefix=/opt/{name}

Cheers ws
__________________
--
Breathe
--
Reply With Quote
Reply

Tags
apache2, error, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 av1611 Servers & Networking 2 28th September 2009 03:02 AM
apache2 403 error on ~userdir ajayd Servers & Networking 6 7th September 2008 12:56 AM
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /us Kingtu Servers & Networking 2 5th April 2007 12:54 AM
Apache2 y DNS tinixtech Servers & Networking 0 27th March 2007 04:41 AM


Current GMT-time: 23:36 (Monday, 01-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat