Jump to content

Recommended Posts

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

   

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.