php / apache / mysql - windows xp pro

Hi,

Newbie here wanting to learn php.

So far I’ve:
a) running virtual machine (XP Pro / VMWare)
b) running mysql server
c) running apache web server
d) installed php and edited the apache config file to hook to the dll

Image 1: Apache & PHP - http://img585.imageshack.us/img585/4090/91637159.png
Image 2: Php info - http://img220.imageshack.us/img220/5760/40251271.png
Image 3: Php info - mysql http://img824.imageshack.us/img824/6955/99743657.png

I think it’s all good… but, whenever I try to access a php test file contents below I get an error 500… Have I configured it right, or is there any issue with the php?

Image 4: 500 on hello.php - http://img812.imageshack.us/img812/1321/19692022.png

Hello World Program <?php echo “

Hello World!” ?>

access.log: - 127.0.0.1 - - [13/Aug/2011:21:44:27 +0100] “GET /hello.php HTTP/1.1” 500 -

Any help would be awesome, thanks :slight_smile:

Go to the apache main server folder and look for conf. In the conf folder find httpd.conf (it may say it is a text file, it isn’t.) At the bottom, it should say something like this:

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir “C:/Program Files/PHP/”
LoadModule php5_module “php5apache2_2.dll”
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

change this according to your setup. (I am showing my settings currently. ;))

Thanks for your reply. I think you misunderstand my question. I’ve already done this, as proven by screenshot #1 (it says PHP/5.3.6 in the bottom bar) and screenshot #2

My question is - is the setup correct, given I can’t load a simple .php page?

edit; this is my config: http://img855.imageshack.us/img855/145/17963644.png

Sponsor our Newsletter | Privacy Policy | Terms of Service