localhost problem

Can anybody help me?

My browser firefox can’t read the localhost library. This is the srv/www/htdocs directory. I’d deleted some default necessary files like index.php, favicon.ico, etc. from here. I’d leave just the phpmyadmin folder and then copy my personal files to here, but I have an error in firefox:

Access forbidden!

You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
Wed May 13 14:34:24 2009
Apache/2.2.11 (Linux/SUSE)

I think the problem is the directory is read-protected. I know what is it, but I don’t know why. Because I have got a root legal (rwx) above the htdocs folder.

We have this (and the answer) already in phpmyadmin problem - openSUSE Forums.

Please do not make more threads about one and the same problem.

hcvv told you by default it will not index so you need to put a page in there and go to localhost/PageImade.html or make an index page as from your other post

<snip>I’d deleted some default necessary files like index.php<snip>
Why would it show a page not there.

Edit
Hehe hcvv beat me to it…

Ok! I understand your answer,but I don’t know where is the file. What is the name of it and what option must be change?

In the other thread I asked you what the URL was you try to display. I made a guess, but only YOU can tell the truth.

I do not go further with vague answers on a problem when you refuse to give the info I ask for.

When it is to difficult for you to copy/paste the URL from the address bar in your browser into a post (and I prefer it between CODE tags) then it is to difficult for me to work on your prblem.

OK! Step by step, listen:
1; I give this address to the url bar:http://localhost/
2;After the loading the browser show me the error, not the file list(folders, files, anything)

Why can’t read the htdocs folder? Thats what I want to know!

As I explained in the other thread that is because the so called “directory listing” is switched of by default. (And it will not serve index.html because you deleted it).This is because not everybody likes it that the complete contents of a directory is been offered to everybody (security). You switch it on in the Apache configuration. As you may, know that can be done on different places and on a directory by directory config or for the whole tree. It can be done inside a directory (.htaccess) or centraly. The central config is in /etc/apache2/httpd.conf. There you find at least something about ‘directory listing’ and "directoryIndex’.

When you run an Apache server you should at least try to read some of the documentation. When Apache is installed, you will find its doumentation at

http://localhost/manual/

IIRC