Howto setup a individual PHP version with WWebserver?

Manuals and useful tips how to configurate WWebserver
Post Reply
User avatar
mwiede
Site Admin
Posts: 34
Joined: Fri Oct 27, 2017 12:56 pm
Location: Germany
Contact:

Howto setup a individual PHP version with WWebserver?

Post by mwiede » Wed Mar 15, 2023 5:25 pm

Per default WWebserver comes with the buildin PHP version.
This is the fastest version of PHP!

Dont try to overwrite with other PHP DLL's in WWebserver installation directory.
That will cause errors, because of the DLL's are linked to WWebserver.

To setup another PHP version you should download the non thread safe Windows binaries from here:
https://windows.php.net/download

Install it to a separate directory. Dont install it to the WWebserver directory!

Change the file cfg/cgi.txt in WWebserver directory.

Uncomment this line:

Code: Select all

# .php .php4 .php3;PHPBuildIn
Insert new line:

Code: Select all

.php;PHPFCGI "C:\php-8.2.4-nts-Win32-vs16-x64\php-cgi.exe"
Replace the path with the new PHP version you installed into the separate directory.

After that restart WWebserver.

You can also give a individual php.ini file argument in command line: php-cgi.exe -c <Path to ini file>

Post Reply