Hi, I am totally new to using apache/mysql/php and am trying to get everything set up by the Wrox book "Beginning PHP,Apache,MySQL Web Development". Everything seems ok except for a couple of spots and I think the problem is the version I'm using now verses the versions used in the book?
So in the book it says it's using Apache 2.0.47 and PHP 4.3.3
I verified Apache is running by going to
http://localhost/ and getting the welcome message. No problem so far.
Then it says I need to customize the installation by adding PHP to the equation. It instructs me to add the following lines to my httpd.conf file. (See Question #1)
AddType application/x-httpd-php .php3 .php
AddType application/x-httpd-php-source .phps
And then to add the PHP module to my httpd.conf program so that Apache can parse the PHP so added the following line: (See Question #2)
LoadModule php4_module c:/php/sapi/php4apache2.dll
I have PHP 5.2.1, Question #1: Do I have to change the code to reflect the newer PHP version? Because I tried to do this but it didn't seem to work? (Not sure if this is because of the second part of this question)
Question #2: Do I need to change the LoadModule code to reflect the newer version of PHP? because I could find the php5apache2.dll file but I could not find the sapi listed in the path. When I removed the sapi the Apache server would run but not recognize any php code?
If anyone could just tell me what I am supposed to do based on my version I would appreciate it. I bought the book and figured I'd follow it step by step lol and just my luck the versions changed.
Thank you.