logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: PHP cgi with Apche auth Problem
Author
aheiat



Joined: 02 Nov 2006
Posts: 1
Location: USA

PostPosted: Thu 02 Nov '06 13:11    Post subject: PHP cgi with Apche auth Problem Reply with quote

I have installed Apache on Windows XP and server test using localhost
is fine. However, when I try to run a PHP(5.1.3) document which is saved in the htdocs folder, I get the following message: " You are not authorized to view this page". I have the administrative rights and I disabled the windows firewall.
I am using a PHP book which suggested to add the following lines to the end of the httpd.conf file:

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

I am not sure if these lines are creating the problem or something else is wrong. I wouls appreciate your help to fix this problem. Thanks.

Abbas


Last edited by aheiat on Thu 02 Nov '06 15:18; edited 1 time in total
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 02 Nov '06 13:17    Post subject: Reply with quote

Hi!
You have to make the php folder accessable

Code:

<Directory "C:/php/">
    Options Indexes ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
Back to top


Reply to topic   Topic: PHP cgi with Apche auth Problem View previous topic :: View next topic
Post new topic   Forum Index -> Apache