LoginSignup
2
2

More than 5 years have passed since last update.

Mac への wordpress install 練習

Posted at

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/

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2