Home  >  Article  >  Backend Development  >  Detailed explanation of manual installation of PHP5.6.33 on centos7

Detailed explanation of manual installation of PHP5.6.33 on centos7

小云云
小云云Original
2018-03-20 11:35:403996browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn