LoginSignup
0
0

More than 5 years have passed since last update.

drush でDrupal8をインストールするとメモリ不足になる対処法

Last updated at Posted at 2016-11-01

10月中旬より drush で CentOS7.2 上に Drupal8 をインストールしようとするとメモリ不足のエラーメッセージが表示されてインストールすることが出来なくなりました。
Ubuntu14.03 / Ubuntu 16.03では問題ありませんでした。
その後、別の問題も併発してしばらくインストール自体が手元のどのOSでも出来なくなりましたが、そちらのバグは報告して無事修正されています。

# /usr/local/bin/drush  -y si\
  --db-url=mysql://root@localhost/drupal\
  --locale=ja\
  --account-name='terao'\
  --account-pass='xxxxxxxx'\
  --account-mail='terao@********.info'\
  --site-name='drupal8 on CentOS7.2'
(略)
You are about to create a /var/www/html/sites/default/settings.php file and CREATE the 'drupal' database. Do you want to continue? (y/n): y
Starting Drupal installation. This takes a while. Consider using the        [ok]
--notify global option.
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4104 bytes) in /var/www/html/core/lib/Drupal/Core/Config/TypedConfigManager.php on line 272

メモリ不足と言うことなので、/etc/php.iniのメモリ上限を調べてみると、128MBです。これだけ有れば十分だろうと思いますが、しょうが無く192MBまで上げてみると無事インストールできます。
とはいえ、192MBって食い過ぎじゃ無いか?

396c396
< memory_limit = 128M
---
> memory_limit = 192M
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