jonmknight Posted August 13, 2011 Share Posted August 13, 2011 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 <html> <head><title>Hello World Program</title></head> <body> <?php echo “<p>Hello World!” ?> </body> </html> 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 Quote Link to comment https://forums.phpfreaks.com/topic/244708-php-apache-mysql-windows-xp-pro/ Share on other sites More sharing options...
Amit20 Posted September 17, 2011 Share Posted September 17, 2011 Well... check your httpd.conf file whether it is configured to read php file. Quote Link to comment https://forums.phpfreaks.com/topic/244708-php-apache-mysql-windows-xp-pro/#findComment-1270201 Share on other sites More sharing options...
gizmola Posted September 18, 2011 Share Posted September 18, 2011 Do you literally have those quote characters in your code? That will not work. Also that is not valid php. You need a semicolon to end the statement. echo " Hello World!"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/244708-php-apache-mysql-windows-xp-pro/#findComment-1270297 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.