Mac上で手動でwordpressインストールする、
webサーバはphpのサーバ使用する想定。
準備
brew install mysql
mysql.server start
練習開始
$ sudo cp /etc/php.ini /etc/php.ini.org
$ sudo vim /etc/php.ini
error_log = /var/log/php_errors.log
mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
mbstring.http_input = auto
mbstring.detect_order = auto
expose_php = Off
date.timezone = Asia/Tokyo
mysql -uroot
create user 'ユーザ名'@'localhost' identified by 'パスワード';
create database データベース名;
grant all privileges on データベース名.* to 'ユーザ名'@'localhost';
mysql プロンプト上で
$ status;
UNIX socket: /tmp/mysql.sock
これを記録し、反映。
php.ini
mysql.default_socket = /tmp/mysql.sock
wget http://ja.wordpress.org/latest-ja.tar.gz
tar zxvf latest-ja.tar.gz -C ./wptest/wordpress/
php -S localhost:9393
これで
http://localhost/ でインストール画面が起動した
テーマの作り方参考
固定ページとブログページ分けたい。
http://wp-principle.net/make-theme/
http://webdesignrecipes.com/wordpress-corporate-website/