Link to home
Start Free TrialLog in
Avatar of pepps11976
pepps11976

asked on

PHP on windows server 2003

Ok for the life of me i cannot get PHP working on Windows Server 2003 with IIS 6

i am happy to remove what i have installed already and start again but can some please guide me through this, it quite urgent

John
ASKER CERTIFIED SOLUTION
Avatar of Amar Bardoliwala
Amar Bardoliwala
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pepps11976
pepps11976

ASKER

yes i have followed most of these articles to no success, they all talk about older versions, and i have the latest version
Hello pepps11976,

What problem are you facing with your current installation?

Also can you go with Wamp server?

Thank you.

Amar Bardoliwala
No cant really go with WAMP server

we have some sites that just use plain old .html, but we have just had one of our sites rewritten in php, hence why i need to try and get it working i just followed one of the articles you posted

http://www.howtogeek.com/50455/how-to-install-php-on-iis-6-for-windows-server-2003/

but cannot display the .php page

i get bad request invalid hostname

john
Hello pepps11976,

Can you please check if your php.ini contains cgi.force_redirect = 0 and that your ini is put at right place in windows directory or in c:/php directory?

might be problem with php.ini file.

Hope this will help you.

Thank you.

Amar Bardoliwala
Avatar of gr8gonzo
WAMP server can serve up plain old HTML, too. WAMP is just like IIS. The only reason you should stick to IIS is if you want to use ASP.NET or classic ASP pages or if you've got a lot of IIS experience in-house.
Hi yes we do have a lot of asp pages, so it probably will not be suitable I will check the php.ini and post back
What happens when you access a PHP page? Does it just show PHP source code, or does it throw an error?
hi i get the following

The page cannot be found
 The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
--------------------------------------------------------------------------------

Please try the following:
 •Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
 •If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
 •Click the Back button to try another link.
 
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
 
--------------------------------------------------------------------------------

Technical Information (for support personnel)
 •Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
 •Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.
ok i have checked the file and it is correct as you have stated
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yes i can access the site for non php stuff
i created a simple php file in notepad and called it hello.php and saved it in the root directory of my website if i browse to it www.domain.com/hello.php i get

The page cannot be found
 The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
--------------------------------------------------------------------------------

Please try the following:
 •Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
 •If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
 •Click the Back button to try another link.
 
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
 
--------------------------------------------------------------------------------

Technical Information (for support personnel)
 •Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
 •Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.


if  i reneme it to hello.html i get blank white page but no error, this is what i put in the page

<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <?php echo '<p>Hello World</p>'; ?>
 </body>
</html>

john
Ok i checked in the home directory and when i added the extension in the home directory under the web Site section in did not propergate down all the other sites, so i have now added to that website in IIS and now get the following error

FastCGI Error
The FastCGI Handler was unable to process the request.
--------------------------------------------------------------------------------

Error Details:

•Section [PHP] not found in config file.
•Error Number: 1413 (0x80070585).
•Error Description: Invalid index.
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
ok think its sorted there was a path error in fcgiext.ini

thanks for your help