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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old April 8th, 2005, 06:04 PM
valensnow valensnow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 203 valensnow User rank is Private First Class (20 - 50 Reputation Level)valensnow User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 23 h 12 m 39 sec
Reputation Power: 6
Php5 Iis6 W2k3

Currently I am using PHP5, IIS6, W2K3.

All drive letters below are fictional. It is the idea that I am after.

The php.ini file is located on my local drive. However, the InetPub where my scripts are located is on another drive. Assume that my local drive is K:\ then the php.ini file is in K:\Windows since this is W2K3. Now InetPub where my scripts are located is let's say on drive L:\. Lets, assume that my scripts are in a folder called Test on drive L:\. So, it looks like:

L:\InetPub\wwwroot\Test

Localhost is linked to drive L:\. So, when I go:

localhost/Test/test.html in my address bar

It works. HTML files are no problem. But php files are not recognized. Perhaps I need to point the PHP interpreter to InetPub on the L:\ drive somehow.

When I work with one drive with PHP5, IIS6, W2K3 it works fine. I always change the cgi.force.redirect to 0 and place it in my Windows directory on that one drive. Then I add PHP to the Path environment variable. Then I add the .php file extension in IIS6 and point it to php-cgi.exe. Don't worry about FastCGI for now. It always works with php-cgi.exe.
Then I add the web service extension to IIS6. And that's it it works like a charm. Now I have my InetPub and Home Directory on a different drive (on the same machine) for my scripts then where the php.ini file is located. This should not make a difference in my eyes because I am still setting the .php file extension to point back the local drive where php-cgi is K:\php\php-cgi.exe. I know there is a small fix somewhere, but I cannot find it. Any help is appreciated.

Thanks.

Reply With Quote
  #2  
Old April 8th, 2005, 10:44 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,712 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 23 h 31 m 33 sec
Reputation Power: 688
I suspect you need to add some permissions to the folder holding your scripts.
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Php5 Iis6 W2k3


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