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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
d3_realm
Forum Newbie
Posts: 3
Joined: Thu Aug 28, 2003 8:13 pm

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

Post 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 !!!
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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...
d3_realm
Forum Newbie
Posts: 3
Joined: Thu Aug 28, 2003 8:13 pm

Post 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!
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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. =/
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

if you can set environment variables in the IIS configuration you can use PHPRC to point to another php.ini
Post Reply