Results 1 to 3 of 3

Thread: [RESOLVED] Setting Apache and PHP5

  1. #1

    Thread Starter
    Member Matias's Avatar
    Join Date
    Jun 2005
    Location
    Buenos Aires, Argentina.
    Posts
    43

    Resolved [RESOLVED] Setting Apache and PHP5

    Hi guys, i've recently installed Apache and PHP5 in my system (winxp). I've edited httpd.conf, setting DocumentRoot to "C:\public_html" but when i tried to open a website i'm developing i get:

    HTML Code:
    Forbidden
    You don't have permission to access / on this server.
    
    --------------------------------------------------------------------
    Apache/2.0.54 (Win32) PHP/5.0.3 Server at localhost Port 80
    any clue why this is happening?

    I tried openning port 80 in the windows firewall, but nothing chances. Also open that port in the machine that connects directly to internet, i have a lan connection.

    Well, thanks in advance.

    Matias.-
    ... and the rivers shall open for the righteous, and the rivers shall open for the righteous, and rivers shall open for the righteous, someday ....

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Setting Apache and PHP5

    You get this error because you have no default file in your document root. You need to put a file in there called index.html.

    If you would like a directory listing instead then you need to find the directory container for the document root directory and add the following:
    Code:
    <Directory "C:\public_html">
        Options +Indexes
    </Directory>
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Member Matias's Avatar
    Join Date
    Jun 2005
    Location
    Buenos Aires, Argentina.
    Posts
    43

    Re: Setting Apache and PHP5

    Quote Originally Posted by visualAd
    You get this error because you have no default file in your document root. You need to put a file in there called index.html.
    I've always worked without a index.html but an index.php... however i tried this on httpd.conf:

    HTML Code:
    DirectoryIndex index.html index.html.var index.php
    And now instead of the the 403 err, a window appears telling me if i want to download localhost ?!?!?!?

    ... and the rivers shall open for the righteous, and the rivers shall open for the righteous, and rivers shall open for the righteous, someday ....

Posting Permissions

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



Click Here to Expand Forum to Full Width