SunQuest
           IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old September 15th, 2003, 07:35 AM
wivellJ wivellJ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 76 wivellJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
PHP-IIS Problem

Hi,

i have just installed PHP and IIS on a server on the company network, to work alongside MySQL for an Intranet, i have created some test PHP web pages and saved them in the C:\Inetpub\wwwroot folder and when i try to open them up in Internet Explorer the page comes up as error 404 unable to view page, or error 500 Internal server error. I have followed instructions on how to setup IIS however, the instructions are very brief, is there a more detail guide available, or could anyone help me with this problem.


many thanks

Reply With Quote
  #2  
Old September 15th, 2003, 12:03 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,679 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 14 h 50 m 53 sec
Reputation Power: 688
Did you verify that IIS was working right before installing PHP?

I haven't run PHP on a windows server but it is pretty common. Make sure you are an administrator user when you install IIS and PHP is one tip.

I imagine you have viewed this page already.

http://www.php.net/manual/en/install.windows.php

Reply With Quote
  #3  
Old September 16th, 2003, 03:20 AM
wivellJ wivellJ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 76 wivellJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
I followed instructions on how to install PHP from a book called PHP and MySQL Web Development, By Luke Welling and Laura Thompson. It shows how to connect PHP with IIS, and view a test php page, however, this is only brief description, and does not explain what to do if this does not work. please help!!!

Reply With Quote
  #4  
Old September 16th, 2003, 09:02 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,679 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 14 h 50 m 53 sec
Reputation Power: 688
Did you look at the link I posted above?

Reply With Quote
  #5  
Old September 17th, 2003, 10:04 AM
wivellJ wivellJ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 76 wivellJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
hi,

yeah ive looked at the link provided, i am using windows 2003 server, i am able to view static web pages through IIS. however, when i try to view a php page i comes up with a 'cannot find page' error. i then decided to re-install php using the php installer, and i came up with a missing OCX control on your system error message whichsays that the installation wizard was unable to configure your web server, although php was installed successfully. therefore, i am unsure whether it is a php problem, or as the security settings on windows 2003 are different to 2000, in the fact that settings need to be enabled as they are locked down in order for programs to work. has anybody encountered this problem before?

Reply With Quote
  #6  
Old September 17th, 2003, 11:06 AM
kolatracks kolatracks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: UK
Posts: 311 kolatracks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Try http://www.php.net/manual/en/install.iis.php and look at the fourth user comment. I believe that's what you need. It works for me.

Also use the zip release. For some reason the installer doesn't work on 2003. For me at least.

I'm in the same situation but I would like to run PHP as CGI instead of as an ISAPI module. I'd appreciate any help/links/ideas on how to set this up?

TIA

Last edited by kolatracks : September 17th, 2003 at 11:10 AM.

Reply With Quote
  #7  
Old September 18th, 2003, 06:31 PM
the86r the86r is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: San Luis Obispo County
Posts: 2 the86r User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to the86r Send a message via AIM to the86r Send a message via Yahoo to the86r
My .02: Enabling CGI on an IIS server presents numerous security issues, which is why I believe PHP was released as the ISAPI mod for IIS/WinServers.

The OCX error is due to the automation of the php script mapping (what IIS looks to in order to make PHP work) failing. You have to manually tell IIS how to use PHP.

Doug G said it best: URL

Reply With Quote
  #8  
Old September 18th, 2003, 07:08 PM
kolatracks kolatracks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: UK
Posts: 311 kolatracks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Quote:
My .02: Enabling CGI on an IIS server presents numerous security issues...

I was under the impression that the isapi mod was a security risk. maybe I got it the other way round.


I'm still interested though in setting it up as CGI.

Reply With Quote
  #9  
Old September 18th, 2003, 07:38 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,679 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 14 h 50 m 53 sec
Reputation Power: 688

Reply With Quote
  #10  
Old September 18th, 2003, 07:57 PM
kolatracks kolatracks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: UK
Posts: 311 kolatracks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Thumbs up looks promising

It's a bit late now so I'll try that method later. But it does look promising.

So while I'm here, thanks for the link Doug G

Reply With Quote
  #11  
Old September 19th, 2003, 03:39 AM
wivellJ wivellJ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 76 wivellJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Thumbs up

thanks for your help, ive got it sorted now, really appreciate it.

cheers

Reply With Quote
  #12  
Old September 29th, 2003, 10:57 PM
Sorcerysoft Sorcerysoft is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 3 Sorcerysoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Sorcerysoft
wivellJ

Hi wivellJ,
I'm having the same problem with PHP + ISS install. I'm getting a 404 error on every page I test. I've already tried several install guides on the net. None of them seems to work for me. I must be missing something. In you last pst you said you have resolved this issue. Can you explain what you did to resolve it? Thanks.

Reply With Quote
  #13  
Old September 30th, 2003, 05:01 PM
hclark hclark is offline
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Iowa
Posts: 20 hclark User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 34 sec
Reputation Power: 0
Apparently this is a common problem, because I came here looking for help on the same issue. Our system admin is trying to setup a new server for our website and whenever we try to bring up any page with a .php extension we just get a generic 404 error.

I think from reading the posts above I'll give my admin the info about adding PHP as a web service extension that I found on http://www.php.net/manual/en/install.iis.php. A person on there said this was a new step in IIS6, so the admin probably doesn' t know about it.

Reply With Quote
  #14  
Old October 1st, 2003, 11:17 AM
Sorcerysoft Sorcerysoft is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 3 Sorcerysoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Sorcerysoft
IIS 6.0 Windows 2003 Problem Resolved

I have resolved the issue. Yes it is a very common problem. The problem isnt with PHP or the PHP install instructions posted on the net. It's with the default security settings on IIS 6.0 on Windows 2003. The default settings prohibit IIS from running DYNAMIC Content( ASP, CGI, PHP, etc... ). IIS. Enabling Dynamic Content on IIS 6.0 on Win 2003 is described in the 'Support and Help' system. Open Start->'Support and Help'->'Internet and Email Services'->'Internet Information Services (IIS) 6.0 security overview'

Here is what the help files say:


IIS 6.0 is fully locked down by default
When you install IIS, the service is installed in a highly secure and locked mode. By default, IIS serves only static content, which means that features such as Active Server Pages (ASP), ASP.NET, Indexing Service, server-side includes (SSI), Web Distributed Authoring and Versioning (WebDAV), and FrontPage Server Extensions do not work unless you enable them. If you do not enable these features after installing IIS, IIS returns a 404 error. To serve dynamic content and unlock these features, you must enable them by using IIS Manager. Administrators can enable or disable IIS functionality based on the needs of the organization. For more information, see "Enabling or Disabling Dynamic Content" in IIS 6.0 Help. Also, if an application extension is not mapped in IIS, IIS returns a 404 error. To map an application extension, see "Setting Application Mappings" in IIS 6.0 Help. For more information about troubleshooting 404 errors, see "Troubleshooting" in IIS 6.0 Help. For information about how to open IIS 6.0 Help, see To view Internet Information Services (IIS) 6.0 Help.



The help files show you how to enable Dynamic Content.
Also make sure your PHP.ini doc_root = "yourrootpath" parameter is set correctly. This should be the root of all your .PHP files.

Let me know if it works for you. Thanks!

Reply With Quote
  #15  
Old January 22nd, 2004, 12:09 PM
fletchsod's Avatar
fletchsod fletchsod is offline
I lov C in AIX/Linux, hate C++
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Location: Jacksonville, Florida
Posts: 1,491 fletchsod User rank is Corporal (100 - 500 Reputation Level)fletchsod User rank is Corporal (100 - 500 Reputation Level)fletchsod User rank is Corporal (100 - 500 Reputation Level)fletchsod User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Week 2 Days 15 h 38 m 46 sec
Reputation Power: 7
..

I noticed one thing that is not mentioned in this posting. It is that you would need to add the web service extension. This would allow your php to work while IIS is in lockdown... Just do the simliar procedure on this as you did with ISAPI Filter and ISAPI Extension, like ".php", ".inc", ".asp", etc...

Just doing the web service extension solve the problem for me...

FletchSOD

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > PHP-IIS Problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread: