Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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: http://codepad.org/86ktIq5k

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 @ codepad.org/HdObrdHL –  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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.