Server Fault is a question and answer site for system and network administrators. 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

Its the first time ever for me to setup a webserver myself. Also I am not familiar with linux, therefor excuse me if I am about to ask something stupid...

I have setup lighttpd and everything seems to work fine. I set it up in a Virtualbox and used the bridge network setup to access it from my main OS.

Everything works good so far and I can access it in my browser just fine.

The only problem is that index.php / index.html files are not found. If I rename the file to index1.php than I can access it and view it in my browser. As soon as I name it index.php again, it disappears from the virtual dir and when I try to access it directly I get a 404 error.

The same error happens with index.html

I did not modify the default lighttpd much expect some lines for php, phpmyadmin and a custom 404 error:

share|improve this question
What does /var/log/lighttpd/error.log say? – mgorven May 12 '12 at 17:05
Nothing special. At least from my point of view. I posted it @ – Andrej May 12 '12 at 17:09
Do you have any configuration in /etc/lighttpd/conf-enabled/? If so, please paste it. – mgorven May 12 '12 at 17:28

I assume that since you're using Lighttpd's directory listing, you don't want the index page selection. Try removing the index-file.names directive to see if this makes a difference (although I can't actually think of why it should).

share|improve this answer
Unfortunately this didnt change anything. As soon as I rename index1.php to index.php it disappears. – Andrej May 12 '12 at 17:23

Have you checked the permissions/owner of the index.php? If it's not readable by the owner/group that he web server's running as you'll get this problem.

share|improve this answer

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.