Instructions for Sun Solaris 2.6 with Netscape Enterprise Server 3.6 (at least it worked for me. This may work for other versions of Solaris/Netscape but never tried it)
Make sure you have the following packages installed (this is very important):
The following packages from www.sunfreeware.com:
flex-2_5_4a-sol26-sparc-local
gcc-2_95_2-sol26-sparc-local
gzip-1.2.4-sol26-sparc-local
perl-5_005_03-sol26-sparc-local
bison-1_25-sol26-sparc-local
make-3_76_1-sol26-sparc-local
m4-1_4-sol26-sparc-local
These packages as well:
autoconf-2.13
automake-1.4
mysql-3.23.24-beta (if you want mysql support)
tar-1.13 (GNU tar)
Recommended path: .:/usr/local/bin:/usr/sbin:/usr/bin:/usr/ccs/bin
PATH=.:/usr/local/bin:/usr/sbin:/usr/bin:/usr/ccs/bin
export PATH
- gunzip php-x.x.x.tar.gz (if you have a .gz dist, otherwise go to step 2)
- tar xvf php-x.x.x.tar
- cd ../php-x.x.x
for the following step, make sure /opt/netscape/suitespot/ is where your netscape server is installed. Otherwise, change to correct path
- ./configure --with-mysql=/usr/local/mysql --with-nsapi=/opt/netscape/suitespot/ --enable-track-vars --enable-libgcc
- make
- make install
bhager@invacare.com
18-Oct-2000 01:48
Sun Solaris 2.6 and Netscape Enterprise Server 3.6 instructions continued:
after finishing the above instructions, you need to read this readme file and do what it says (/php-xxx-version/sapi/nsapi/nsapi-readme.txt)
Configuration of your Netscape or iPlanet Web Server for PHP4
These instructions are targetted at Netscape Enterprise Web Server
and SUN/Netscape Alliance iPlanet Web Server. On other web servers
your milage may vary.
Firstly you may need to add some paths to the LD_LIBRARY_PATH
environment for netscape to find all the shared libs. This is
best done in the start script for your netscape server.
Windows users can probably skip this step. The start
script is located in:
<path-to-netscape-server>/https-servername/start
netscape config files are located in:
<path-to-netscape-server>/https-servername/config
add the following line to mime.types
type=magnus-internal/x-httpd-php exts=php
Add the following to obj.conf, shlib will vary depending on your OS, for unix it
will be something like "<path-to-netscape-server>/bin/libphp4.so".
#note place following two lines after mime types init!
Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="/php4/nsapiPHP4.dll"
Init fn=php4_init errorString="Failed to initialize PHP!"
<Object name="default">
.
.
.
.#NOTE this next line should happen after all 'ObjectType' and before all 'AddLog' lines
Service fn="php4_execute" type="magnus-internal/x-httpd-php"
.
.
</Object>
<Object name="x-httpd-php">
ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
Service fn=php4_execute
</Object>
Authentication configuration
PHP authentication cannot be used with any other authentication. ALL AUTHENTICATION IS
PASSED TO YOUR PHP SCRIPT. To configure PHP Authentication for the entire server, add
the following line:
<Object name="default">
AuthTrans fn=php4_auth_trans
.
.
.
.
</Object>
To use PHP Authentication on a single directory, add the following:
<Object ppath="d:\path\to\authenticated\dir*">
AuthTrans fn=php4_auth_trans
</Object>