'How to compile & install official PHP-8 with ZTS? (Ubuntu)
As title says, how to compile and install official PHP-8 on linux/ubuntu with Zend-Thread-Safe support? I've seen using 3rd party repositories, but wanted the steps for official PHP-8.
Solution 1:[1]
git clone https://github.com/php/php-src.git
cd php-src
./buildconf
./configure --enable-zts
make -j4
make install
Solution 2:[2]
Aside of using ondrej repository (as seen on many sites) I've found a way to install PHP-8 from official php.net packages. I've followed this tutorial , however, just changed php7 references with php8 and it succeeded.
However, during installation I needed to do:
- apt-get install sqlite3 re2c
- apt-get install sqlite3 libsqlite3-dev
- apt-get install libonig-dev
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | DividerBeam |
| Solution 2 | T.Todua |
