|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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:
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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?
|
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
Working around it won't be a problem, I'm just kinda upset that I can't do this.
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
||||
|
||||
|
^^ 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.
|
|
#8
|
||||
|
||||
|
Ah my bad, didnt see that part.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > PHP5 ignoring php.ini directives in IIS5 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|