Home > Article > Backend Development > Detailed explanation of manual installation of PHP5.6.33 on centos7
This article mainly shares with you the detailed explanation of manual installation of PHP5.6.33 in centos7. I hope it can help you.
1, download php-5.6.33.tar.bz2
2 from PHP official website, unzip it to /usr/local/
3, enter the directory and execute :./configure
Encountered error: checking libxml2 install dir... no
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
Solution: yum install libxml2-devel
4, ./configure
5, make&&make install
6, Set environment variables vim /etc/profile
Join
PATH=$PATH:
/usr/local/php/bin
export
PATH
7, execute source /etc/profile
Related recommendations:
CentOS installation PHP5.6 instance
The above is the detailed content of Detailed explanation of manual installation of PHP5.6.33 on centos7. For more information, please follow other related articles on the PHP Chinese website!