following minor discussion with Nuno and a lot of fiddling around here..

Not being an Apache expert, I'm failing to understand why the apache2handler
will only load php5apache2.dll (along with _all_ its friends, including
php.ini) if it's in the apache\bin dir (directly, and don't mess with it!).

I've had it running with a full path, but Nuno's right - it ignores the .ini
file everywhere else when loaded as a SAPI module, so you either need to
install it in apache\bin or else set the path for the .ini (or put the .ini
in a system path).

>
>
>
> > > I have no clue why Nuno reports that it does not work for PHP 5.
> Probably
> > > the clue's in 'set PATH'.  There's no reason to set PATH unless you're
> doing
> > > something very strange with PHP.  I don't have any PHP-related
> environmental
> > > variables set.  The php-specific shared libraries (e.g.
> php_mysqli.dll)
> are
> > > in the same directory as the executable OR below it in a dir specified
> in
> > > php.ini, in 8 cases. I also have a php5 executable and php5ts.dll
> running as
> > > part of cygwin/bin - that's number 9.
> > >
> > > I have both PHP 4 and 5 versions of cgi running with Apache (switch
> between
> > > them depending on what I'm doing), with PHP-GTK, as cli and
> as testbeds.
> No
> > > conflicts.
> >
> > This means that if we suggest people to replicate the PHP 5 package
> > structure with PHP 4 (move the contents of the dlls folder and the sapi
> > folder into the root PHP folder), and place php.ini there, then that
> > should work without and special PATH settings either for PHP 4 or PHP 5.
> > I wonder why this is not working for Nuno, it is/was hard to beleive...
>
>
> Clarification: I have the PHP dir in the path, so that I can use the cli
> version.
>
> Steph is using the CGI version, and I have problems with the
> apache 2 module
> (very different!). I need to copy the php.ini file to the windows dir,
> otherwise it is not parsed.
>
> And I also need to copy the libmysql.dll to the system folder in order to
> have the mysql extension working.
>
> Steph, cam you check if you get these problems, too?
>
> Thanks,
> Nuno

Reply via email to