Click to See Complete Forum and Search --> : WinXP, PHP4.3.4, Apache 1.3.29


michibk
03-19-2004, 07:21 AM
Hi,
Apache is running properly!
I added
LoadModule php_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application / x-httpd-php .php
in the httpd.conf.
I installed PHP 4.3.4 and copied the
php4ts.dll to c:/windows/system
(i tried it also with c:/windows/system32)
and i renamed php.ini-dist to php.ini and copied it to c:/windows. I configurated extension_dir= c:\php in php.ini. When I try to load a php page [<?php phpinfo(); >?] i get displayed a blank screen! Apache is running properly but he can´t interprete php. I did several changes and finally both php files (php.ini and php4ts.dll) are resident in c:/WINDOWS, C:/WINDOWS/System and C:/WINDOWS/System32 - but it doesn´t work. Am I supposed to have c:/WINNT or c:/WINNT40 as I have WinXP? I ony have C:/WINDOWS! Me cago en "jüindos" de la mierda que me hace sufrir tanto! ANY HELP? What I am doing wrong?
Thanks

Mike

planetsim
03-19-2004, 08:31 AM
Did you follow the the manual installation guide. Im certain that there was suppose to be a file copied into the System32 folder not sure which one though.

WaveyDavey
03-23-2004, 07:51 AM
If you are using Loadmodule, it looks like you are going down the SAPI route. I much prefer to use the CGI route on a low-load server for 1.3.2x. Try this in httpd.conf:

ScriptAlias /php/ "c:/php4/"
(tell is where php lives)

AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
(tell it what type of thing a .php file is)

Action application/x-httpd-php "/php/php.exe"
(tell it what to do with this type ie run php.exe in (scriptaliesed) php location /php/ which expands to C:/php4)

The take out the loadmodule stuff as you don;t need it for CGI.

HTH

David.