jdoppert Posted September 11, 2009 Share Posted September 11, 2009 Problem: 1. make test on php gives the following and hangs on last line: 2. apache does not start and gives error on sapi_module and Cannot load libphp5.so into server: Error from make test: TEST 5382/5418 [sapi/cgi/tests/001.phpt] FAIL version string [sapi/cgi/tests/001.phpt] TEST 5383/5418 [sapi/cgi/tests/002.phpt] Error from apache start up: 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 Environment: 1. Solaris 9 No previous php came with OS install. 2. php 5.3.0 downloaded from www.php.net 3. Apache 2.2.13 downloaded from www.apache.org Notes: 1. All installs invoked as root. 2. /usr/local/apache2/modules/libphp5.so: exists after php make install. 3. apache 2.2.13 installs and operates just fine. 4. cp php.ini-development /usr/local/apache2/php/php.ini apache Build notes: ./configure --enable-so --enable-rewrite=shared make make install php build notes: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/apache2/php --prefix=/usr/local/apache2/php httpd.conf moded entries: LoadModule rewrite_module modules/mod_rewrite.so # works LoadModule php5_module modules/libphp5.so # problem apache start up method: ./apachectl -k start or ./apachectl start Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.