SlideShare a Scribd company logo
Mac OS X Lion で作る WordPress local 環境
• 
     w 
     w 

• 

• 

• 

• 
           2
• 


     w 

     w 

     w 


           3
• 
     w 

     w 

     w 




           4
• 

• 
     w 


     w 


           5
• 
• 
     w 

•  $ mysql



     v 

              6
• 

• 


     7
• 




     8
• 
• 
• 
• 
• 
✴ 
     9
• 
     http://dev.mysql.com/downloads/mysql/5.5.html
     w 




                                                     10
• 
• 




     11
• 
     w 




           12
• 




     13
 
$ /usr/local/mysql/bin/mysql -u root"
mysql> SET PASSWORD FOR root@’localhost’ = PASSWORD(‘   ’);"
mysql> SET PASSWORD FOR root@’127.0.0.1’ = PASSWORD(‘   ’);"
mysql> SET PASSWORD FOR root@’::1’      = PASSWORD(‘    ’);"
(      )"

l *.local                      	




                                                         14
 
u 

(   )"
mysql> DELETE FROM mysql.user WHERE User = '';"
mysql> FLUSH PRIVILEGES;"
mysql> exit"




                                                  15
• 
     u 

     $ sudo su -"
     Password:
     # cat > .my.cnf"
     [mysql]"
     user = root"
     password =
     ^D
     # chmod 600 .my.cnf"
                            16
 
$ sudo cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf"

    [mysqld]	
    character-set-server = utf8	
    skip-character-set-client-handshake	
    [mysqldump]	
    character-set-server = utf8	
    [mysql]	
    default-character-set = utf8	


 

                                                                 17
• 
     w 
     w 
     w 




           18
1. httpd.conf                           "
 $ sudo chmod +w /etc/apache2/httpd.conf"

2. httpd.conf

 #LoadModule php5_module libexec/apache2/libphp5.so	

  
 u /etc/apache2/other/php5.conf
                                                       19
1. httpd.conf
     <Directory "/Library/WebServer/Documents">
 # AllowOverride controls what directives may be placed in .htaccess files.	
 # It can be "All", "None", or any combination of the keywords:	
 #    Options FileInfo AuthConfig Limit	
 #	
 AllowOverride AuthConfig FileInfo Limit




                                                                           20
1. /etc/apache2/users/FOO.conf
          FOO
 AllowOverride none

 # AllowOverride All

  



                                 21
1. /etc/apache2/httpd.conf


 #AddHandler cgi-script .cgi	

2. /etc/apache2/users/*.conf
 Options Indexes MultiViews ExecCGI FollowSymLinks	




                                                      22
• 
     $ sudo cp /etc/php.ini.default /etc/php.ini"
     $ sudo chmod +w /etc/php.ini"
        display_errors = On	
        post_max_size = 32M	
        default_charset = "utf-8"	
        upload_max_filesize = 32M	
        date.timezone = Asia/Tokyo	
        pdo_mysql.default_socket= /tmp/mysql.sock	
        mysql.default_socket = /tmp/mysql.sock	
        mysqli.default_socket = /tmp/mysql.sock	
        mbstring.language = Japanese	
        mbstring.internal_encoding = UTF-8	
        mbstring.http_input = pass	
        mbstring.http_output = pass	
        mbstring.encoding_translation = Off
 
 




    24
1.  http://www.phpmyadmin.net/


2.  /Library/WebServer/Documents
    phpmyadmin
 w 

3.  http://localhost/phpmyadmin/

 w                                25
 




    26
 

     


     




        27
• 
     w 
     w 




           28
 
     curl -O http://ja.wordpress.org/wordpress-3.2.1-ja.tar.gz"

  
     tar zxvf wordpress-3.2.1-ja.tar.gz -C ~/Sites

           /Library/WebServer/Documents "
3.  cd ~/Sites/ (   /Library/WebServer/Documents)"

4.  mv wordpress wp32"
5.  chmod o+w wp32"
6.  open http://localhost/~FOO/wp32/"
7.                "
                                                             29
30
31
• 

     u  http://ja.wordpress.org/releases/

     u  http://sourceforge.jp/projects/wpme/releases/




                                                         32
• 
     $ cd ~/Sites/wp32    /Library/WebServer/Documents/wp32 "

     $ sudo chown –R _www:_www . *"
     $ sudo chmod –R g+w . *"
• 
     define('FS_METHOD', 'direct');	

• 
     $ sudo dscl . -append /Groups/_www GroupMembership FOO
                      !
                                                                33
• 
     http://www.yuriko.net/arc/
     2009/06/29/200906-wordbench-slides/	




                                            34
• 
     http://blogs.msdn.com/b/web_/archive/
     2011/02/03/10124155.aspx	




                                             35

More Related Content

What's hot (19)

PDF
macOS アプリで Swift Package Manager を使ってみる #love_swift #hakataswift
Tomohiro Kumagai
 
PPTX
Nagios
Puneet Kumar
 
PDF
PHP Identity and Data Security
Jonathan LeBlanc
 
PPTX
Beyond Golden Containers: Complementing Docker with Puppet
lutter
 
PDF
Solaris 11 base box for Vagrant using Packer
Alan Chalmers
 
PDF
Plone Conference 2008 Lightning Talk Static Zope Rpx
Paris, France
 
PDF
MongoDB shell games: Here be dragons .. and JavaScript!
Stennie Steneker
 
PDF
Django osc2018-okinawa
Xoxzo Inc.
 
PDF
Islam House
Haris Padinharethil
 
PDF
Capistrano Rails
Александр Ежов
 
PDF
Complementing Docker with Puppet
Docker, Inc.
 
PPTX
A Brief Introduction to Writing and Understanding Puppet Modules
David Phillips
 
ODP
Redmine on amazon ec2
Ikuru Kanuma
 
DOCX
Velocibot idea 1
DamionVize
 
PDF
Memory Management in WordPress
Konstantin Kovshenin
 
PDF
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
SmartTools
 
PPTX
Comets notes
Ilija Dukovski
 
PDF
How to add user in system without useradd command
Akshay Ithape
 
PDF
mdpress(MarkDown Press)を使ったプレゼンテーション作成
達郎 植田
 
macOS アプリで Swift Package Manager を使ってみる #love_swift #hakataswift
Tomohiro Kumagai
 
Nagios
Puneet Kumar
 
PHP Identity and Data Security
Jonathan LeBlanc
 
Beyond Golden Containers: Complementing Docker with Puppet
lutter
 
Solaris 11 base box for Vagrant using Packer
Alan Chalmers
 
Plone Conference 2008 Lightning Talk Static Zope Rpx
Paris, France
 
MongoDB shell games: Here be dragons .. and JavaScript!
Stennie Steneker
 
Django osc2018-okinawa
Xoxzo Inc.
 
Islam House
Haris Padinharethil
 
Capistrano Rails
Александр Ежов
 
Complementing Docker with Puppet
Docker, Inc.
 
A Brief Introduction to Writing and Understanding Puppet Modules
David Phillips
 
Redmine on amazon ec2
Ikuru Kanuma
 
Velocibot idea 1
DamionVize
 
Memory Management in WordPress
Konstantin Kovshenin
 
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
SmartTools
 
Comets notes
Ilija Dukovski
 
How to add user in system without useradd command
Akshay Ithape
 
mdpress(MarkDown Press)を使ったプレゼンテーション作成
達郎 植田
 

Similar to Mac OS X Lion で作る WordPress local 環境 (20)

PPTX
Twas the night before Malware...
DoktorMandrake
 
PPTX
Virtualization and automation of library software/machines + Puppet
Omar Reygaert
 
PPTX
A 2-2 php on windows azure
GoAzure
 
PPTX
PHP on Windows Azure
Microsoft Openness Japan
 
PPTX
Installing odoo v8 from github
Antony Gitomeh
 
PDF
httpd — Apache Web Server
webhostingguy
 
PDF
Write php deploy everywhere tek11
Michelangelo van Dam
 
PDF
Go Web Development
Cheng-Yi Yu
 
KEY
Write php deploy everywhere
Michelangelo van Dam
 
PDF
Dev ninja -> vagrant + virtualbox + chef-solo + git + ec2
Yros
 
PDF
Docker, c'est bonheur !
Alexandre Salomé
 
PPTX
Fun with exploits old and new
Larry Cashdollar
 
PDF
Functional Hostnames and Why they are Bad
Puppet
 
PPTX
Efficient DBA: Gain Time by Reducing Command-Line Keystrokes
Seth Miller
 
PDF
20090514 Introducing Puppet To Sasag
garrett honeycutt
 
PPTX
20141011 mastering mysqlnd
do_aki
 
PDF
EC2
Igor Kapkov
 
PDF
Docker and friends at Linux Days 2014 in Prague
tomasbart
 
KEY
puppet @techlifecookpad
Naoya Nakazawa
 
PDF
Django로 만든 웹 애플리케이션 도커라이징하기 + 도커 컴포즈로 개발 환경 구축하기
raccoony
 
Twas the night before Malware...
DoktorMandrake
 
Virtualization and automation of library software/machines + Puppet
Omar Reygaert
 
A 2-2 php on windows azure
GoAzure
 
PHP on Windows Azure
Microsoft Openness Japan
 
Installing odoo v8 from github
Antony Gitomeh
 
httpd — Apache Web Server
webhostingguy
 
Write php deploy everywhere tek11
Michelangelo van Dam
 
Go Web Development
Cheng-Yi Yu
 
Write php deploy everywhere
Michelangelo van Dam
 
Dev ninja -> vagrant + virtualbox + chef-solo + git + ec2
Yros
 
Docker, c'est bonheur !
Alexandre Salomé
 
Fun with exploits old and new
Larry Cashdollar
 
Functional Hostnames and Why they are Bad
Puppet
 
Efficient DBA: Gain Time by Reducing Command-Line Keystrokes
Seth Miller
 
20090514 Introducing Puppet To Sasag
garrett honeycutt
 
20141011 mastering mysqlnd
do_aki
 
Docker and friends at Linux Days 2014 in Prague
tomasbart
 
puppet @techlifecookpad
Naoya Nakazawa
 
Django로 만든 웹 애플리케이션 도커라이징하기 + 도커 컴포즈로 개발 환경 구축하기
raccoony
 
Ad

More from Yuriko IKEDA (20)

PDF
トルクメニスタンのインターネット事情
Yuriko IKEDA
 
PDF
デフォルト誕生日を知らべてみた
Yuriko IKEDA
 
PDF
Settaya
Yuriko IKEDA
 
PDF
WordCamp 5.3 & Community
Yuriko IKEDA
 
PDF
Photography staff at WordCamp Tokyo 2019
Yuriko IKEDA
 
PDF
端末開発のススメ
Yuriko IKEDA
 
PDF
WordPressでIoTをはじめよう
Yuriko IKEDA
 
PDF
Local 10 周年パーティーに行ってきた話
Yuriko IKEDA
 
PDF
Fastest routes from Meisei-univ to Shinjuku
Yuriko IKEDA
 
PDF
Faster route from Shinjuku to Meisei univ.
Yuriko IKEDA
 
PDF
Introduce raspberry pi's 7 years
Yuriko IKEDA
 
PDF
WordPress 次期バージョンと日本のコミュニティ
Yuriko IKEDA
 
PDF
カルト宗教の始め方
Yuriko IKEDA
 
PDF
WordCamp Osaka の熱気を可視化してみた
Yuriko IKEDA
 
PDF
WordPressで制御するこれからのIoT
Yuriko IKEDA
 
PDF
Create LED lightened Wapuu (LEDパネルで光るわぷーを)
Yuriko IKEDA
 
PDF
世界No.1 CMS WordPressへのいざない
Yuriko IKEDA
 
PDF
LEDマトリックスで光るわぷー(WordPressで指定編その1)
Yuriko IKEDA
 
PDF
Scroll pHAT HD に美咲フォント
Yuriko IKEDA
 
PDF
Raspi intro-20170805
Yuriko IKEDA
 
トルクメニスタンのインターネット事情
Yuriko IKEDA
 
デフォルト誕生日を知らべてみた
Yuriko IKEDA
 
Settaya
Yuriko IKEDA
 
WordCamp 5.3 & Community
Yuriko IKEDA
 
Photography staff at WordCamp Tokyo 2019
Yuriko IKEDA
 
端末開発のススメ
Yuriko IKEDA
 
WordPressでIoTをはじめよう
Yuriko IKEDA
 
Local 10 周年パーティーに行ってきた話
Yuriko IKEDA
 
Fastest routes from Meisei-univ to Shinjuku
Yuriko IKEDA
 
Faster route from Shinjuku to Meisei univ.
Yuriko IKEDA
 
Introduce raspberry pi's 7 years
Yuriko IKEDA
 
WordPress 次期バージョンと日本のコミュニティ
Yuriko IKEDA
 
カルト宗教の始め方
Yuriko IKEDA
 
WordCamp Osaka の熱気を可視化してみた
Yuriko IKEDA
 
WordPressで制御するこれからのIoT
Yuriko IKEDA
 
Create LED lightened Wapuu (LEDパネルで光るわぷーを)
Yuriko IKEDA
 
世界No.1 CMS WordPressへのいざない
Yuriko IKEDA
 
LEDマトリックスで光るわぷー(WordPressで指定編その1)
Yuriko IKEDA
 
Scroll pHAT HD に美咲フォント
Yuriko IKEDA
 
Raspi intro-20170805
Yuriko IKEDA
 
Ad

Recently uploaded (20)

PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Advancing WebDriver BiDi support in WebKit
Igalia
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Advancing WebDriver BiDi support in WebKit
Igalia
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
July Patch Tuesday
Ivanti
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 

Mac OS X Lion で作る WordPress local 環境

  • 2. •  w  w  •  •  •  •  2
  • 3. •  w  w  w  3
  • 4. •  w  w  w  4
  • 5. •  •  w  w  5
  • 6. •  •  w  •  $ mysql
 v  6
  • 8. •  8
  • 10. •  http://dev.mysql.com/downloads/mysql/5.5.html w  10
  • 12. •  w  12
  • 13. •  13
  • 14.   $ /usr/local/mysql/bin/mysql -u root" mysql> SET PASSWORD FOR root@’localhost’ = PASSWORD(‘ ’);" mysql> SET PASSWORD FOR root@’127.0.0.1’ = PASSWORD(‘ ’);" mysql> SET PASSWORD FOR root@’::1’ = PASSWORD(‘ ’);" ( )" l *.local 14
  • 15.   u  ( )" mysql> DELETE FROM mysql.user WHERE User = '';" mysql> FLUSH PRIVILEGES;" mysql> exit" 15
  • 16. •  u  $ sudo su -" Password: # cat > .my.cnf" [mysql]" user = root" password = ^D # chmod 600 .my.cnf" 16
  • 17.   $ sudo cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf" [mysqld] character-set-server = utf8 skip-character-set-client-handshake [mysqldump] character-set-server = utf8 [mysql] default-character-set = utf8   17
  • 18. •  w  w  w  18
  • 19. 1. httpd.conf " $ sudo chmod +w /etc/apache2/httpd.conf" 2. httpd.conf #LoadModule php5_module libexec/apache2/libphp5.so   u /etc/apache2/other/php5.conf 19
  • 20. 1. httpd.conf <Directory "/Library/WebServer/Documents"> # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride AuthConfig FileInfo Limit 20
  • 21. 1. /etc/apache2/users/FOO.conf FOO AllowOverride none
 # AllowOverride All   21
  • 22. 1. /etc/apache2/httpd.conf #AddHandler cgi-script .cgi 2. /etc/apache2/users/*.conf Options Indexes MultiViews ExecCGI FollowSymLinks 22
  • 23. •  $ sudo cp /etc/php.ini.default /etc/php.ini" $ sudo chmod +w /etc/php.ini" display_errors = On post_max_size = 32M default_charset = "utf-8" upload_max_filesize = 32M date.timezone = Asia/Tokyo pdo_mysql.default_socket= /tmp/mysql.sock mysql.default_socket = /tmp/mysql.sock mysqli.default_socket = /tmp/mysql.sock mbstring.language = Japanese mbstring.internal_encoding = UTF-8 mbstring.http_input = pass mbstring.http_output = pass mbstring.encoding_translation = Off
  • 24.     24
  • 25. 1.  http://www.phpmyadmin.net/ 2.  /Library/WebServer/Documents phpmyadmin w  3.  http://localhost/phpmyadmin/ w  25
  • 26. 26
  • 27.     27
  • 28. •  w  w  28
  • 29. curl -O http://ja.wordpress.org/wordpress-3.2.1-ja.tar.gz"   tar zxvf wordpress-3.2.1-ja.tar.gz -C ~/Sites
 /Library/WebServer/Documents " 3.  cd ~/Sites/ ( /Library/WebServer/Documents)" 4.  mv wordpress wp32" 5.  chmod o+w wp32" 6.  open http://localhost/~FOO/wp32/" 7.  " 29
  • 30. 30
  • 31. 31
  • 32. •  u  http://ja.wordpress.org/releases/ u  http://sourceforge.jp/projects/wpme/releases/ 32
  • 33. •  $ cd ~/Sites/wp32 /Library/WebServer/Documents/wp32 " $ sudo chown –R _www:_www . *" $ sudo chmod –R g+w . *" •  define('FS_METHOD', 'direct'); •  $ sudo dscl . -append /Groups/_www GroupMembership FOO ! 33
  • 34. •  http://www.yuriko.net/arc/ 2009/06/29/200906-wordbench-slides/ 34
  • 35. •  http://blogs.msdn.com/b/web_/archive/ 2011/02/03/10124155.aspx 35