Re: Re: Re:[PHP-WINDOWS] PHP4 as ISAPI Filter on Win98]

From: Date: Mon, 26 Jun 2000 21:39:06 +0000
Subject: Re: Re: Re:[PHP-WINDOWS] PHP4 as ISAPI Filter on Win98]
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-666@lists.php.net to get a copy of this message
I found the .reg file in one of these archives, but basically for my win95 machine I just had to do the following: HKEY_LOCAL_MACHINE System W3SVC Parameters Script Map Add .php "c:\Program Files\php\php4isapi.dll" (using your path of course!) But since I tried running php before I had this properly setup, I ran intor problems with missing library files. So, more info in case you're still stuck. I discovered a WAM.event.log in my windows directory that revealed that the path for php4isapi.dll was wrong. I also looked through a MetaBase.bin file found in my windows\system\inetsrv directory and saw the same wrong path information. To fix my install I took the brute force method and verified the registry setting for the path and then uninstalled/reinstalled PWS. Everything is fine now, and the .bin file shows the proper path. "Dirk Maetens" <dirk.maetens@tvd.be> wrote in message news:39524BB7.5F24B689@tvd.be... > Thanks to Ahmed for his speedy reply, but ... it did not answer the question. > His reply is correct, but IMHO has nothing to do with registry entries > for installing PHP4 as an ISAPI Filter in PWS/IIS4 under win98. > So the question remains... Anybody ? > > Ahmed Aslam wrote: > > > Dirk, > > Here are the instructions for setting the registry entries: > > HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/W3Svc/Parameters/Script > > Map > > 1.) Go to the edit menu and select: New->String Value > > 2.) Type in the EXTENSION you wish to use for your php scripts '.php3' > > 3.) Double click on the new string value and enter the path to php.exe in > > the > > value data field. example:'c:\php3\php.exe %s %s'. The '%s %s' is VERY > > important, you musnt leave this out. PHP will not work without it. > > 4.) Repeat these steps for each extension you wish to associate with PHP. > > .php3 and .phtml are the most common. > > > > To associate 'php.exe' with .php3 .phtml files, complete the following: > > 1.) Open the HKEY_CLASSES_ROOT tree > > 2.) Go to the edit menu and select: New->Key > > 3.) Name the key the extension you wish to use to associate php files with: > > '.php3' > > 4.) Highlight the new key and in the right pane, double-click the default > > value > > and enter 'phpfile' > > 5.) Repeat these steps for each extension you wish to associate with php. > > 6.) Go to the edit menu and select: New->Key > > 7.) Name the key 'phpfile' > > 8.) Highlight the key 'phpfile' and in the right pane, double-click the > > default > > value and enter 'PHP Script' > > 9.) Now create a new key under 'phpfile' and name it 'Shell' > > 10.) Now create a new key under 'Shell' and name it 'open' > > 11.) Now create a new key under 'open' and name it 'command' > > 12.) Double click the default value for the key 'command' and enter: > > 'c:\path-to-php-dir\php.exe -q %1' > > 13.) Exit Regedit > > > > Ahmed Aslam > > DAI Ltd, Milan Court, Europa Way, Bird Hall Lane > > Cheadle Heath, Stockport, SK3 0WZ, UK > > Tel : +44 (0)161 374 6029 [Fax 6100] > > Web: http://www.dai.ltd.uk/ > > > > -----Original Message----- > > From: Dirk Maetens [mailto:dirk.maetens@tvd.be] > > Sent: 22 June 2000 15:49 > > To: php-windows@lists.php.net > > Subject: [PHP-WINDOWS] PHP4 as ISAPI Filter on Win98 > > > > Hello *, > > > > According to the installation notes that come with PHP4.0.0-win32 it is > > possible to install PHP as a module in IIS 4.0: > > > > <snip> > > > > - Install the php.ini file and the DLLs as mentioned above. > > - Start the Microsoft Management Console (may appear as > > 'Internet Service Manager'). > > - Under 'ISAPI Filters', add a new ISAPI filter. Use 'PHP' as the > > filter name, > > and supply a path to the php4isapi.dll that is included in the > > distribution. > > - Under 'Home Directory', click on the 'Configuration' button. Add a > > new entry > > to the Application Mappings; Use the path the php4isapi.dll as the > > Executable, > > supply .php as the extension, leave 'Method exclusions', blank, and > > check > > the Script engine checkbox. > > - Stop IIS completely (you would have to stop the IIS Administration > > service for > > that - stopping it through the Management Console isn't good enough; > > You can > > do it by typing 'net stop iisadmin' on a command prompt). > > - Start IIS again (you can do it by typing 'net start w3svc' on a > > command prompt). > > - Put a .php file under your Web server's document root and check if it > > works! > > > > </snip> > > > > Trying to get this to work on win98/PWS (which is after all a > > scaled-down IIS), > > will demand some registry work. Since win98 doesn't have the Management > > Console thingy, I was wondering whether someone would be so kind to post > > > > a snapshot of the relevant registry entries ? In return I will be glad > > to write a > > 'php_isap_iis_reg.inf' file to put in the win32 distribution... > > if it is at all possible to make it work that is. > > > > TIA ! > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > > For additional commands, e-mail: php-windows-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#666) next »