Ubuntu 13.10安裝Drupal 8筆記
Ubuntu 13.10 Server
php -v PHP 5.5.3-1ubuntu2.2
/etc/apache2/conf-enabled/virtual.conf
<VirtualHost i7.mysite.com.tw>
ServerAdmin ts@mysite.com.tw
ServerName i7.mysite.com.tw
ServerAlias i7.mysite.com.tw
# Indexes + Directory Root.
DocumentRoot /home/liaozi/i7
<Directory /home/liaozi/i7/>
DirectoryIndex index.php
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# Logfiles
ErrorLog /var/log/apache2/mysite-error.log
CustomLog /var/log/apache2/mysite-access.log common
</VirtualHost>
# 懶惰用這種方式把drupal會用到的套件先找齊
sudo apt-get install drupal7
# 用drush的方式安裝drupal8,必需要補的套件 PS.目前不適合用 drush
sudo apt-get install php5-json
# 安裝中文語系必用補上此套件
sudo aptitude install php5-curl
mkdir -p sites/default/files/translations
Apache2有大改版! conf 檔必需照上面的方式寫
可以比對下面之前在Ubuntu 12.04的寫法
<VirtualHost *:80>
DocumentRoot "/var/www/mysite/i7"
ServerName i7.mysite.com.tw
<Directory "/var/www/mysite/i7">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>
</VirtualHost>
Drupal8 :
01.語系安裝更容易
02.modules 及 themes 改為根目錄 (原本Drupal 為 sites/all/ )
03.Apache不用設定RewriteEngine,也不用設定再 clean URLs
04.內建Views .... 待續
php -v PHP 5.5.3-1ubuntu2.2
/etc/apache2/conf-enabled/virtual.conf
<VirtualHost i7.mysite.com.tw>
ServerAdmin ts@mysite.com.tw
ServerName i7.mysite.com.tw
ServerAlias i7.mysite.com.tw
# Indexes + Directory Root.
DocumentRoot /home/liaozi/i7
<Directory /home/liaozi/i7/>
DirectoryIndex index.php
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# Logfiles
ErrorLog /var/log/apache2/mysite-error.log
CustomLog /var/log/apache2/mysite-access.log common
</VirtualHost>
# 懶惰用這種方式把drupal會用到的套件先找齊
sudo apt-get install drupal7
# 用drush的方式安裝drupal8,必需要補的套件 PS.目前不適合用 drush
sudo apt-get install php5-json
# 安裝中文語系必用補上此套件
sudo aptitude install php5-curl
mkdir -p sites/default/files/translations
筆記
Ubuntu 13.10:Apache2有大改版! conf 檔必需照上面的方式寫
可以比對下面之前在Ubuntu 12.04的寫法
<VirtualHost *:80>
DocumentRoot "/var/www/mysite/i7"
ServerName i7.mysite.com.tw
<Directory "/var/www/mysite/i7">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory>
</VirtualHost>
Drupal8 :
01.語系安裝更容易
02.modules 及 themes 改為根目錄 (原本Drupal 為 sites/all/ )
03.Apache不用設定RewriteEngine,也不用設定再 clean URLs
04.內建Views .... 待續
留言