Well,
I am new to this whole PHP thing and I have been having anxiety attacks over the stupid installation and configuration. I am trying to setup a local apache 1.3.x server with PHP support on a Windows 2000 machine.
Anyways I just can seem to get this PHP crap to work. I think I have installed the module correctly but it just doesn’t work. I have the php4ts.dll and the php4apache.dll module files in “C:\Program Files\Apache Group\Apache\modules\PHP\” folder and I think I have added the necessary commands to my httpd.conf file to point to the files.
Lines added to httpd.conf file
LoadModule php4_module modules/PHP/php4apache.dll
AddModule mod_php4.c
AddType application/x-hpptd-php .php
Now when I start up apache it says “Apache/1.3.29 <Win32> PHP/4.3.6 Running…”
From what I can gather the PHP module loaded and operating but when I test it by opening up my browser (IE6) and typing “http://127.0.0.1/test.php” in the address bar it immediately pops up a download dialog box rather then displaying the page.
Note test.php contents are as follows:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
Anyways, I am sure I am missing something… hell I don’t even know what the hell the php.ini file is for? And I don’t know what to do with it or where to put it. In the TERRIBLE installation instructions on the PHP web site and bundled with the distribution it says to either put it in root apache folder “C:\Program Files\Apache Group\Apache\” or in “C:\WINNT\system32\” folder. !NOTE! I would prefer that all PHP related content be contained in the Apache folder and its sub-folders.
Can you please help me and also explain what the files do? AKA php.ini, php4apache.dll ,and php4ts.dll.
Thanks,
Slice