Access Forbidden on Apache

Discussion in 'Site & Server Administration' started by atziazas, May 27, 2007.

  1. #1
    Hello everybody.

    I looked EVERYWHERE to find a way to make this work. Here's the background of the problem.

    IMPORTANT FACT: I am using dyndns in order to have the "free" domain name instead of giving users my ip address. I running the server on Windows XP SP2.

    I am running a server on my computer (no routers no nothing just plain plugged on the wall internet). This server runs the package "Web-Developer Server Suite" which is a pre-setup Apache 2.2, MySQL 5 and various other apps like Joomla, phpBB2 etc. The webserver is running fine. If you go to the website http://globalunion.selfip.com/ you can use the website perfectly. PHP is running (even though it doesn't show the error messages but that's another problem) fine. I pointed my browser to http://globalunion.selfip.com/phpbb2/ and it worked. I went in and plugged in all the necessary information and the forum was installed correctly. phpMyAdmin shows all the tables and everything is fine. When you point the browser to http://globalunion.selfip.com/phpbb2/ from the computer that phpBB2, PHP and Apache are installed, the forum works PERFECTLY! If you do that from a different computer, then the user gets the following error:

    "Forbidden

    You don't have permission to access /phpbb2 on this server.
    Apache/2.2.3 (Win32) mod_ssl/2.2.3 OpenSSL/0.9.8d PHP/5.2.0 mod_perl/2.0.3-dev Perl/v5.8.8 Server at globalunion.selfip.com Port 80"

    I have tried a million things like changing my "hosts" file etc. I have no clue what the problem could be. I am done looking and I want to assume that it's a phpBB2 or Apache problem.

    In Apache I have this:

    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>

    <Directory "/www/webroot">
    Options Indexes FollowSymLinks
    Allow from all
    </Directory>

    <Directory "/www/phpbb2">
    Allow from all
    </Directory>

    It was there by default from the pre-setup set of stuff I got with the "Web-Developer Suite". I played around with those settings but nothing!

    One thing to note is that when I right click on the phpBB2 folder and click properties, it is set up as read-only and it won't change even if I change it and click apply. It goes back to read-only. But if that was the problem, wouldn't it not work locally? Because if I can't change it locally to be non-read-only then the server shouldn't be able either since it's running locally.

    My Apache log says the following:

    [Sat May 26 19:16:00 2007] [error] [client 74.67.187.106] client denied by server configuration: C:/www/phpbb2/

    HELP!!!
     
    atziazas, May 27, 2007 IP
  2. gibex

    gibex Active Member

    Messages:
    1,060
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    95
    #2
    can you paste DirectoryIndex value from your httpd.conf?
    also check permission to be at least 711 for /phpbb2/
     
    gibex, May 28, 2007 IP
  3. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Check the permission. It may be, I guess x00
     
    inworx, May 28, 2007 IP
  4. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #4
    if the world needs access to your computer and you as admin work on your computer-config, then one possibility is that all files you work on have admin ownership - to make world readable/accessible you need to make sure you change your permissions accordingly after working on your files as admin

    that would be a linux situation with same problems, your situation might be very similar
     
    hans, May 28, 2007 IP
  5. atziazas

    atziazas Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Guys I am on a Windows machine.
     
    atziazas, May 29, 2007 IP