Results 1 to 3 of 3

Thread: apache - php - tomcat

  1. #1

    Default 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
    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

  2. #2
    Join Date
    Jun 2008
    United States

    Default Re: apache - php - tomcat

    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.

    Help save lives with Folding@Home

  3. #3

    Default Re: apache - php - tomcat

    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

    i can access these by typing

    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts