Jump to content

Trouble getting PHP on Apache working properly (403)


lachesis

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.