Re: PHP 5 Beta 1 and IIS
| From: | Frank M. Kromann | Date: | Sun, 06 Jul 2003 15:21:53 +0000 |
| Subject: | Re: PHP 5 Beta 1 and IIS | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-20703@lists.php.net to get a copy of this message | ||
Hi Den,
I have two directories on my system: c:\php4 and c:\php5. In each of these
directories I have all files needed for each version.
php.exe (my cli version)
php-cgi.exe
php4ts.dll
php4isapi.dll
..
all extensions
I then have a directory with all my PHP scripts. Each project in a sub
folder. I have created 3 different virtual directories, all pointing to
the same root; php4, php5 and php5isapi. It is not possible to use both
php4isapi and php5isapi.
For each of these virtual directories I have chreated script mappings on
the .php extension pointing to c:\php4\php-cgi.exe, c:\php5\php-cgi.exe
and c:\php5\php4isapi.dll.
Now I can access the same script vith different PHP versions by changing
my url.
localhost/php4/phpinfo.php
localhost/php5/phpinfo.php
localhost/php5isapi/phpinfo.php
I do not have any files copied to \eindows or \windows\system32 (I using
XP Pro) and all my installations work fine.
- Frank
> Thank you Frank!
> It works well :
> - libxml2.dll and iconv.dll either in the same folder where php.exe is
->
> CGI
> - libxml2.dll and iconv.dll (+ php4ts.dll) either in
%systemdir%\system32 ->
> ISAPI
>
> however I'd like to know how you can keep everything in c\php5 ? Is it
only
> for CGI configuration ? Do you use the "-c path/file" of php.exe (can't
make
> it work) ?
> Is it possible for the ISAPI config too? as "php4ts.dll" is not named
> "php5ts.dll", I can't have PHP4 and PHP5 at the same time?
>
> Thanks for your answer,
>
> den
>
> "Frank M. Kromann" <frank@kromann.info> a écrit dans le message de
> news:10574656323000000@9866357972520000.9866341568840000...
> > Hi Den,
> >
> > PHP5 needs libxml2.dll and iconv.dll either in the same folder where
> > php.exe (CGI version) is or in %systemdir%\system32.
> >
> > I prefer to keep everything in c:\php5. That makes it possible to run
> > different versions of PHP on the same system.
> >
> > - Frank
> >
> > > Hello there!
> > >
> > > Just wanted to know if anyone succeeded in installing the latest PHP
5
> > > Beta 1 under IIS (5 or 6)
> > >
> > > I tried :
> > > - ISAPI configuration : the loading of "php4isapi.dll" by W3SVC
failed
> > > (I put php4ts.dll and php.ini in %systemdir%)
> > > - CGI/EXE configuration : I get the following (I put
> > > "cgi.force_redirect = 0" in php.ini) :
> > > >> CGI Error
> > > >> The specified CGI application misbehaved by not returning
> > > >> a complete set of HTTP headers. The headers it did return are:
> > >
> > > Any idea?
> > > PHP5 "structure" seems to be equivalent to the one of PHP4 (DLLs
are
> > > always named php4___) so I'm wondering if there's a bug in IIS
support
> > > rather than a new way of installing it compared to PHP4.
> > >
> > > Thanks in advance for your suggestions
> > >
> > > den
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>