eqnastun Posted May 21, 2007 Share Posted May 21, 2007 I am trying to get Apache 1.3.37 and PHP 4.1.1 to work together. I have had no problems with current versions installing and working fine. I need to get these versions working to test some old php sites. IIS 6 seems to give me nothing but problems with 4.1.1. Here is what I have done. On test machine running XP PRO SP2 Installed Apache 1.3.37 to c:\apache Unzipped PHP4.1.1 to c:\php4 Added c:\php4 to PATH Edited php.ini doc_root =c:\apache\htdocs extension_dir = c:\php4\extensions Edited httpd.conf LoadModule php4_module c:/php4/sapi/php4apache.dll (in loadmodules area) AddType application/x-httpd-php .php (in add types area) Stopped and restarted the service. Rebooted. Nothing seems to get my testpage with <?php phpinfo();?> to load. Apache is showing up fine when I go to http://localhost. But when I try http://localhost/phpinfo.php insted of the page loading it asks me to download the file. I dont know what I am doing wrong but it seems as if the phpapache module is not loading. Any Ideas? Quote Link to comment Share on other sites More sharing options...
eqnastun Posted May 21, 2007 Author Share Posted May 21, 2007 Finally I got it working. I guess I need to add this line that is not listed in 90% of the tutorials FOR 1.3.x YOU MUST ADD THIS LINE. AddModule mod_php4.c Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.