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

Asked by Stas Danishevsky

Hello,

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. :(

Stas

Question information

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

Try putting:

DirectoryIndex index.php

in your vhost

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

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.