Detailed explanation of manual installation of PHP5.6.33 on centos7

小云云
Release: 2023-03-21 18:38:02
Original
4008 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template