500 Error on index.php file. All other php files are working well.
Asked by
Stas Danishevsky
on 2011-11-21
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:
- 2011-11-22
- Last query:
- 2011-11-22
- Last reply:
- 2011-11-22
Chris Johnston (cjohnston) said : | #1 |
Try putting:
DirectoryIndex index.php
in your vhost
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.
To post a message you must log in.