Discussion:
[PHP-INSTALL] unable to start apache 2.2.13 with php5.3.0
j***@ckr.com
2009-09-09 22:43:16 UTC
Permalink
Problem: Can not start Apache web server with php.



Cannot load libphp5.so into server

Relocation Error file: libphp5.so:

symbol sapi_module



Environment:

php 5.3.0

Apache 2.2.13

Solaris 9 122300-42



Installer: Administrator with no or little apache config experience.



Actual Error:

httpd: Syntax error on line 56 of /usr/local/apache2/conf/httpd.conf:


Cannot load /usr/local/apache2/modules/libphp5.so into server:

ld.so.1: httpd: fatal: relocation error:

file /usr/local/apache2/modules/libphp5.so:

symbol sapi_module:

referenced symbol not found



Research: a couple of days of google with try this try that.

Looked at php.net archives, etc...



Build Method(s):

1. Apache build

./configure --enable-so --enable-rewrite=shared

make

make install

# check install. Start up apache and view through a
browser.

# Works just fine.



2. php build (from php source dir)

./configure --with-apxs2=/usr/local/apache2/bin/apxs


--with-config-file-path=/usr/local/apache2/php

--prefix=/usr/local/apache2/php



# also tried a --disable-all which didn't work either.



httpd.conf moded entries:



LoadModule rewrite_module modules/mod_rewrite.so

LoadModule php5_module modules/libphp5.so



# with another attempt with

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps



Any statement, direction and / or guidance is highly appreciated.
Thank You



John Doppert






--------------------------
"This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to which they are addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error, please contact the sender and delete the material from your computer. Please note that any view or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of CKE Restaurants, Inc. ("CKE") and/or its subsidiaries. Finally, the recipient should check this e-mail and any attachments for the presence of viruses. CKE accepts no liability for any damage caused by any virus transmitted by this e-mail."
Loading...