LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2009, 03:56 AM   #1
mbanwi
LQ Newbie
 
Registered: Jul 2009
Posts: 16

Rep: Reputation: 0
httpd not running


hi, goodday to every one
please i have finish installing a new centOS 5.2 server but http is not running. when i try to issue this command:
#service httpd restart

i get but the following message below:

[root@appdev ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 206 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/httpd/modules/libphp5.so into server: /usr/lib/httpd/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
[FAILED]



can anyone help me please?
 
Old 09-30-2009, 04:06 AM   #2
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
Seems you php so files is not present or PHP is not installed, try commenting this line to restart without php
 
Old 09-30-2009, 04:11 AM   #3
fatra2
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Fedora - RedHat - Mandrake - OpenSuse
Posts: 216

Rep: Reputation: 35
Hi there,

Is the file /usr/lib/httpd/modules/libphp5.so present on your machine??? If not, you might want to get it from the web, for your operating system. It could also be that you don't have php installed on your machine. Then, either you decide to live without php or you should install it.

If so, then you could try to comment this line out in the /etc/httpd/conf/httpd.conf file.

Cheers
 
Old 09-30-2009, 04:15 AM   #4
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Hi...

Quote:
Originally Posted by mbanwi View Post
cannot restore segment prot after reloc: Permission denied
[FAILED]
This is due to SE Linux setting being set to "enforcing"

To disable it temporarily use
/usr/sbin/setenforce 0

To permanently disable enforcement during a system startup
change "enforcing" to "disabled" in ''/etc/selinux/config'' and reboot.

Hope this helps...
 
Old 09-30-2009, 04:39 AM   #5
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by mbanwi View Post
hi, goodday to every one
please i have finish installing a new centOS 5.2 server but http is not running. when i try to issue this command:
#service httpd restart

i get but the following message below:

[root@appdev ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 206 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/httpd/modules/libphp5.so into server: /usr/lib/httpd/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
[FAILED]



can anyone help me please?
Install PHP -- it isn't installed. Like this:

Code:
# yum install php
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Several httpd are running vishnukumar Linux - Server 11 07-21-2009 08:16 AM
httpd not running ehsantux Linux - Server 7 09-06-2008 07:50 AM
Apache2 running but httpd is not PatUbu Linux - Newbie 2 08-01-2008 08:13 PM
httpd and vsftpd problems running maximyus Linux - Networking 3 01-24-2005 01:24 AM
9 httpd instances running!?? jlinden Linux - Newbie 2 09-17-2003 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:41 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration