2017-07-20
想在 CentOS 7.3 安裝 PHP 7.1
但是 yum 測試發現只支援到 5.4.x
如果安裝 EPEL,PHP yum 也沒有 7.x 可以安裝
http://download.fedoraproject.org/pub/epel/
http://download.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/7/x86_64/e/epel-release-7-10.noarch.rpm
http://mirror01.idc.hinet.net/EPEL/7/x86_64/e/epel-release-7-10.noarch.rpm
wget http://download.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh epel-release-latest-7.noarch.rpm
*****
Google CentOS 7.3 PHP "7.1" MySQL 發現這篇
How to install Apache, PHP 7.1 and MySQL on CentOS 7.3 (LAMP)
https://www.howtoforge.com/tutorial/centos-lamp-server-apache-mysql-php/
重點摘要如下
yum -y install epel-release yum -y install mariadb-server mariadb httpd rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum -y install yum-utils yum -y update (非必須,會更新目前使用所有套件) yum -y install php yum-config-manager --enable remi-php71 yum -y install php php-opcache systemctl start mariadb.service systemctl enable mariadb.service mysql_secure_installation systemctl start httpd.service systemctl enable httpd.service firewall-cmd --permanent --zone=public --add-service=http firewall-cmd --permanent --zone=public --add-service=https firewall-cmd --reload echo "<?php phpinfo(); ?>" > /var/www/html/info.php firefox http://localhost/info.php & yum -y install phpMyAdmin /etc/httpd/conf.d/phpMyAdmin.conf firefox http://localhost/phpMyAdmin & |
(完)
沒有留言:
張貼留言