blog作成してみた
wordpressのubuntu12.04の設定方法は
http://www.nekotricolor.com/blog/2013/04/05/934/
を参考にしました。
まずはMySQLのユーザとデータベース作成
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 42 Server version: 5.5.29-0ubuntu0.12.04.2 (Ubuntu) Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> CREATE DATABASE wp; Query OK, 1 row affected (0.00 sec) mysql> GRANT ALL PRIVILEGES ON wp.* TO "wpadmin"@"localhost" -> IDENTIFIED BY "password"; Query OK, 0 rows affected (0.01 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye |
次に、WordPressのダウンロードと設定
1 2 3 4 5 6 |
$ cd /var/www/html $ wget http://ja.wordpress.org/wordpress-3.8-ja.zip $ unzip wordpress-3.8-ja.zip $ chown www-data:www-data wordpress $ cd wordpress $ cp wp-config-sample.php wp-config.php |
wp-config.phpの 設定を変更
1 2 3 4 5 6 7 8 |
/** WordPress のためのデータベース名 */ define('DB_NAME', 'database_name_here'); /** MySQL データベースのユーザー名 */ define('DB_USER', 'username_here'); /** MySQL データベースのパスワード */ define('DB_PASSWORD', 'password_here'); |
以下の部分はこちらから作成
1 2 3 4 5 6 7 8 |
define('AUTH_KEY', 'put your unique phrase here'); define('SECURE_AUTH_KEY', 'put your unique phrase here'); define('LOGGED_IN_KEY', 'put your unique phrase here'); define('NONCE_KEY', 'put your unique phrase here'); define('AUTH_SALT', 'put your unique phrase here'); define('SECURE_AUTH_SALT', 'put your unique phrase here'); define('LOGGED_IN_SALT', 'put your unique phrase here'); define('NONCE_SALT', 'put your unique phrase here'); |
1 |
define('FORCE_SSL_ADMIN', true); |
ログインや管理ページを SSLにするため、上記も追加
その後、wp-admin/install.phpにアクセスしてインストール
管理画面に入り、プラグインの追加から、Crayon Syntax Highlighterをインストール