Page 1 of 1

Asapi.dll - Extension DLL's using php.ini -- Muli-install

Posted: Thu Aug 28, 2003 8:13 pm
by d3_realm
How about this one for you tech gurus?

A. ISS 4 - 2k server P4 2.4 with 2 gig ram.
B. PHP 4.3.3 and 4.3.2 Installed GOOD!. ( http://www.infocode.net )
C. Using php4isapi.dll.

But!

/USERS/ABC/PHP-BIN/php4isapi.dll
/USERS/ABC/PHP-BIN/php4ts.dll
/USERS/ABC/PHP-BIN/php.ini
/USERS/ABC/HTML/index.php

/USERS/DEF/PHP-BIN/php4isapi.dll
/USERS/DEF/PHP-BIN/php4ts.dll
/USERS/DEF/PHP-BIN/php.ini
/USERS/DEF/HTML/index.php

How do i use the php.ini to configure my php4isapi.dll, from what I’ve read the .dll uses the registry to locate C:\winnt\system32\php.ini ... I don't have that choice as i need plenty of php.ini's ... any suggestions on how to get this configuration working? ( I need to include different modules for different users for licensing issues )


Thx Guyz & Gurlz !!!

Posted: Sun Aug 31, 2003 5:55 pm
by JAM
Not sure this covers your topic, but...

Code: Select all

// httpd.conf

        <Directory /home/webmaster/Web> 
                Options Includes Indexes FollowSymLinks 
                AllowOverride All 
                php_admin_flag engine On 
                php_admin_flag safe_mode On 
                        order allow,deny 
                        allow from all 
        </Directory> 
        <Directory /home/*/Web> 
                AllowOverride All 
                Options Includes Indexes FollowSymLinks 
                php_admin_flag engine Off 
                php_admin_flag safe_mode On 
        </Directory>
Here, php_admin_flag, is used to change the engine setting on the fly in the httpd.conf. Look it up and you might find something more useful with that.

Good luck.

Edited:
I'm not sure IIS supports this kind of feature, the above was cut from some example code found, regarding Apache. Might help anyways...

Posted: Sun Aug 31, 2003 6:00 pm
by d3_realm
Before I get too happy.

What's this https.conf ... I'm running iis and don't seem to have a https.conf?

I would agree 100% with you, if you could set the base includes by the directory structure in one php.ini file in C:\Winnt\

Keep up the good work Gru's!

Posted: Sun Aug 31, 2003 6:17 pm
by JAM
Not to familiar with IIS... httpd.conf is the settings-file for the Apache webserver ([url]http://httpd.apache.org[url]) that is abit more confortable when it comes to tweaking.

Browsed the web for a while, but saw "I dont think so" as the most common answer to your problem. So if noone else have a soulution, I think youre stumped. =/

Posted: Sun Aug 31, 2003 6:30 pm
by volka
if you can set environment variables in the IIS configuration you can use PHPRC to point to another php.ini