New php programmer getting error 500

I have installed and configured php5.3,apache2.2 and MySQL. But i am not able to run my php files. My browser shows error 500. I am able to run test.php file but other php files dont run. Plz help!!

Theres a problem with your PHP file. Missing semi-colons or brackets will break your code.

I worte another code saved it as php file in htdocs directory…but the result was same.
Heres the code.

My First PHP Program <?php echo “I’m a lumberjack.”; ?>

and again the test.php file works present in the same directory but other php files dont work.

Your quote symbols are weird. They should be standard "

Try this for your test file:
[php]

<?PHP echo "This file does display correctly!"; die(); ?>

[/php]

The the four lines as your entire program. Save it on the server. browse to it and let us know if it displays…

Sponsor our Newsletter | Privacy Policy | Terms of Service