I'm trying to configure and use the PHP 5.2.4 that is delivered with 
SXCE 77 (/usr/php5) with Apache as delivered (/usr/Apache).

Apache runs fine locally but when I try to add in libphp5.so, I get an 
unresolved symbol for apr_pool_cleanup_null.  Am I missing a dependency 
or have I otherwise misconfigured things?

Below is script output showing my setup after minimizing the changes 
I've made from the distributed config files.  Besides setting up 
httpd.conf, I copied /usr/php5/5.2.4/lib/libphp5-5.2.4.so over to 
/usr/apache/libexec/libphp5.so.

Note too: it looks to me that the build options for php have the 
configuration file path set to the build environment, not the running 
system.  I don't think I get that far to even be looking for the php.ini 
file, but I think that'll be a problem too (which I can workaround with 
dummy directories and symlinks if need be).

I'm very happy to see a more complete web stack coming with SXCE-- now I 
just need to get it to work :).

Eric

===========

Script started on Tue Dec 11 11:25:13 2007
$ /usr/php5/5.2.4/bin/php --ini 
Configuration File (php.ini) Path: 
/builds2/sfwnv-gate/proto/root_i386/etc/php5/5.2.4
Loaded Configuration File:         (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)
$ exit
script done on Tue Dec 11 11:25:36 2007


============

Script started on Tue Dec 11 11:47:14 2007
# /usr/apache/bin/httpd -V
Server version: Apache/1.3.39 (Unix)
Server built:   Oct 30 2007 00:23:49
Server's Module Magic Number: 19990320:18
Server compiled with....
 -D EAPI
 -D HAVE_MMAP
 -D USE_MMAP_SCOREBOARD
 -D USE_MMAP_FILES
 -D NO_LINGCLOSE
 -D HAVE_FCNTL_SERIALIZED_ACCEPT
 -D HAVE_SYSVSEM_SERIALIZED_ACCEPT
 -D HAVE_PTHREAD_SERIALIZED_ACCEPT
 -D DYNAMIC_MODULE_LIMIT=64
 -D HARD_SERVER_LIMIT=2048
 -D HTTPD_ROOT="/usr/apache"
 -D SUEXEC_BIN="/usr/apache/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache/httpd.pid"
 -D DEFAULT_SCOREBOARD="/var/run/apache/httpd.scoreboard"
 -D DEFAULT_LOCKFILE="/var/run/apache/httpd.lock"
 -D DEFAULT_ERRORLOG="/var/apache/logs/error_log"
 -D TYPES_CONFIG_FILE="/etc/apache/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache/httpd.conf"
 -D ACCESS_CONFIG_FILE="/etc/apache/access.conf"
 -D RESOURCE_CONFIG_FILE="/etc/apache/srm.conf"
# 
# diff -c /etc/apache/httpd.conf /etc/apache/httpd.conf-example
*** /etc/apache/httpd.conf    Tue Dec 11 11:41:06 2007
--- /etc/apache/httpd.conf-example    Tue Oct 30 00:25:11 2007
***************
*** 252,260 ****
  LoadModule ssl_module         libexec/libssl.so
  </IfDefine>
  LoadModule perl_module        libexec/libperl.so
- LoadModule php5_module        libexec/libphp5.so
  
- 
  #  Reconstruction of the complete module list from all available modules
  #  (static and shared ones) to achieve correct module execution order.
  #  [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
--- 252,258 ----
***************
*** 302,308 ****
  AddModule mod_ssl.c
  </IfDefine>
  AddModule mod_perl.c
- AddModule mod_php5.c
  
  #
  # ExtendedStatus controls whether Apache will generate "full" status
--- 300,305 ----
***************
*** 367,373 ****
  # e-mailed.  This address appears on some server-generated pages, such
  # as error documents.
  #
! ServerAdmin [EMAIL PROTECTED]
  
  #
  # ServerName allows you to set a host name which is sent back to 
clients for
--- 364,370 ----
  # e-mailed.  This address appears on some server-generated pages, such
  # as error documents.
  #
! ServerAdmin [EMAIL PROTECTED]
  
  #
  # ServerName allows you to set a host name which is sent back to 
clients for
***************
*** 385,391 ****
  # machine always knows itself by this address. If you use Apache 
strictly for 
  # local testing and development, you may use 127.0.0.1 as the server 
name.
  #
! ServerName arusha
  
  #
  # DocumentRoot: The directory out of which you will serve your
--- 382,388 ----
  # machine always knows itself by this address. If you use Apache 
strictly for 
  # local testing and development, you may use 127.0.0.1 as the server 
name.
  #
! ServerName 127.0.0.1
  
  #
  # DocumentRoot: The directory out of which you will serve your
***************
*** 873,879 ****
      # make certain files to be certain types.
      #
      AddType application/x-tar .tgz
-     AddType application/x-httpd-php .php
  
      #
      # AddEncoding allows you to have certain browsers uncompress
--- 870,875 ----
# 
# /usr/apache/bin/httpd -t
Syntax error on line 255 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/libphp5.so into server: ld.so.1: httpd: 
fatal: relocation error: file /usr/apache/libexec/libphp5.so: symbol 
apr_pool_cleanup_null: referenced symbol not found
# exit

script done on Tue Dec 11 11:48:24 2007
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to