DEV Community

loading...
Cover image for PHP 8, Windows and extensions

PHP 8, Windows and extensions

Jorge Castro
You are free to believe in whatever you want to, me too. So, stop preaching your religion, politics, or belief. Do you have facts? Then I will listen. Do you have a personal belief? Sorry but no.
・2 min read

Ok, it will be tricky. It is for PHP 8 and Windows (64bits ts and nts) but it could include 32bits.

If you are using Apache, then you must use the version TS. Otherwise, if you are using IIS, then you must use the version NTS. And for the note, you must use this version of apache:

https://www.apachelounge.com/download/

What if you are using a ready-made server? (WAMP, XAMP, etc.)

If you are using the PHP 8 version then:

  • Find where is your php.ini file. How? phpinfo.php shows where is the php.ini file.
  • And find where is your ext folder (usually inside to where is the php.ini file.
  • Copy the Dll inside this folder.
  • Edit the php.ini file according to the extension that you want to install.

If the file is called php_apcu.dll, then add the next line

extension=apcu
Enter fullscreen mode Exit fullscreen mode

Since PECL is as good as dead, then it's harder to find some extensions on the net. However, some releases are still in PECL but only a few ones.

Which extension you could download? You must pick whatever you want to. Some of them are redundant. For example, Memcache and Redis, but they are the most useful ones (excluding the libraries that come built-in in PHP).

Memcache

https://github.com/nono303/PHP-memcache-dll/blob/master/vs16/x64/

Sql Server

https://github.com/microsoft/msphpsql/releases/tag/v5.9.0-beta2

APCU

https://ci.appveyor.com/project/krakjoe/apcu

(and download the artifact)

Redis

https://github.com/phpredis/phpredis/issues/1885

Mongodb

https://pecl.php.net/package/mongodb/1.9.0

XDebug

https://pecl.php.net/package/xdebug/3.0.2/windows

Discussion (1)

Collapse
vince_amstz profile image
Vincent Amstoutz

Good article but I think some links are not very good like the ACPU link

Forem Open with the Forem app