httpd not running

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
mbanwi
Posts: 1
Joined: 2009/08/27 17:30:48

httpd not running

Post by mbanwi » 2009/09/30 08:33:04

hi,i installed a new centOS 5 server, and after the installation, everything seem to work well but for httpd not running. when i try to issue the restart command i get the following error:



[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]


please can any one help?

markkuk
Posts: 739
Joined: 2007/09/07 10:56:28
Location: Finland

Re: httpd not running

Post by markkuk » 2009/09/30 11:25:59

Did you install PHP from original CentOS RPM packages? Have you updated your system? What's the output from:
[code]rpm -qa 'php*'
rpm -V php
[/code]

kogula14
Posts: 1
Joined: 2009/10/04 14:13:53

Re: httpd not running

Post by kogula14 » 2009/10/04 14:24:19

Hi,

The same errror message as prevous user.

=======================================================================================================
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 16 of /etc/httpd/conf/httpd.conf: Cap5.so: cannot open shared object file: No such file or directory

[root@vps2385 /]# service httpd start
Starting httpd: httpd: Syntax error on line 16 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: cannot open shared object file: No such file or directory
=======================================================================================================

I tried use command as you advise:--

rpm -qa 'php*'
rpm -V php

Below is the result:-

=======================
[root@vps2385 /]# rpm -qa 'php*'
[root@vps2385 /]# rpm -V php
package php is not installed
=======================

Please help me.

yyagol
Posts: 1015
Joined: 2006/06/10 18:27:44
Location: 32 4′N 34 47′E
Contact:

httpd not running

Post by yyagol » 2009/10/05 06:50:09

well install php via yum

[code]yum install php[/code]

Post Reply