Jump to content

Archived

This topic is now archived and is closed to further replies.

lachesis

Trouble getting PHP on Apache working properly (403)

Recommended Posts

[B]Apache server:[/B] Apache 2.2.3
[B]PHP:[/B] 5.1.4
[B]MySQL:[/B] 5.0
[B]Platform:[/B] Windows XP SP2

Apache will server the default page with an index listing as follows:

[CODE]Index of /

    * index.php[/CODE]

When I click on index.php, I get:

[CODE]Forbidden

You don't have permission to access /php/php-cgi.exe/index.php on this server.[/CODE]

Index.php contains the following code:

[code=php:0]<?PHP phpinfo(); ?>[/code]


These are what i think are the relevant portions of my httpd.conf:
[CODE]
ServerRoot "C:/websrv/"

DocumentRoot "C:/websrv/sitedocs/"
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>

<Directory "C:/websrv/sitedocs/">
Options Indexes FollowSymLinks All
AllowOverride None
Order allow,deny
    Allow from all
</Directory>

ScriptAlias /php/ "C:/websrv/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"[/CODE]

I've tried to right click on folder and give access to !USR_Machine but I'm not on a domain so don't have the 'security' tab.

Any ideas?

Share this post


Link to post
Share on other sites
Is this xp home? if so you need to restart in safe mode to be able to set the permissions properly. When you restart in safe mode you will have acess to the security tab.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.