Centos7 Magento2 Apache2.4+Mysql5.7+php5.6环境配置教程
先安装httpd软件。
#: yum install httpd*
然后安装mysql最新版软件。
yum localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
yum install mysql-community-server
yum install mysql-community-devel
service mysqld start
service mysqld status
查看数据库生成的临时密码:
#: grep 'temporary password' /var/log/mysqld.log
测试数据库登陆:
mysql -uroot -pHgUTju92J/V1
可以正常登陆,然后可以修改密码,这里不再讲了。
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum install epel*
yum install ImageMagick
yum install ImageMagick-devel
yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-pecl-apcu php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-pdo php-pear php-fpm php-cli php-xml php-bcmath php-process php-gd php-common php-bcmath php-xml php-opcache php-intl php-opcache php--gd php-mysql php-mbstring php-mcrypt
wget 92cto.com/magento2.zip
unzip magento2.zip
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl restart httpd
systemctl restart httpd
注意程序要带数据的程序,打开后,检查程序的参数是否符合安装要求。