Jump to content

PHP New Installation, No Work!


Recommended Posts

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!!

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

 

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.

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.