PHP4 module for Apache Win32 : COMPILATION
PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C,
Java and Perl with a couple of unique PHP-specific features thrown in. The goal of
the language is to allow web developers to write dynamically generated pages quickly.
My favorite features:
ODBC connectivity whith persistent connections on mod_php4, more speed and less startup
latency.
Yeah , great ! But I have to make it by my self. I have looked at
Win 32 build Info but I cannot build some odd files (*.l , *.y). Why to download CygWin (20 MB) to acomplish this simple task ?

What you do need:
(Read first the official Win32 Build Instructions )
bison, flex, untgz, unix2dos ;
Apache sources ;
PHP4 sources ;
win32build.zip ;
number.tar.gz ;
resolv.lib.gz ;
-
Put all tools into a directory, say <bin>
-
Put apache sources into a directory, say <apache>
-
Put PHP4 sources into a directory, say <php4>
-
Extract win32build.zip into a directory, say <build>
-
Replace the lib <build>\lib\resolv.lib with this new one from
resolv.lib.gz
-
Untgz number.tar.gz against <php4> directory
-
For each *.dsp file in <php4> and recursed do unix2dos translation
-
Start MS VC 6
-
Go to Menu Tools->Options->Directories tab and for each pane mentioned below add:
-
INCLUDE FILES:
-
<build>\include
-
<apache>\src\include
-
EXECUTABLE FILES
-
LIBRARY FILES
-
Create ApacheCore.lib
-
Load from <php4> php4ts.dsw
-
Read <bin>\readme.txt and apply it to php4ts.dsw (WORKSPACE)
-
Select ApachePHP4 project as current project. Select config: Win32 Release_TS_Inline
-
Rebuild All
-
Copy <php4>\sapi\apache\Release_TS_Inline\ApachePHP4.dll to
<server_root>\modules\mod_php4.dll
-
Follow Installation Info
