Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:


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

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

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

Your Answer


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.