LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-21-2006, 03:32 AM   #1
slincks
LQ Newbie
 
Registered: Jan 2006
Location: cagayan de oro city
Posts: 2
Blog Entries: 1

Rep: Reputation: 0
Help with PHP, Apache, and FC5


I am installing php using fedora core 5, I encounter this problem

(Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: cannot restore segment prot after reloc: Permission denied) after I after my command vi /usr/local/apache2/conf/httpd.conf......

please send me a solution regarding this problem.......please help me to find out how to solve this problem......

Sincerely yours.......

Linux Users

 
Old 07-21-2006, 03:36 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
How did you install apache, because on my fc5 box, httpd.conf is in /etc/httpd/conf ?
 
Old 07-21-2006, 08:54 AM   #3
chadl
Member
 
Registered: Sep 2005
Location: US
Distribution: Gentoo AMD64 Testing
Posts: 129

Rep: Reputation: 16
I googled your error message, and found the following site:
http://en.wikibooks.org/wiki/Install...arCRM_On_Linux

If you note the answer provided:
Quote:
If you get the following error: “ Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so : cannot restore segment prot after reloc: Permission Denied” Type (as root):

chcon –t shlib_t /usr/local/apache2/modules/libphp4.so
If that works, then it was a problem with SELinux preventing access from apache to libphp4.so.

Last edited by chadl; 07-21-2006 at 08:59 AM.
 
Old 07-21-2006, 03:22 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 07-21-2006, 04:29 PM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I modified the title to make it more descriptive of the help you are seeking. Please try and be a bit more specific with your titles in the future, it helps to attract members that are more likely to be able to help you with your problem.
 
Old 07-24-2006, 02:36 AM   #6
slincks
LQ Newbie
 
Registered: Jan 2006
Location: cagayan de oro city
Posts: 2

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Thanks Chadli

I try this command chcon –t shlib_t /usr/local/apache2/modules/libphp4.so but it seems it doesn't work...I try to start my /usr/local/apache2/bin/apachectl the error would still the same.....thanks for helping me........god bless
 
Old 07-24-2006, 07:00 AM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
slinks, exactly how are you trying to start it?
 
Old 10-14-2006, 01:58 PM   #8
deepwaters
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Rep: Reputation: 0
hi i am having trouble with my httpd (apache) i have read (redhat &fc5 bible)and did as it said in the book i can get the var/www/html/* to work but not public_html i uncommented UserDir "public_html"
and made all the file to home/user name 777 to public_html and i still get Forbidden
You don't have permission to access /~celnix/index.html on this server
where am i going wrong? i got it to work on windows 2003 webserver but -hell if i can get it to work on linux fc5 or redhat 4.3
 
Old 10-15-2006, 05:02 PM   #9
deepwaters
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Rep: Reputation: 0
had a few goes and changed a few things but still no go.

<Directory public_html>
Order Allow,Deny
Allow from all
</Directory>

<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
UserDir "enable all celnix"

#
# To enable requests to /~user/ to serve the user's public_html
# directory, use this directive instead of "UserDir disable":
#
UserDir "public_html"
am i going at it the wrong way or is there more to this permission thing?
 
Old 04-10-2007, 03:26 PM   #10
gulli
LQ Newbie
 
Registered: Apr 2007
Posts: 1

Rep: Reputation: 0
system-config-securitylevel

SELLinux

modificar politicas sellinux

Servicio httpd

habilitar todos




Quote:
Originally Posted by slincks
I try this command chcon –t shlib_t /usr/local/apache2/modules/libphp4.so but it seems it doesn't work...I try to start my /usr/local/apache2/bin/apachectl the error would still the same.....thanks for helping me........god bless
 
Old 05-21-2010, 10:49 PM   #11
gkiran.ch
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Rep: Reputation: 0
Cool

Not sure if my solution will be helpful to your issue however it may useful to some in future.

I had the same issue while installing PHP and i had to disable selinux temporarily.

#setenforce 0

then run the command # make would work.

Thanks
Kiran
 
  


Reply

Tags
error, installation, syntax



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 Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration