Home > Article > Backend Development > Install php7 from source code
This article mainly introduces the source code installation of php7, which has certain reference value. Now I share it with everyone. Friends in need can refer to it
Click download to download the latest version of php
Unzip
##tar -vjxf php-7.2.5.tar.bz2
./configure --prefix=yourpath
yum install gcc
, if it works Seeing the php extension indicates that the installation is successful
4. Some pitfalls you may encounter
Copy the php.ini-development of the source code directory to yourpath/etc
Then rename php.ini-development to php.ini
So put php.ini Go to yourpath/lib
5. Install openssl for php through phpize without recompiling php
Installation path:
php.ini path:
Run phpize
If Cannot find appears config.m4. If an error is reported,
Execute installation
make && make install
##After the installation is complete, you will be prompted to generate it in a certain directory. so file, my generation location is
Open php.ini and add the following two lines
Download composer.phar to In the project
Redis source code analysis
The above is the detailed content of Install php7 from source code. For more information, please follow other related articles on the PHP Chinese website!