0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

magento2 apache php mysql fast setup

Last updated at Posted at 2017-12-13

1.すべてのパッケージインストールする。
※一括インストールOK
$ sudo yum -y install httpd24
$ sudo yum -y install php70
$ sudo yum -y install php70-mbsing
$ sudo yum -y install php70-pdo
$ sudo yum -y install php70-mysqlnd
$ sudo yum -y install php70-intl
$ sudo yum -y install php70-zip
$ sudo yum install mysql57 mysql57-server

2.httpd mysqld 起動確認
$ sudo service httpd start
$ sudo service mysqld start

3.apache配置
①etc/httpd/conf/httpd.confを編集し、以下の2行を追加
AddType application/x-httpd-php .html .htm .php .phtml
AddType application/x-htlstpd-php-source .html .htm .phps
②AllowOverride all編集

Options Indexes FollowSymLinks
AllowOverride all
Require all granted

4.mysql配置
①rootユーザパスワード修正
$ sudo service mysqld stop
$ sudo mysqld_safe --skip-grant-tables
ターミナル新規再開、rootユーザで登録
mysql>update mysql.user set authentication_string=password('root') where user='root';
$ sudo service mysqld restart
database 追加
mysql> create database magento;
②PHPにmysqlサポート追加
/etc/php.ini に extension=msql.so 追加

5.magentoインストール
cd /tmp/
$ wget https://github.com/magento/magento2/archive/2.0.7.tar.gz
$ tar xzvf 2.0.7.tar.gz
$ sudo mv magento2-2.0.7 /var/www/magento2/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?