Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: 403 Error

  1. #1
    New Coder
    Join Date
    Dec 2005
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    403 Error

    Been troubleshooting my WAMP on W2k Pro and Apache was working, but PHP was not. Found I had not defined the "doc_root" in the php.ini file, so changed it.

    Now I get 403 errors even on the root localhost.

    httpd.conf reads:
    Code:
    ServerRoot "D:/Program Files/Apache/Apache2"
    Listen 80
    ServerName localhost
    DirectoryIndex index.htm index.html index.html.var index.shtml index.php index.phml index.cfm index.cfml
    DocumentRoot "D:/Program Files/Apache/Apache2/htdocs"
    <Directory>
      Options FollowSymLinks
      AllowOverride None
    </Directory>
    UserDir "E:/Nyle's/Business Projects/Projects (External)"
    # Config for PHP
    LoadModule php5_module "D:/Program Files/PHP/php5apache2.dll"
    AddType application/x-httpd-php .php
    PHPIniDir "D:/Program Files/PHP"
    Action application/x-httpd-php "/php/php-cgi.exe"
    ScriptAlias /php/ "D:/Program Files/PHP/"
    AddHandler php-script .php .phml
    AddHandler php .php .phml
    <Directory "D:/Program Files/PHP">
      Options
      Allow from all
      Order allow,deny
      AllowOverride None
    </Directory>
    php.ini reads:
    Code:
    ;include_path = ".;c:\php\includes"
    doc_root = "D:/Program Files/Apache/Apache2/htdocs"
    user_dir =
    extension_dir = "./"
    What do I need to look for or correct? Do I need to match the user directories?

    Install instructions at:

    http://www.devarticles.com/c/a/Apach...der-Windows/4/

    say I need to copy files into the Apache root directory, this is written for version 4 not 5. Are these still good instructions? What would change on these for version 5?

    OMR

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    PHP doesn't like to be installed in directories with spaces in the name. You'd be better off installing in D:/php
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Regular Coder
    Join Date
    May 2006
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Anything in your apache error log?


  •  

    Posting Permissions

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