카테고리 없음

drupal 간단 설치하기 (ubuntu 18.04)

개발자_이훈규 2018. 8. 24. 23:39



이 주소대로 그대로 따라하고

https://linuxconfig.org/install-drupal-on-ubuntu-18-04-bionic-beaver-linux


이 주소대로 php 7.2를 php 7.1로 낮춘다.

https://serverfault.com/questions/895746/switch-from-php-7-2-to-7-1-on-ubuntu-16-04-apache



php 7.2에서는 each() 가 depricate되어서 drupal에서 오동작을 일으킨다.

(Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in Drupal\Core\Extension\ThemeInstaller->install() (line 124 of core/lib/Drupal/Core/Extension/ThemeInstaller.php).)

sudo add-apt-repository ppa:ondrej/php


sudo apt-get update 


sudo apt-get install php7.1 


sudo apt-get install php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-

mysql php7.1-mbstring php7.1-mcrypt php7.1-zip php7.1-fpm 


sudo a2dismod php7.2 


sudo a2enmod php7.1 


sudo service apache2 restart


설치하는데까지 30분도 안걸린것 같다.



# The GD library for PHP is missing or outdated.

본인이 설치한 php version과 동일한 것으로 설치한다.

전 php 7.1이니깐 

$ sudo apt-get install php7.1-gd


The website encountered an unexpected error. Please try again later.


drupal requires you to enable the php extensions in the following list (dom, ,,,)

php extensions 설치

sudo apt-get install php7.1-dom



php7.1-gd, php7.1-dom을 설치하고 나서 서버에서 $sudo service apache2 restart를 하면 웹사이트에 접속이 안되던 것도 사라진다.