lachesis Posted August 12, 2006 Share Posted August 12, 2006 [B]Apache server:[/B] Apache 2.2.3[B]PHP:[/B] 5.1.4[B]MySQL:[/B] 5.0[B]Platform:[/B] Windows XP SP2Apache 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]ForbiddenYou 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 AllAllowOverride NoneOrder allow,deny Allow from all</Directory>ScriptAlias /php/ "C:/websrv/php/"AddType application/x-httpd-php .phpAction 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? Quote Link to comment https://forums.phpfreaks.com/topic/17344-trouble-getting-php-on-apache-working-properly-403/ Share on other sites More sharing options...
tomfmason Posted August 13, 2006 Share Posted August 13, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/17344-trouble-getting-php-on-apache-working-properly-403/#findComment-73919 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.