ogo
08-23-2006, 07:50 PM
Hey all,
About a year ago I put PHP and PMWiki on my Mac. Then it was an easy install, but now I need to switch it to my PC running Windows XP and can't figure out what's going wrong.
I am running Apache 2.2.3, and installing PHP 4.4.4. I followed the directions on http://www.php.net/manual/en/install.windows.apache2.php.
My server directory is c:\server. After installing PHP in c:\server\php using the windows installer, I added these three lines to the end of httpd.conf:
ScriptAlias /php/ "c:/server/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
When I try to access a simple file, http://localhost/phpinfo.php, Firefox says:
Forbidden
You don't have permission to access /php/php.exe/phpinfo.php on this server.
I didn't think WinXP even had permissions! I am logged in under my main user account, and I've restarted Apache several times.
About a year ago I put PHP and PMWiki on my Mac. Then it was an easy install, but now I need to switch it to my PC running Windows XP and can't figure out what's going wrong.
I am running Apache 2.2.3, and installing PHP 4.4.4. I followed the directions on http://www.php.net/manual/en/install.windows.apache2.php.
My server directory is c:\server. After installing PHP in c:\server\php using the windows installer, I added these three lines to the end of httpd.conf:
ScriptAlias /php/ "c:/server/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
When I try to access a simple file, http://localhost/phpinfo.php, Firefox says:
Forbidden
You don't have permission to access /php/php.exe/phpinfo.php on this server.
I didn't think WinXP even had permissions! I am logged in under my main user account, and I've restarted Apache several times.