PDA

View Full Version : Newbie Question about setting up PHP



yammi
January 4th, 2007, 01:04 PM
I've been trying to install PHP, Apache and mySQL on my computer for a while now but I can't seem to get it to work properly.

I can start Apache, and html pages work properly from localhost. The problem is with php pages. Whenever I start Apache, a dos window opens and I get the error:

httpd.exe: Syntax error on line 491 of c:/Program files....httpd.conf
Cannot load php5apache.dll into server: The specified module cannot be found

I did add these lines to httpd.conf:

AddType application/x-httpd-php .php
LoadModule php5_module "c:\php\php5apache.dll"
setEnv PHPRC c:\windows

and in the directory c:/php I can SEE the file php5apache.dll but Apache isn't registering it for some reason.

Any help would be greatly appreciated. Thanks

skrolikowski
January 4th, 2007, 01:56 PM
I tell this to everyone, because I had endless problems trying to get Apache to work.
Use Abyss (from Aprelium: http://www.aprelium.com/) instead.
Also, there are some awesome tutorials for setting up PHP, mySQL and phpMyAdmin here -> http://www.trustabyss.com/

skOOb
January 4th, 2007, 06:26 PM
here's what I got in my conf file.
LoadModule php5_module "C:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php/" You may have to add the php dir (C:\php) to PATH in your system environment variables.