- 在 Debian 上安裝 wordpress 的步驟
- (1) 安裝 wordpress 套件
~$ sudo apt-get install mysql-server apache2 phpmyadmin wordpress wordpress-openid wordpress-l10n
- 參考 /usr/share/doc/wordpress/examples/setup-mysql 設定 MySQL
~$ sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress ${DNS_of_WORDPRESS}
- 參考 /usr/share/doc/wordpress/examples/apache.conf 設定 Apache
~$ cat > wordpress << EOF
<VirtualHost *:80>
VirtualDocumentRoot /usr/share/wordpress/
ServerName ${DNS_of_WORDPRESS}
ErrorLog /var/log/apache2/wp-error.log
TransferLog /var/log/apache2/wp-access.log
</VirtualHost>
EOF
~$ sudo mv wordpress /etc/apache2/sites-available/wordpress
~$ sudo a2ensite wordpress
~$ sudo apache2ctl restart
~$ sudo apache2ctl -S -t
- 參考 /usr/share/doc/wordpress/README.Debian 設定中文語系介面 - 編輯 /etc/wordpress/conf-${DNS_of_WORDPRESS}.php 加入
define ('WPLANG', 'zh_TW');