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:
  #1  
Old February 4th, 2006, 12:58 AM
Phil_work Phil_work is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Canberra, Australia
Posts: 324 Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 47 m 53 sec
Reputation Power: 8
Want to run PHP

I have inherited Windows box from a client and it has ASP applications on it, though I want to also be able to run some PHP aswell.

I have just taken over as the server admin and Im more familiar with PHP coding. So I still want to keep the legacy apps but new ones I develop will hopefully be in PHP...

I have gone through the manual install, and when I try to access a .php resource I get asked for login details, and when the creds are provided the PHP executes as expected..

I have checked the permissions and IWAM_SERVER has
Read&Excute / List Folder / Write permissions to the directory which propergate to the file.. Am I missing a permission or process I need to add?

Any help with this would be excellent...

Reply With Quote
  #2  
Old February 4th, 2006, 01:51 AM
PWD's Avatar
PWD PWD is offline
Network Engineer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: 127.0.0.1
Posts: 709 PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 23 h 45 m 56 sec
Reputation Power: 190
You can run PHP as either a CGI executable app or an ISAPI filter. If you just want to toy around on a NON PRODUCTION machine, download the latest php package from php.net WITH installer and it will automatically configure your server box for you. (You will also have to add your 'index.php' to the documents page under the properties tab of the server.) It will ask you for your IIS version. If you are running NT 4 it will be IIS 4, Windows 2000 server, it will be IIS 5. If you have Windows 2003 server, IIS 6.

To run php as an ISAPI filter, just search php.net for installing as an ISAPI filter. I run it as a CGI and have had no problems. (Although most hardcore sys admins would recommend the ISAPI road on a production machine)
__________________
PWD
MCSE, MCSA, MCP, Security+

NEW Windows Administration Forum
Admin Source
Could REALLY, REALLY, REALLY use you and your issues!

Last edited by PWD : February 4th, 2006 at 01:54 AM.

Reply With Quote
  #3  
Old February 4th, 2006, 02:37 AM
Phil_work Phil_work is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Canberra, Australia
Posts: 324 Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 47 m 53 sec
Reputation Power: 8
thanks for the quick reply man,

I have tried running as both CGI and ISAPI and both the same result.. I get asked to supply login credentials, after I supply the credentials, the php executes fine.

So Im pretty sure the problem is with the file permissions but Im unsure where to start looking... Google is usually my friend but this one has me stumped

Reply With Quote
  #4  
Old February 4th, 2006, 12:30 PM
PWD's Avatar
PWD PWD is offline
Network Engineer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: 127.0.0.1
Posts: 709 PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 23 h 45 m 56 sec
Reputation Power: 190
What OS are you running?

Probably right, file permissions are probablyto blame. Do you have administrator rights or did your client give you an administrator log on? If not, you'll have to do a clean Windows server install and start from scrarch.

If your client did give you the admin username and password, right click on the php folder (c:\php I assume) and click on the security tab. (Sharing tab in win xp) from there you should be able to assign sharing rights.

Reply With Quote
  #5  
Old February 4th, 2006, 02:05 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,969 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 17 h 19 m 56 sec
Reputation Power: 802
Make sure the IUSR_computername user account has permissions to the php executables.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved
of it. --Mark Twain

Reply With Quote
  #6  
Old February 4th, 2006, 05:32 PM
Phil_work Phil_work is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Canberra, Australia
Posts: 324 Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 47 m 53 sec
Reputation Power: 8
I set the permissions to c:/php for

IUSR_SERVER

Now is working excellent, thanks guys

Reply With Quote
  #7  
Old February 5th, 2006, 02:13 PM
Steph3n Steph3n is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 22 Steph3n User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 28 sec
Reputation Power: 0
One note is that I am an IIS admin in shared hosting, I actually prefer to run it in CGI mode for its great security benefits, it uses a bit more CPU, but it pays off in security.

Reply With Quote
  #8  
Old February 5th, 2006, 03:43 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,969 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 17 h 19 m 56 sec
Reputation Power: 802
Quote:
Originally Posted by Steph3n
One note is that I am an IIS admin in shared hosting, I actually prefer to run it in CGI mode for its great security benefits, it uses a bit more CPU, but it pays off in security.

Can you elaborate on some of the security differences between CGI and ISAPI php?

Reply With Quote
  #9  
Old February 5th, 2006, 04:52 PM
Steph3n Steph3n is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 22 Steph3n User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 28 sec
Reputation Power: 0
CGI runs as the user with user level permissions, CGI is more stable, and ini file changes won't take each customer down. Overall it is slightly slower, but much better in a shared enviroment.

Reply With Quote
  #10  
Old February 8th, 2006, 04:55 AM
reteep reteep is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Germany
Posts: 166 reteep User rank is Private First Class (20 - 50 Reputation Level)reteep User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 19 h 25 m 2 sec
Reputation Power: 4
Send a message via ICQ to reteep
I just checked out the new installer of PHP5 for IIS. Really good job, it's working out of the box!
__________________

Andreas Kraus on .NET
SEO-Forum.org - SEO News
SEO-Trade.net - plattform for monitoring and exchanging Links
sunlab.de

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Want to run PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT