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 03-17-2007, 02:42 AM   #1
mhmo
Member
 
Registered: Dec 2003
Posts: 34

Rep: Reputation: 15
problem in stating httpd service!!


Dear all

I am trying to start httpd using the command "service httpd start". but the following error appears:

Starting httpd: Syntax error on line 147 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/libexec/libphp5.so into server: /etc/httpd/libexec/libphp5.so: cannot open shared object file: No such file or directory

I am using CentOS..

What could be the problem? please I am waitting for the solution.

Best Regards
 
Old 03-17-2007, 06:19 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Do you have the apache php5 module installed?
 
Old 03-17-2007, 07:52 AM   #3
mhmo
Member
 
Registered: Dec 2003
Posts: 34

Original Poster
Rep: Reputation: 15
I dont know.. How to check?... and if not, How to install it?

thanks
 
Old 03-17-2007, 03:36 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Code:
#rpm -qa | grep -i php
Post back the results.
 
Old 03-18-2007, 01:08 AM   #5
mhmo
Member
 
Registered: Dec 2003
Posts: 34

Original Poster
Rep: Reputation: 15
This is the result:

[root@testfax /]# rpm -qa | grep -i php
php-pear-4.3.9-3.9
php-4.3.9-3.9
php-ldap-4.3.9-3.9
php-mysql-4.3.9-3.9

But, I want php 5 and I already installed it. Why it is showin me php 4?!!!

Thanks
 
Old 03-18-2007, 03:22 AM   #6
digen
Member
 
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107

Rep: Reputation: 15
Could you locate the file libphp5.so if php5 has already been installed as you mentioned ?

Quote:
[digen@redux ~]$locate libphp5.so
You may have to run 'updatedb' in case the locate database has not been updated.

Quote:
[digen@redux ~]$ updatedb &
Also how did you install php5 ? Was it installed using source code ?
 
Old 03-18-2007, 05:34 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
But, I want php 5 and I already installed it. Why it is showin me php 4?!!!
How did you install php5?
 
Old 03-19-2007, 01:26 AM   #8
mhmo
Member
 
Registered: Dec 2003
Posts: 34

Original Poster
Rep: Reputation: 15
I installed php5 using "make" and "make install" ... And I did not find libphp5.so by using "locate libphp5.so"

What could be the problem???!!!

Thanks
 
Old 03-19-2007, 01:31 AM   #9
mhmo
Member
 
Registered: Dec 2003
Posts: 34

Original Poster
Rep: Reputation: 15
When I use the following script:

./configure \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-mysql \
--prefix=/usr/local/apache/php \
--with-config-file-path=/usr/local/apache/php \
--enable-force-cgi-redirect \
--disable-cgi \
--with-zlib \
--with-gettext \
--with-gdbm

I face the following problem:

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

This is the whole script and result:

[root@testfax php-5.2.0]# ./configure \
[1]- Done updatedb
> --with-apxs2=/usr/local/apache/bin/apxs \
> --with-mysql \
> --prefix=/usr/local/apache/php \
> --with-config-file-path=/usr/local/apache/php \
> --enable-force-cgi-redirect \
> --disable-cgi \
> --with-zlib \
> --with-gettext \
> --with-gdbm
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking whether ln -s works... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... no
configure: warning: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for bison... bison -y
checking for bison version... 1.875 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for flex version... 2.5.4 (ok)
checking whether to force non-PIC code in shared modules... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/local/apache/bin/apxs follows:
./configure: line 6365: /usr/local/apache/bin/apxs: No such file or directory
configure: error: Aborting
 
Old 03-19-2007, 01:32 AM   #10
mhmo
Member
 
Registered: Dec 2003
Posts: 34

Original Poster
Rep: Reputation: 15
I built Apache using the following config:

./configure --prefix=/usr/local/apache \
--enable-so \
--enable-cgi \
--enable-info \
--enable-rewrite \
--enable-speling \
--enable-usertrack \
--enable-deflate \
--enable-ssl \
--enable-mime-magic


Also perl is installed.

And when I use locate apxs, I find some locations:

[root@testfax php-5.2.0]# locate apxs
/root/httpd-2.2.0/support/apxs
/root/httpd-2.2.0/support/apxs.in
/root/httpd-2.2.0/docs/manual/programs/apxs.html
/root/httpd-2.2.0/docs/manual/programs/apxs.html.ko.euc-kr
/root/httpd-2.2.0/docs/manual/programs/apxs.html.en
/root/httpd-2.2.0/docs/man/apxs.8
/var/www/manual/programs/apxs.html
/var/www/manual/programs/apxs.html.ko.euc-kr
/var/www/manual/programs/apxs.html.en

Does it mean that it is installed?

Else, how to solve the problem???

thanks

Last edited by mhmo; 03-19-2007 at 01:34 AM.
 
Old 03-23-2007, 11:18 PM   #11
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Rep: Reputation: 17
You have to install perl and few other things to run the script to install the modules of php5
install perl, and xml parser and other stuff related with intalling php5.
 
  


Reply



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
problem in starting httpd service!! mhmo Linux - Server 1 03-17-2007 07:01 AM
Service httpd nnadithya Linux - Server 5 12-16-2006 09:08 PM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
httpd as a service joshf Linux - Software 5 07-10-2003 07:54 AM
Using HTTPD Service skopje909 Linux - General 1 11-15-2001 03:32 PM

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

All times are GMT -5. The time now is 07:14 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
Open Source Consulting | Domain Registration