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 July 25th, 2005, 12:00 AM
bozoka45 bozoka45 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: New Orleans
Posts: 175 bozoka45 User rank is Lance Corporal (50 - 100 Reputation Level)bozoka45 User rank is Lance Corporal (50 - 100 Reputation Level)bozoka45 User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 6 h 3 m 44 sec
Reputation Power: 6
Send a message via AIM to bozoka45
PHP5 ignoring php.ini directives in IIS5

I've been able to use a php.ini file in certain directories to set certain php directives on an Apache server. My problem now is that I'm on a Windows 2000 Server with IIS5, and PHP appears to be ignoring the directives set in php.ini files within directories. Now, if I set the directives in the c:\winnt\php.ini file, it works, but then those directives are applied to every php script that runs on the server.

I've seen other people reporting this error, but no one with a solution. Any suggestions? Am I missing a setting somewhere?

I'm trying to use:

Quote:
include_path
auto_prepend_file
auto_append_file
session.auto_start

Reply With Quote
  #2  
Old July 25th, 2005, 07:17 AM
printf printf is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jan 2005
Posts: 1,541 printf User rank is Captain (20000 - 30000 Reputation Level)printf User rank is Captain (20000 - 30000 Reputation Level)printf User rank is Captain (20000 - 30000 Reputation Level)printf User rank is Captain (20000 - 30000 Reputation Level)printf User rank is Captain (20000 - 30000 Reputation Level)printf User rank is Captain (20000 - 30000 Reputation Level)printf User rank is Captain (20000 - 30000 Reputation Level)printf User rank is Captain (20000 - 30000 Reputation Level)printf User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 14 h 10 m 10 sec
Reputation Power: 247
This is not a PHP problem it is a IIS problem. IIS does not assign the PHP config directive to virtual directories. Because of this the php5ts.dll is hardcoded to the only place that IIS assigns the config directory path. If your using ISAPI you can not do anything to fix this. If your using the CGI / EXE you can build PHP or hack both the php5ts.dll and the php.exe to use different php.ini files per directory.

printf

Reply With Quote
  #3  
Old July 25th, 2005, 09:36 AM
bozoka45 bozoka45 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: New Orleans
Posts: 175 bozoka45 User rank is Lance Corporal (50 - 100 Reputation Level)bozoka45 User rank is Lance Corporal (50 - 100 Reputation Level)bozoka45 User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 6 h 3 m 44 sec
Reputation Power: 6
Send a message via AIM to bozoka45
Thanks for the reply. Now I hate IIS even more than I did before. I'm really not up to building PHP (would really know where to start) but do you know of any tuts to hack php5ts.dll or php.exe?

Reply With Quote
  #4  
Old July 25th, 2005, 10:06 AM
bdreyer's Avatar
bdreyer bdreyer is offline
His name is Robert Paulson!
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Feb 2005
Location: Paper Street
Posts: 2,692 bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 4 h 10 m 43 sec
Reputation Power: 128
Are the settings you want to configure, configurable within the scripts themselves? if so, you could just have an include in each directory, that you can use for each script.
__________________
Environmental LIMS
What the hell is all this LIMS st*ff about?
---------------------------------------
PHP Pagination Function
PHP Drop Down Menus

Reply With Quote
  #5  
Old July 25th, 2005, 02:14 PM
bozoka45 bozoka45 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: New Orleans
Posts: 175 bozoka45 User rank is Lance Corporal (50 - 100 Reputation Level)bozoka45 User rank is Lance Corporal (50 - 100 Reputation Level)bozoka45 User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 6 h 3 m 44 sec
Reputation Power: 6
Send a message via AIM to bozoka45
Working around it won't be a problem, I'm just kinda upset that I can't do this.

Reply With Quote
  #6  
Old August 22nd, 2005, 08:17 PM
Veamon's Avatar
Veamon Veamon is offline
Blowing up trees with my mind.
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Feb 2005
Location: Neverland Ranch, minus the touching.
Posts: 2,749 Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)  Folding Points: 133887 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133887 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133887 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133887 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133887 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133887 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 4 Days 6 h 19 m 21 sec
Reputation Power: 929
I had the same problem, look in your windows, or windows\system directory for a php.ini file. Delete it, and have one in your php folder instead. Worked for me.

Reply With Quote
  #7  
Old August 23rd, 2005, 10:26 AM
bdreyer's Avatar
bdreyer bdreyer is offline
His name is Robert Paulson!
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Feb 2005
Location: Paper Street
Posts: 2,692 bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level)bdreyer User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 4 h 10 m 43 sec
Reputation Power: 128
^^ that won't really work in this case because the original poster was talking about having different .ini files in different directories, depending on the site that was being used.

Reply With Quote
  #8  
Old August 23rd, 2005, 12:48 PM
Veamon's Avatar
Veamon Veamon is offline
Blowing up trees with my mind.
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Feb 2005
Location: Neverland Ranch, minus the touching.
Posts: 2,749 Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)Veamon User rank is General (90000 - 100000 Reputation Level)  Folding Points: 133887 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133887 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133887 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133887 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133887 Folding Title: Super Ultimate Folder - Level 1Folding Points: 133887 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 4 Days 6 h 19 m 21 sec
Reputation Power: 929
Ah my bad, didnt see that part.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > PHP5 ignoring php.ini directives in IIS5


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 4 hosted by Hostway