LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   httpd not running (https://www.linuxquestions.org/questions/linux-newbie-8/httpd-not-running-758617/)

mbanwi 09-30-2009 02:56 AM

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?

PMP 09-30-2009 03:06 AM

Seems you php so files is not present or PHP is not installed, try commenting this line to restart without php

fatra2 09-30-2009 03:11 AM

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

vinaytp 09-30-2009 03:15 AM

Hi...

Quote:

Originally Posted by mbanwi (Post 3701516)
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...

lutusp 09-30-2009 03:39 AM

Quote:

Originally Posted by mbanwi (Post 3701516)
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


All times are GMT -5. The time now is 11:43 PM.