Click to See Complete Forum and Search --> : PHP installation w/ Apache, problem...


nscherneck
01-05-2005, 02:54 AM
Im trying to install PHP 5.0 on Apache 1.3.3. Im using a book, "PHP and MySQL Web Development" by Luke Luke Welling and Laura Thomson, as a guide. Within the installation tutorial it says to move the PHP.exe and php5apache.dll files to the system directory, in this case its c:\winnt\system32. I did that. Next step is to setup the php.ini file in c:\winnt and modify it to point to the php directory and extensions directory. Piece of cake. It also says to modify Apache httpd.conf file. I think this is where im running into the problem. It says to verify that the following lines are within the httpd.conf file, and if not, add them:

LoadModule php5_module c:/php/php5apache.dll
AddModule mod_php5.c
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

The first line i added under the rest of the LoadModule lines, but i noticed that all the existing ones begin with a "#". What does this mean?

The second line was the same scenario: pretty easy to find where to add it, but not sure if i should start the line with the "#" character.

The third line i placed under this line:
AddType application/x-tar .tgz

The fourth line confused me. I found in the existing file that there were some lines that were similar to this one but began with "# Format". I added right below the line that reads:
# Format: Action handler-name /cgi-script/location
But i did not include the "# Format".

Has anyone been through this type of installation? Can somebody please offer some guidance. Ive done all the following and still cannot get the web server to run a php script!!!

planetsim
01-05-2005, 11:28 PM
Newbies forum FAQ + Bookmarked threads (http://phpbuilder.com/board/showthread.php?s=&threadid=10245251)
A Search of PHP5 Installation (http://phpbuilder.com/board/search.php?s=&action=showresults&searchid=728663&sortby=&sortorder=)

Seems a weird install though, why does it say to move the php.exe when i Install PHP on windows box Ive never had to touch the system32 directory unless i wanted to install an extension.

I hope the links help.