Apache+php on Windows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ike

    Apache+php on Windows

    I just installed apache (latest good version) for Windows in:

    C:\Program Files\Apache Software Foundation\Apac he2.2\htdocs

    therein, in that directory, I have test.php.

    In C:\Program Files\Apache Software Foundation\Apac he2.2\conf\http d.conf, at
    the end of the file, I have:

    ScriptAlias /php/ "c:/php/"
    AddType application/x-httpd-php .php
    Action application/x-httpd-php "/php/php.exe"

    I restart the apache server, but when I go to look at localhost\test. php, I
    get:

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

    Can someone please tell me what is wrong with how I have configured this?
    Thanks, Ike


  • Dennis Kowallek

    #2
    Re: Apache+php on Windows

    On Wed, 27 Sep 2006 22:55:17 GMT, "Ike" <rxv@hotmail.co mwrote:
    >In C:\Program Files\Apache Software Foundation\Apac he2.2\conf\http d.conf, at
    >the end of the file, I have:
    >
    >ScriptAlias /php/ "c:/php/"
    >AddType application/x-httpd-php .php
    >Action application/x-httpd-php "/php/php.exe"
    >
    >I restart the apache server, but when I go to look at localhost\test. php, I
    >get:
    >
    >You don't have permission to access /php/php.exe/test.php on this server.
    Maybe instead of restart try stop/start?

    And maybe check the Apache error log.

    --

    Dennis K.

    Comment

    • Dennis Kowallek

      #3
      Re: Apache+php on Windows

      On Wed, 27 Sep 2006 19:10:10 -0400, Dennis Kowallek <kowallek@iglou .com>
      wrote:
      >On Wed, 27 Sep 2006 22:55:17 GMT, "Ike" <rxv@hotmail.co mwrote:
      >
      >>In C:\Program Files\Apache Software Foundation\Apac he2.2\conf\http d.conf, at
      >>the end of the file, I have:
      >>
      >>ScriptAlias /php/ "c:/php/"
      >>AddType application/x-httpd-php .php
      >>Action application/x-httpd-php "/php/php.exe"
      >>
      >>I restart the apache server, but when I go to look at localhost\test. php, I
      >>get:
      >>
      >>You don't have permission to access /php/php.exe/test.php on this server.
      >
      >Maybe instead of restart try stop/start?
      >
      >And maybe check the Apache error log.
      And did you make the appropriate changes to php.ini?

      --

      Dennis K.

      Comment

      • Ike

        #4
        Re: Apache+php on Windows

        Adding the following lines in httpd.conf solved the issue:

        <Directory "C:/php">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
        </Directory>


        Comment

        Working...