For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > January 2006 > Hi - Newbie Question. Trying to configure Apache to run PHP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Hi - Newbie Question. Trying to configure Apache to run PHP
domh_789

2005-12-15, 10:28 am

I recently bought the SAMS Teach Yourself PHP, apache and MySQL 2nd Ed. book.

It comes with:

PHP 5.0.2
MySQL 4.0.21
Apache 2.0.52

Running on Win XP home.

Following the instructions to the letter, I succesfully installed MySQL and Apache. Checked the apache service was running OK.

For the life of me I cannot get the PHP up and running.

The book states I should first alter the httpd.conf file to include:

LoadModule php5_module c:/php5/php5apache2.dll

AddType application/x-httpd-php .php .phtml . html

And rename and move php.ini-recommended to php.ini to c:\windows
And move php5ts.dll to c:\windows\system32

Restarted the apache service - no problem

But when I creat a test page 'phpinfo.php' and save in the htdocs directory I get the message 'HTTP 404 - File not found'

Help please! Has anyone else encountered this problem, I'm sure it's easily rectified, but being new to it all I'm struggling!

Thanks in advance,

Dom
pejvak

2006-01-03, 10:51 pm

http://phpnotepad.com/ he recorded 6 lessons about PHP for beginners, check this guy out
quote:
Originally posted by domh_789
I recently bought the SAMS Teach Yourself PHP, apache and MySQL 2nd Ed. book.

It comes with:

PHP 5.0.2
MySQL 4.0.21
Apache 2.0.52

Running on Win XP home.

Following the instructions to the letter, I succesfully installed MySQL and Apache. Checked the apache service was running OK.

For the life of me I cannot get the PHP up and running.

The book states I should first alter the httpd.conf file to include:

LoadModule php5_module c:/php5/php5apache2.dll

AddType application/x-httpd-php .php .phtml . html

And rename and move php.ini-recommended to php.ini to c:\windows
And move php5ts.dll to c:\windows\system32

Restarted the apache service - no problem

But when I creat a test page 'phpinfo.php' and save in the htdocs directory I get the message 'HTTP 404 - File not found'

Help please! Has anyone else encountered this problem, I'm sure it's easily rectified, but being new to it all I'm struggling!

Thanks in advance,

Dom

domh_789

2006-01-06, 1:52 pm

quote:
Originally posted by pejvak
http://phpnotepad.com/ he recorded 6 lessons about PHP for beginners, check this guy out


Thanks for the reply,

I've installed WAMP with no problems.

Thanks

dom
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com