Go to file
Andrei Zmievski e5360259a4 We should define symlink functions only when HAVE_SYMLINK is defined.
Otherwise, they should be aliased as not available.
2000-06-13 18:07:19 +00:00
build Fix overlooked core->main change 2000-06-11 19:53:19 +00:00
ext We should define symlink functions only when HAVE_SYMLINK is defined. 2000-06-13 18:07:19 +00:00
main Avoid using E_CORE_* errorlevels in any place which is not in the global startup sequence 2000-06-12 20:22:17 +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 Due to creating the Makefiles later, generating libphp4.module failed, 2000-06-13 18:02:28 +00:00
scripts Decent configure speedup. Makefiles are now generated only for the 1999-09-29 15:17:02 +00:00
tests PHP code to test sscanf() 2000-06-06 19:15:26 +00:00
TSRM Add -qthreaded for AIX cc V5 2000-06-10 08:26:59 +00:00
win32 Fix Win32 build 2000-06-04 22:00:17 +00:00
Zend Add optional support for C0x inline semantics. 2000-06-13 17:58:33 +00:00
acconfig.h.in Wipe out acconfig.h.in and rewrite some checks to use PHP_ARG_ENABLE. 2000-06-08 06:14:58 +00:00
acinclude.m4 Separate creating config_vars.mk and generating Makefiles. 2000-06-11 10:38:37 +00:00
apidoc-zend.txt - Move more stuff to ALLOC_ZVAL(). We need to add those FREE_ZVAL()'s now. 1999-12-24 17:39:27 +00:00
apidoc.txt I think that is the preferred way as of now 1999-05-28 18:51:51 +00:00
build-defs.h.in oracle.c expects _ORACLE_ 2000-05-08 10:04:12 +00:00
buildconf Integration of -ng changes. Changes: 1999-12-30 02:59:53 +00:00
ChangeLog ChangeLog update 2000-06-13 02:15:03 +00:00
CODING_STANDARDS PHP 4.0 1999-04-07 21:05:13 +00:00
config.guess Upgrade to Libtool 1.3.5. 2000-06-11 10:26:24 +00:00
config.sub Upgrade to Libtool 1.3.5. 2000-06-11 10:26:24 +00:00
configure.in Fix spelling 2000-06-13 07:49:17 +00:00
CREDITS * Turn on debug by default 1999-07-17 16:43:11 +00:00
cvsclean "User interface" for removing all files which are ignored by cvs 2000-03-06 16:02:01 +00:00
dynlib.m4 Remove directory test when creating directories using mkdir -p 2000-05-12 07:37:42 +00:00
footer PHP 4.0 1999-04-07 21:05:13 +00:00
FUNCTION_LIST.txt PHP 4.0 1999-04-07 21:05:13 +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 fix license version number in sample header 2000-05-28 19:17:59 +00:00
INSTALL Add interesting email which explains why disabling -fPIC works on Linux 2000-05-23 17:23:21 +00:00
LICENSE Sigh, that should be the last one :I 2000-05-22 16:56:22 +00:00
ltconfig Upgrade to Libtool 1.3.5. 2000-06-11 10:26:24 +00:00
ltmain.sh Upgrade to Libtool 1.3.5. 2000-06-11 10:26:24 +00:00
MAINTAINERS Add maintainer info for dbase extension. 2000-05-28 19:30:23 +00:00
makedist Add check for Bison. A recent version is required when in ZTS mode. 2000-05-23 20:32:27 +00:00
Makefile.in Change directory name from core to main. 2000-06-11 18:51:17 +00:00
makerpm Small fix: Description still referred to package as PHP3. 2000-05-01 04:49:49 +00:00
MODULES_STATUS - Added credits. 2000-05-25 11:01:31 +00:00
NEWS Damn. 2000-06-13 14:49:25 +00:00
php4.dsp Fix Windows .dsp's 2000-06-11 19:23:21 +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 temporary icon for RPMs until Colin gets back and can make us a spiffy new one 1999-07-24 19:00:06 +00:00
php4.spec.in added workaround for Solaris PIC weirdness. 1999-07-24 19:02:38 +00:00
php4dll.dsp Fix Windows .dsp's 2000-06-11 19:23:21 +00:00
php4dllts.dsp Fix Windows .dsp's 2000-06-11 19:23:21 +00:00
php4ext.dsw * Add a new workspace for dynamic PHP extensions. 1999-06-04 10:45:54 +00:00
php4ts.dsp Fix Windows .dsp's 2000-06-11 19:23:21 +00:00
php4ts.dsw Please maintain consistency in these names... :) 2000-05-14 16:09:32 +00:00
php.ini-dist - Added disable_functions php.ini support 2000-05-29 17:22:35 +00:00
php.ini-optimized - Added disable_functions php.ini support 2000-05-29 17:22:35 +00:00
php.ini-recommended - Added disable_functions php.ini support 2000-05-29 17:22:35 +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.EXT_SKEL - Fix incorrect code creation when an optional argument is resource type. 2000-06-10 09:45:27 +00:00
README.QNX PHP 4.0 1999-04-07 21:05:13 +00:00
README.SELF-CONTAINED-EXTENSIONS - Add some documentation for ext_skel and a note about it's existence. 2000-06-10 08:59:43 +00:00
README.Zeus Updated help section with some more compile problems & solutions 2000-05-30 17:34:34 +00:00
snapshot Integration of -ng changes. Changes: 1999-12-30 02:59:53 +00:00
stamp-h.in # Fix ColorResolve bogosity 1999-11-21 04:07:56 +00:00
strtok_r.c Get Win32 to compile again 1999-11-27 00:48:50 +00:00
stub.c * archive-based convenience libraries completely replaced 1999-10-04 15:18:26 +00:00
TODO array_uniq() has been implemented by someone else. 2000-06-13 17:47:05 +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 the compile fail at Zend/zend-scanner-cc.cc
                             or Zend/zend-parser.c ?

These source files are auto-generated from the corresponding .y files.
The default distribution of PHP contains pre-generated versions of these
files that have caused problems for some people. The simplest solution is
to delete the files. They will then be rebuilt correctly. You must have the
following GNU tools to do this:

       bison  1.28 or later
       flex  2.5.4 or later

*) Why does my PHP library fail to load?

After configuring Zeus, if you get a '502 Bad Gateway' 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