> - the current Windows docs suggest users to copy files to the windows > and system32 folders > > - people (Daniel Convissor) report that it is possible to not do > this, but set PATH to include the PHP folder and the dlls > folder below the PHP folder (for PHP 4) + set PHPRC > > - others (Nuno Lopes) report that it does not work for PHP 5
My setups (8 of the 9 I have here): php.exe (whichever one I'm using is named 'php.exe' in all cases, whether cli or cgi) is in the same directory as php.ini, php*ts.dll, and the external shared libraries (e.g. libmysqli.dll) needed to support whatever extensions that particular version of php needs. For users it would probably be better to put those kinds of .dlls into system32 or an equivalent path, but I find it harder to keep track of them that way. 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. > > - the PHP 5 package suspiciosly looks like if the dlls and sapi > folder was merged with the root folder just to support Daniel's > suggestion, or enable setup with even less configuration > (no PATH and no PHPRC setting required) <- just a hiphotesis > > Now we need someone with decent Windows PHP knowledge to help us clean > up the installation part. What do we need? > > - Simple manual installation instructions for PHP 4 on Windows > - Simple manual installation instructions for PHP 5 on Windows > - Instructions on how can you run them paralelly (both server > independent - ie. CLI, and server dependent - ie. Apache, etc). > > Wez said it is not required to copy files around neither for PHP 4 nor > for PHP5. Now we need exact instructions. > > Thanks, > Gabor Hojtsy - PHP Documentation Editor