(サーバー契約直後のみ) 初めてSSHログインしたとき、Shellを変更しないといけない。
~> chsh Changing login shell for hogehoge. Password: Enter the new value, or press return for the default. Login Shell [/bin/rbash]: /bin/bash Shell changed.
で、再ログイン。
Wordpressインストール
[SSHでの作業]
cd ~/public_html/[your-domain] wget http://ja.wordpress.org/wordpress-2.9.1-ja.zip unzip wordpress-2.9.1-ja.zip mv wordpress/* ./ rm -rf wordpress rm -rf wordpress-2.9.1-ja.zipcp wp-config-sample.php wp-config.php (データベース関連を変更)vi .htaccess (ここからを追記) <Files ~ "^(media-upload|async-upload|update|update-core|update|plugins|plugin-install|plugin-editor|theme|theme-install|theme-editor)\.php$"> AddHandler application/x-httpd-phpcgi .php </Files> (ここまでを追記)chmod 666 .htaccessvi wp-admin/.htaccess (ここからを追記) <Files ~ "^(admin)\.php$"> AddHandler application/x-httpd-phpcgi .php </Files> (ここまでを追記)
(option)Thematicテーマをインストール
cd ~/public_html/[your-domain]/wp-content/themes/ wget http://wordpress.org/extend/themes/download/thematic.0.9.5.1.zip unzip thematic.0.9.5.1.zip rm thematic.0.9.5.1.zip cp -r thematic/thematicsamplechildtheme ./[your-theme-name]
→管理画面 - テーマ で、[your-theme-name]テーマを選択
(option)良く使うプラグインをインストール
cd ~/public_html/[your-domain]/wp-content/plugins/ wget http://downloads.wordpress.org/plugin/wp-db-backup.2.2.2.zip wget http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip wget http://downloads.wordpress.org/plugin/google-sitemap-generator.3.2.2.zip wget http://downloads.wordpress.org/plugin/stats.1.6.1.zip wget http://downloads.wordpress.org/plugin/google-analytics-for-wordpress.3.2.5.zip wget http://downloads.wordpress.org/plugin/contact-form-7.2.1.1.zip wget http://downloads.wordpress.org/plugin/really-simple-captcha.1.1.zip wget http://downloads.wordpress.org/plugin/wp-pagenavi.2.50.zip wget http://downloads.wordpress.org/plugin/breadcrumbs.0.8.5.zip wget http://downloads.wordpress.org/plugin/vipers-video-quicktags.zip wget http://downloads.wordpress.org/plugin/add-to-any.0.9.9.4.7.zip wget http://downloads.wordpress.org/plugin/nextgen-gallery.zip find . -name '*.zip' -exec unzip {} \; rm *.zip# for google-sitemap-generator cd ~/public_html/[your-domain] touch sitemap.xml touch sitemap.xml.gz chmod 666 sitemap.xml*
→管理画面 - プラグイン で、有効化 (Akismet, WP Multibyte Patchも。) →各プラグインで必要な設定を行う。