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
PHP

Avatar of undefined
Last Comment
pepps11976

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Amar Bardoliwala

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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
Amar Bardoliwala

Hello pepps11976,

What problem are you facing with your current installation?

Also can you go with Wamp server?

Thank you.

Amar Bardoliwala
pepps11976

ASKER
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
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Amar Bardoliwala

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
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.
pepps11976

ASKER
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
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
gr8gonzo

What happens when you access a PHP page? Does it just show PHP source code, or does it throw an error?
pepps11976

ASKER
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.
pepps11976

ASKER
ok i have checked the file and it is correct as you have stated
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
SOLUTION
gr8gonzo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
pepps11976

ASKER
yes i can access the site for non php stuff
pepps11976

ASKER
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
pepps11976

ASKER
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)
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
pepps11976

ASKER
ok think its sorted there was a path error in fcgiext.ini

thanks for your help