The PHP Interpreter
Go to file
2000-05-23 14:42:22 +00:00
build Cosmetic change 2000-05-18 11:41:41 +00:00
ext - English fix. 2000-05-23 14:42:22 +00:00
main - Support virtual unlink() 2000-05-23 14:36:27 +00:00
pear Fix regex 2000-05-06 01:41:14 +00:00
regex Remove trailing empty lines 2000-05-01 22:38:42 +00:00
sapi -i, -v, -h and -? execution pathes didn't flush the output buffer 2000-05-22 22:49:18 +00:00
scripts
tests - test script to test creation of flash files 2000-05-17 15:45:56 +00:00
TSRM Assign/restore vars appropiately 2000-05-05 12:15:36 +00:00
win32 adding project for swf 2000-05-22 21:58:29 +00:00
Zend - Remove ugly Ltd. 2000-05-22 16:55:56 +00:00
acconfig.h.in added new option "--enable-sigchild" (default is off) 2000-05-18 19:45:34 +00:00
acinclude.m4 Make the shared library suffix dynamic. Improve workaround for libtool's 2000-05-18 11:35:17 +00:00
apidoc-zend.txt
apidoc.txt
build-defs.h.in oracle.c expects _ORACLE_ 2000-05-08 10:04:12 +00:00
buildconf
calendar.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00
ChangeLog ChangeLog update 2000-05-23 01:09:13 +00:00
CODING_STANDARDS
config.guess
config.sub
configure.in bump version to 4.0.1-dev 2000-05-23 07:49:23 +00:00
CREDITS
crypt.mak
cvsclean "User interface" for removing all files which are ignored by cvs 2000-03-06 16:02:01 +00:00
dbase.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00
dbm.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00
dynlib.m4 Remove directory test when creating directories using mkdir -p 2000-05-12 07:37:42 +00:00
filepro.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00
footer
FUNCTION_LIST.txt
gd.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00
genfiles Generate missing files 2000-05-04 18:00:10 +00:00
genif.sh Revamp session's config.m4 and reenable support for mm. The shared memory 2000-03-26 02:47:00 +00:00
header another minor change to test CVS mails again 2000-05-07 18:35:41 +00:00
hyperwave.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00
imap4.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00
INSTALL Cosmetic changes 2000-05-15 14:40:20 +00:00
ldap.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00
LICENSE Sigh, that should be the last one :I 2000-05-22 16:56:22 +00:00
ltconfig Cleanup 2000-03-19 12:09:01 +00:00
ltmain.sh Upgrade to libtool 1.3.4 2000-03-11 12:33:10 +00:00
main.h Update the license with the new clause 6 2000-05-18 15:34:45 +00:00
MAINTAINERS Add SWF. 2000-05-22 20:50:10 +00:00
makeall.bat
makedist Avoid relying on non-standard tar `z' option. 2000-05-07 00:18:06 +00:00
Makefile.in Make the shared library suffix dynamic. Improve workaround for libtool's 2000-05-18 11:35:17 +00:00
makeparser.bat
makerpm Small fix: Description still referred to package as PHP3. 2000-05-01 04:49:49 +00:00
MODULES_STATUS # I think it's safe say so now... 2000-05-14 23:38:32 +00:00
msql1.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00
msql.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00
mtparser.bat
mysql.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00
NEWS bump version to 4.0.1-dev 2000-05-23 07:49:23 +00:00
php4.dsp Remove debug runtime libraries from Release builds 2000-03-27 00:18:59 +00:00
php4.dsw Several fixes, plus remove bindlib_w32 (it's more trouble than it's worth) 2000-03-31 19:46:35 +00:00
php4.gif
php4.spec.in
php4dll.dsp - Make non-threaded project build on Win32 2000-05-17 23:49:26 +00:00
php4dllts.dsp - Nuke dlist.[ch] from Win32 build. 2000-05-17 19:20:18 +00:00
php4ext.dsw
php4ts.dsp - Fix Win32 build in Release_TS* modes 2000-02-24 15:56:48 +00:00
php4ts.dsw Please maintain consistency in these names... :) 2000-05-14 16:09:32 +00:00
php_custom_build.mak
php.ini-dist Fix register_argc_argv entry. 2000-05-10 09:31:53 +00:00
php.ini-optimized Fix register_argc_argv entry. 2000-05-10 09:31:53 +00:00
php.ini-recommended Fix register_argc_argv entry. 2000-05-10 09:31:53 +00:00
README.BCMATH Moving README-BCMATH to README.BCMATH 2000-05-03 04:57:11 +00:00
README.CVS-RULES Add fact that every entry in NEWS has to have a name after it 2000-05-03 13:33:48 +00:00
README.QNX
README.SELF-CONTAINED-EXTENSIONS Use new syntax 2000-05-23 10:26:35 +00:00
README.Zeus Updated build advice for different platforms 2000-05-02 08:25:24 +00:00
snapshot
snmp.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00
stamp-h.in
strtok_r.c
stub.c
TODO @- Added array_rand() function. (Andrei) 2000-05-09 19:27:00 +00:00
zlib.mak s/COMPILE_DL/COMPILE_DL_EXTNAME/ 2000-05-23 09:39:25 +00:00

Using PHP4 with the Zeus Web Server
-----------------------------------

Zeus fully supports running PHP in combination with our webserver. A
significant improvement in PHP 4 is that you can now run PHP as an
ISAPI module, giving great performance benefits over traditional CGI
code.

Note that you will need to be running at least version 3.3.6 of the
webserver. If you are running an earlier version, please see our
website (http://www.zeus.com) for upgrade instructions.


To build the ISAPI version of PHP, start the configuration with:

./configure --with-zeus=/usr/local/zeus

Obviously, replace /usr/local/zeus with the location of where you have
installed Zeus on your machine. For PHP to build successfully, you
need to have 3.3.6 already installed, because the code relies on the
presence of header files provided with the latest version.

You may have to adjust the environment variable LDFLAGS and EXTRA_LIBS
in order to link in extra libraries. This depends on the platform on
which you are building and also on the compiler used (see below). A
standard GNU/Linux install with GCC should build fine with no changes.


Configuring the webserver
-------------------------

After running 'make' and 'make install', you will have a 'libphp4.so'
file. Copy this file into a directory reserved for ISAPI
binaries. Now, perform the following steps for each virtual server
that you wish to run PHP on:

1) On the Admin server, go to 'edit server->path mapping'
2) Add an alias to the directory with libphp4.so in it, mapped to
   /isapi/ (or a location of your choice). Make sure you set the alias
   type to ISAPI.
3) Click 'update'
4) Add a handler for file extension 'php' to be run by /isapi/libphp4.so
5) Click 'update', then go back to the previous page.
6) Click on the 'module configuration' button, ensure that ISAPI
   support is ticked.
7) Click on the ISAPI link. At the bottom of the page, click the
   checkbox for running ISAPI extensions 'out of process'.
8) Click 'update'. Then restart the virtual server. Done!


Troubleshooting
---------------

*) Why does my PHP library fail to load?

After configuring Zeus, if you get a '502 Bad Gatway' error when
accessing a PHP page, there are problems loading the PHP
library. Check the error log ($ZEUSHOME/web/log/errors) for errors.

Failing to load the PHP ISAPI module is likely to be due to unresolved
symbols in the module. A way to check for this is to visit our support
page at http://support.zeus.com/faq/entries/isapi_error.html and run
the program there on your libphp4.so. It will list any unresolved
symbols.

*) My libphp4.so has unresolved symbols. How do I fix this?

You must ensure that the PHP build process links in the appropriate
libraries that contain these symbols! The libraries required will
depend on the platform you are running PHP on.

You may need to set one or two environment variables before running
the 'configure' program to set up PHP; LDFLAGS and EXTRA_LIBS. Make
sure that you also export these variables to the build process.
(Type 'export LDFLAGS EXTRA_LIBS' in the shell to do this.)

Specific examples:

Solaris + gcc:
Ensure you run ./configure with the `--enable-libgcc' parameter. You
may need to set LDFLAGS to '-L/usr/local/egcs/lib' (path depends on
your gcc installation)



For more information and help with Zeus, please visit our website:
http://www.zeus.com