Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I get the HTTP Error 500 (Internal Server Error) error with Chrome when trying to open a simple PHP file.

I have installed Apache and PHP correctly as instructed in this article. Including the PHP specific part of it.

I get this error when I try going to the URL http://localhost/~eduan/php_info.php, I made sure and this file has correct syntax and everything, here's it's contents:

<?php
php_info();
?>

It contains nothing else and nothing less.

I also have a test install of Statamic under http://localhost/~eduan/statamic, and that works and doesn't. It loads correctly, but all the styles and stuff of it is missing, meaning (from what I understand) that it couldn't load the theme which is done with PHP if I'm not mistaken.

That's all, any help is greatly appreciated!

share|improve this question
add comment

2 Answers

Check your most error log, it is probably located in /var/log/apache2/error.log or /var/log/httpd/error.log (or similar). It'll probably point you to the problem that @Eduan describes in the other answer.

It is good practice to always check the error logs first, there often is valuable information in them.

share|improve this answer
add comment

The real command is phpinfo() (without the underscore).

share|improve this answer
    
Oops. OK that fixes that. What about the Statamic part of it though? –  Greduan Apr 28 '13 at 20:22
    
I don't know what statamic is. A bare style is usually the result of a CSS stylesheet not loaded: 87% of times this is due to a misconfiguration in the web application (AKA statamic). In any case it is not PHP related. –  ntd Apr 28 '13 at 20:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.