Server 2003 and PHP 4.3.2

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
williamcheung
Forum Newbie
Posts: 1
Joined: Mon Aug 25, 2003 5:26 pm
Location: Surrey BC

Server 2003 and PHP 4.3.2

Post by williamcheung »

I got the following error when trying to access a PHP page.

You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.
--------------------------------------------------------------------------------

Please try the following:

Contact the Web site administrator if you believe this directory should allow execute access.
HTTP Error 403.1 - Forbidden: Execute access is denied.
Internet Information Services (IIS)

HTML file works fine. What could be the cause?

William
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

maybe http://bugs.php.net/bug.php?id=23907 in combination with instructions in INSTALL helps.
You have to enable both: the php-extension (globally) and the execution of cgis (for the directory)
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

I'm running a Windows Server 2003 Enterprise Edition on my PC. Do you need to use IIS? If not install Apache, it's much more simple and easy to use. If you're just too lazy (like me) to install Apache, PHP, MySQL, phpmyadmin and Zend Optimizer manually; check out AppServ at:

http://www.appservnetwork.com/

It'll install everything automaticly for you. Just some configuring here and there.

But I'm on IIS 6.0 though, since Apache won't work with my router. I used the automatic installer for PHP and it works fine. I allowed all ISAPI, CGI and Server Side Includes in my Web Service Extensions. Also check for this:

Go to your default web site in IIS Manager. Then right click on it, go to properties. Go to the Home Directory tab, and under Application Settings, click Configuration. There should be all these extensions there. Find .php. Make sure it's executable path is pointed to C:\PHP\php.exe*.

*Note that C:\PHP\php.exe is the default installation path. If you changed it during installation, then use from the directory you installed to.

Hope that helped...

-Nay
Post Reply