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
  1. #1
    New Coder
    Join Date
    Oct 2007
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    What's wrong with my php installation?

    Hi, I installed the php-4.4.7-Win32 and apache_2.2.6-win32-x86-openssl-0.9.8e manually. Apache can work well, but when use the test.php, which is located in C:\Apache\htdocs, I get the following error:

    erroe 403:
    Forbidden
    You don't have permission to access /php/php.exe/test.php on this server.

    Anyone can solve this problem? Thanks very much!

  • #2
    New Coder
    Join Date
    Nov 2007
    Posts
    12
    Thanks
    0
    Thanked 1 Time in 1 Post
    You should check if document root is set alright in
    apache/conf/httpd.conf
    It may be a doc_root issue, but can also be something else.

    Here is what I use
    Code:
    DocumentRoot "C:/apache/htdocs"
    
    # First, we configure the "default" to be a very restrictive set of features.  
    <Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Satisfy all
    </Directory>
    
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "C:/apache/htdocs">
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    
    # DirectoryIndex: sets the file that Apache will serve if a directory is requested.
    <IfModule dir_module>
        DirectoryIndex index.php index.html index.htm
    </IfModule>
    echo "PHP 5.2.5";
    exit ( "Script End" );

  • Users who have thanked phpBuddy for this post:

    jayyu317 (11-15-2007)

  • #3
    New Coder
    Join Date
    Oct 2007
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks, I conquer it now. I think mysql did not link with php. Before, I only add path parameter in my system. I copy php.ini and another file to system32 and windows folder, then they are linked.


  •  

    Posting Permissions

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