Page 1 of 1

Server 2003 and PHP 4.3.2

Posted: Mon Aug 25, 2003 5:26 pm
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

Posted: Mon Aug 25, 2003 6:52 pm
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)

Posted: Tue Aug 26, 2003 6:57 am
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