Configuring Apache 2 and PHP 4 for Windows Support Product Page
This topic was archived
Installation Problem
Asked 27 Mar 2004 14:48:33
1
has this question
27 Mar 2004 14:48:33 Ken Renwick posted:
I've followed your instructions but am confused about a couple of items:The latest release of PHP is 4.3.5. I assume that there is no change to the instructions for this version?
When amending php.ini should the file paths be in inverted commas or not.
The instructions show
doc_root = C:\Program Files\Apache Group\Apache2\htdocs and
session.save_path = "C:\tmp"
Apache seems to be working OK (I can see a test page at localhost:8080) but when I stop it and then add
LoadModule php4_module “C:/php/sapi/php4apache2.dll”
AddType application/x-httpd-php .php Save file
to httpd.conf it refuses to restart.
If I remove those lines it starts quite happily but won't display the phpinfo.php page.
I'm obviously doing something wrong. Could you please help
Thanks in advance
Ken Renwick
Replies
Replied 28 Mar 2004 02:39:32
28 Mar 2004 02:39:32 Paul Taylor replied:
I think I've gpt a couple of things confused and may need to edit my instructions.
1. I've checked PHP4.3.5 and it does indeed work the way I said.
2. File paths in php.ini - it doesn't seem to matter if they are in double-quotes or not, but I recommend putting them in double-quotes, and am amending my tutorial accordingly.
3. The Apache httpd.conf is different. All file paths MUST be in double-quotes from Windows systems, and have forward slashes instead of back slashes.
4. The code you need to add is:
LoadModule php4_module “C:/php/sapi/php4apache2.dll”
AddType application/x-httpd-php .php
The words "Save file" wsere my instructions on what to do next. Again, I need to correct the tutorial. Sorry.
Paul
1. I've checked PHP4.3.5 and it does indeed work the way I said.
2. File paths in php.ini - it doesn't seem to matter if they are in double-quotes or not, but I recommend putting them in double-quotes, and am amending my tutorial accordingly.
3. The Apache httpd.conf is different. All file paths MUST be in double-quotes from Windows systems, and have forward slashes instead of back slashes.
4. The code you need to add is:
LoadModule php4_module “C:/php/sapi/php4apache2.dll”
AddType application/x-httpd-php .php
The words "Save file" wsere my instructions on what to do next. Again, I need to correct the tutorial. Sorry.
Paul
Replied 28 Mar 2004 03:38:44
28 Mar 2004 03:38:44 Paul Taylor replied:
I've corrected all my typos. The worst error was the line beginning AddType. please notice my correction to this.
I have also uploaded a PDF version for you to download.
I have also uploaded a PDF version for you to download.
Replied 28 Mar 2004 13:37:40
28 Mar 2004 13:37:40 Ken Renwick replied:
That seems to have done the trick.
Thanks
Ken
Thanks
Ken