LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem in stating httpd service!! (https://www.linuxquestions.org/questions/linux-software-2/problem-in-stating-httpd-service-538221/)

mhmo 03-17-2007 02:42 AM

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

reddazz 03-17-2007 06:19 AM

Do you have the apache php5 module installed?

mhmo 03-17-2007 07:52 AM

I dont know.. How to check?... and if not, How to install it?

thanks

reddazz 03-17-2007 03:36 PM

Code:

#rpm -qa | grep -i php
Post back the results.

mhmo 03-18-2007 01:08 AM

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

digen 03-18-2007 03:22 AM

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 ?

reddazz 03-18-2007 05:34 AM

Quote:

But, I want php 5 and I already installed it. Why it is showin me php 4?!!!
How did you install php5?

mhmo 03-19-2007 01:26 AM

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

mhmo 03-19-2007 01:31 AM

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

mhmo 03-19-2007 01:32 AM

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

rlee923 03-23-2007 11:18 PM

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.


All times are GMT -5. The time now is 09:30 PM.