Re: [osol-discuss] PHP with Apache in build 77

2007-12-11 Thread Eric Hamilton
Here's the output of ldd /usr/apache/libexec/libphp5.so:

libz.so.1 => /usr/lib/libz.so.1
libexpat.so.0 => /usr/lib/libexpat.so.0
librt.so.1 => /lib/librt.so.1
libresolv.so.2 => /lib/libresolv.so.2
libm.so.2 => /lib/libm.so.2
libnsl.so.1 => /lib/libnsl.so.1
libsocket.so.1 => /lib/libsocket.so.1
libxml2.so.2 => /usr/lib/libxml2.so.2
libssl.so.0.9.8 => /usr/sfw/lib/libssl.so.0.9.8
libcrypto.so.0.9.8 => /usr/sfw/lib/libcrypto.so.0.9.8
libdl.so.1 => /lib/libdl.so.1
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libpthread.so.1 => /lib/libpthread.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
libssl_extra.so.0.9.8 => /usr/sfw/lib/libssl_extra.so.0.9.8
libcrypto_extra.so.0.9.8 => /usr/sfw/lib/libcrypto_extra.so.0.9.8

Thanks for your help.

Eric

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


[osol-discuss] PHP with Apache in build 77

2007-12-11 Thread Eric Hamilton
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.confTue Dec 11 11:41:06 2007
--- /etc/apache/httpd.conf-exampleTue Oct 30 00:25:11 2007
***
*** 252,260 
  LoadModule ssl_module libexec/libssl.so
  
  LoadModule perl_modulelibexec/libperl.so
- LoadModule php5_modulelibexec/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
  
  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
opensolaris-discuss@opensolaris.org