Page 1 of 1

Compiling PHP module for Apache2 on Windows (configuration?)

Posted: Thu Jan 15, 2004 5:40 am
by hawkeye
Hi,
is anybody here who can help me with compilation of PHP module for Apache2 on Windows?

I'm using PHP 4.3.4 sources (from http://www.php.net) and MS Visual C++ 6.0. Standard compilation (using php4ts.dsw workspace) works fine.

My problem is, that I need to add an IBM DB2 support (via Unified ODBC).
For Linux it's easy - "./configure --with-ibm-db2=IBMDB2DIRECTORY" and "make" does what I need.

How to configure sources for compilation on Windows?

Thanks a lot for your hint.

hawkeye
hiker@centrum.cz
hawkeye@pbox.cz

Posted: Thu Jan 15, 2004 12:43 pm
by infolock
is there a reason you need to compile php ? if not, why not just get the windows binary installation package on php.net's site and then just install the php as a module on apache that way?

a good place to start is http://www.onlygeeks.com/read/15

another page that should answer your compilation answer is here :

http://www.php.net/manual/en/install.wi ... ows.manual

apache 2

Posted: Thu Jan 15, 2004 12:56 pm
by ol4pr0
Well ,

get apache 2 and the latest stable versoin of php ( meself got 4.3.4 )

now you will need a php4apache2.dll

i got me one from easyphp ( by installing that first )
copied the sapi/ folder into my C:\PHP directory. sinds php 4.3.4 doesnt have one

after done all that

Copy php4ts.dll to the Windows\System or c:\winnt\system

add this to the http.conf
where the other loadmodule ends.


LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php


restart apache and you should be fine.
make sure you add c:/php/sapi/php4apache2<---- .dll and not php4apache.dll
[/quote]