grantf Posted February 21, 2008 Share Posted February 21, 2008 Hi, i have recently attempted to setup PHP with IISv6.0 and have run into some problems after installation. Basically, no PHP code seems to work. I'm fairly new to PHP but do have some understanding of how it works. Here is my setup and what i have done. Whenever i try to run any PHP, even the most basic script such as hello world fails with this error message; [CGI Error, The specified CGI application misbehaved by not returning a complete set of HTTP headers.] My software / hardware PHP (Manual Installation) 5.2.5 zip package Windows server 2003 R2, SP2 IIS 6.0 AMD Athlon 64 X2 Dual Firefox & Internet Explorer php-recommended.ini (renamed of course) My installation Files have been placed in C:\PHP PATH has been modified to include c:\PHP NTFS security on c:\PHP is EVERYONE = FULL CONTROL, nothing else IIS root is located at c:\inetpub\wwwroot Web Service Extensions include c:\PHP\php-cgi.exe [ALLOWED] Under the default website under home directory tab 1. Read access, log visits, index this resource 2. Execute permissions = scripts only 3. Configuration... Application extentions contain c:\PHP\php-cgi.exe (.php) [ALL VERBS] PHP.ini doc_root = "c:\inetpub\wwwroot" extension_dir = "c:\PHP\ext" cgi.rfc2616_headers = 1 I have also tried accessing the pages through these 2 methods //computer/folder/index.php http://localhost/folder/index.php This is an example of code that is failing. It doesnt get any more basic than this... <?php Print "Hello, World!"; ?> I'm not really sure what to do from here, searching for the error message on google has given me absolutely nothing and i've tried to follow the install.txt manual to the letter. Pulling my hair out - any help would be greatly appreciated!! Quote Link to comment Share on other sites More sharing options...
vishal99 Posted February 23, 2008 Share Posted February 23, 2008 Hi, Why not go for Xampp or wamp. Both packages are very easy to install. If you don't want to go for pre compiled packages then go for Apache server. Apache is open source and power full server software. download it, install it, then download php zip packed( as you already downloaded for iis installation) and then edit httpd.conf from Apache installation folder for locating php files. Thanks, Vishal Quote Link to comment Share on other sites More sharing options...
grantf Posted February 25, 2008 Author Share Posted February 25, 2008 Would just like to let you know everything seems to be working ok after installing from the binary installation file. Have compared settings before and after and cant figure it out. oh well. thanks anyways! Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 25, 2008 Share Posted February 25, 2008 The CGI error message is because you must set the cgi.force_redirect PHP directive to 0 inside php.ini under IIS. Whatever installer you used, either did this for you or installed php as a server module instead of a CGI wrapper. Quote Link to comment Share on other sites More sharing options...
KTTHOOL Posted March 1, 2008 Share Posted March 1, 2008 Try this 1>Don't forget to check your IIS 6.0 installation whenther it's proper or not. In your installation of php installation after selecting folder destination , the webserver you have to choose the following options "IIS ISAPI module" option then rest is simple. 2> If you could not get results with this try searching in the www.php.net website. Quote Link to comment 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.