Install PHP on Alibaba Cloud Server Centos 7

I configured php myself for various blogs written by others on the Internet

The installation started with the compressed package result php -version no display

Then I found various information and asked many people to configure the environment one by one, but although the installation was successful, I still could not view the version

In the end, I configured it through yum. With the previous configuration, the domain name configuration was quickly completed in about three or five minutes. I will post the instructions here to share with everyone.

# yum install epel- release
# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

# yum list --enablerepo=remi --enablerepo=remi-php56 | grep php


# yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof

php -version

php5. 6.3

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324889902&siteId=291194637
Recommended