ubuntu 14.04 LTS drush 神速安裝 drupal7
參加完 2015 drupalcamp 社群大會後意猶未盡,就來給他神速安裝個 drupal7
由於 drupal 與 ubuntu 整合密切,也是社群朋友的最愛,那麼這次依然選用 ubuntu 14.04 LTS做為 OS 安裝,有別於日常業務用的 CentOS 6/7,費話不多說安裝如下:
apt-get update
apt-get upgrade
apt-get install drush php-console-table
pear channel-discover pear.drush.org
pear install drush/drush
drush version
cd /var/www/html/
drush dl drupal
mv /var/www/html/drupal-7.xx /var/www/html/drupal
cd /drupal
drush site-install standard --site-name='anthony' --clean-url=0 --account-pass='password' --db-url=mysql://root:password@localhost/drupal
安裝簡潔網址
a2enmod rewrite
vi /etc/apache2/apache2.conf
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/html>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
AllowOverride All
</Directory>
servcie apache2 restart
Drupal/Configuration/Clean URLs 點選啟用
中文化
Drupal/Modules/Locale 啟用
Drupal/Configuration/Languages/Add language Chinese,Traditional DEFAULT on ENABLED on
Drupal/Configuration/Translate interface/IMPORT/Language file(drupal-7.39.zh-hant.po)
完工,幾行指令不用10分鐘,就儼然成形
最後補上當天活動的紀念品,drupal3隨身碟
由於 drupal 與 ubuntu 整合密切,也是社群朋友的最愛,那麼這次依然選用 ubuntu 14.04 LTS做為 OS 安裝,有別於日常業務用的 CentOS 6/7,費話不多說安裝如下:
apt-get update
apt-get upgrade
apt-get install drush php-console-table
pear channel-discover pear.drush.org
pear install drush/drush
drush version
cd /var/www/html/
drush dl drupal
mv /var/www/html/drupal-7.xx /var/www/html/drupal
cd /drupal
drush site-install standard --site-name='anthony' --clean-url=0 --account-pass='password' --db-url=mysql://root:password@localhost/drupal
安裝簡潔網址
a2enmod rewrite
vi /etc/apache2/apache2.conf
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/html>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
AllowOverride All
</Directory>
servcie apache2 restart
Drupal/Configuration/Clean URLs 點選啟用
中文化
Drupal/Modules/Locale 啟用
Drupal/Configuration/Languages/Add language Chinese,Traditional DEFAULT on ENABLED on
Drupal/Configuration/Translate interface/IMPORT/Language file(drupal-7.39.zh-hant.po)
完工,幾行指令不用10分鐘,就儼然成形
最後補上當天活動的紀念品,drupal3隨身碟
留言
張貼留言