apache - php - tomcat

hi everyone,

ive installed a apache,php on my computer,
i changed my root to another folder, but there’s this error appearing when i access my localhost


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
Fri Jul 18 22:52:34 2008
Apache/2.2.8 (Linux/SUSE) 

i didnt use linux for a long time, i forgot my httpd.conf before,
how can i see the subfolders and files inside my webroot without seeing this error or warning, my php is working just fine
please help me :slight_smile:

Specific to the question, I’m not sure, but to view denied folders:

  1. Open a terminal window

  2. Issue the command su

  3. When prompted, enter your root password

  4. Now that you are logged in as root, use the cd foldername
    command to enter a directory

  5. Once in a directory, you can view the contents by issuing the command dir
    or ls -l (those are Ls)

  6. To view the contents of a file: cat filename.txt

Note: replace foldername and filename with the respective name of your folders and files.

Hope that helps. :slight_smile:

thanks for replying mate,

i can’t view my files and folders and i type http://localhost/
on my browser
i changed my webroot by editing the default-server.conf file

before, i can view my subfolders and files when i visit my http://localhost but now i got that error

by these time i can look at my files by typing the exact file /folder where it is
e.g
(/mysite/somefolder/file.php)

i can access these by typing
http://localhost/somefolder/file.php

if it were my settings before,
i can access that file by just going to localhost then
click the somefolder then click file php
but now it is not that way :frowning: