500 Error on index.php file. All other php files are working well.

Asked by Stas Danishevsky


I'm newbie in Ubuntu. I've successfully installed LAMP and created some virtual hosts. Everything is working fine except index.php files. When I try access them, browser returns 500 Error, regardless of their content. All other PHP files are working fine, index.html files can be opened without any errors. Please, help me to resolve this problem. I guess something wrong with server configuration, but I didn't find what exactly. :(


Question information

English Edit question
Ubuntu apache2 Edit question
No assignee Edit question
Solved by:
Stas Danishevsky
Last query:
Last reply:
Revision history for this message
Chris Johnston (cjohnston) said :

Try putting:

DirectoryIndex index.php

in your vhost

Revision history for this message
Stas Danishevsky (s-danishevsky) said :

The problem was with CHMOD value of my virtual host directory. I've changed permissions to 755 and it began to work. Sorry for bothering you with such stupid questions.