Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

VPS΁ͷҰൃ WordPressΠϯε τʔϧεΫϦϓτ

Slide 3

Slide 3 text

ࣗݾ঺հ

Slide 4

Slide 4 text

ݹཬ෢࢜ WebαΠτɾWebγεςϜͷडୗ։ൃɺαʔόʔ ͷߏஙɾӡ༻อकΛߦ͍ͬͯ·͢ɻJAWS-UG Ԭ ࢁࢧ෦ ίΞϝϯόʔ લ઒ণ޾ αʔόʔɾडୗ੍࡞ɾwebαΠτߏஙɾASP։ൃ ͳͲߦ͍ͬͯ·͢ɻӦۀ2՝ʢडୗ੍࡞෦໳ʣॴ ଐɺϚʔΫΞοϓΤϯδχΞɻokayama-jsओ࠻ɻ

Slide 5

Slide 5 text

גࣜձࣾɹΠʔɾωοτϫʔΫε https://enetwoks.jp Ԭࢁʹຊࣾͱ੍࡞ڌ఺Λஔ͘ɺWeb੍࡞ձࣾɻ ޒ൓ాʹ΋ࣄ຿ॴ͋Γ·͢ɻ ࣾੋ ͢΂ͯͷਓʹITͷԸܙΛ

Slide 6

Slide 6 text

ҰൃΠϯετʔϧʂ

Slide 7

Slide 7 text

‥‥ͱ͍͍ͭͭ΋͞·͟·ͳஈ֊͕͋Γ·͢ 1. αʔόʔͷηοτΞοϓ 2. ϛυϧ΢ΣΞͷΠϯετʔϧɾηοτΞοϓ 3. ඞཁͳπʔϧͷΠϯετʔϧɾηοτΞοϓ 4. αΠτͷઃஔʢDBɾυϝΠϯͳͲʣ 5. WordPressͷΠϯετʔϧɾηοτΞοϓ

Slide 8

Slide 8 text

Ұ౓΍Ε͹Α͍΋ͷ • αʔόʔͷηοτΞοϓ • ϛυϧ΢ΣΞͷΠϯετʔϧɾηοτΞοϓ • ඞཁͳπʔϧͷΠϯετʔϧɾηοτΞοϓ

Slide 9

Slide 9 text

αΠτ͝ͱʹ΍Δ΋ͷ • αΠτͷઃஔʢDBɾυϝΠϯͳͲʣ • WordPressͷΠϯετʔϧɾηοτΞοϓ

Slide 10

Slide 10 text

·ͣ͸rootͰ

Slide 11

Slide 11 text

αʔόʔͷηοτΞοϓ • ࠷௿ݶͷηΩϡϦςΟͷ֬อ • ࡞ۀ͢ΔͨΊͷ֤छઃఆ

Slide 12

Slide 12 text

ઃఆ(server_config.sh) curl https://*** > host_config.sh vi host_config.sh ֤߲໨Λฤू # parameters export OPE_USER_NAME='UNIXϢʔβʔ໊' export OPE_USER_PASS='ϩάΠϯύεϫʔυ' export PWD_MYSQL='MySQLͷrootύεϫʔυ' export VHOST_FQDN='υϝΠϯ'

Slide 13

Slide 13 text

αʔόʔͷॳظߏஙεΫϦϓτ curl https://*** > server_init.sh sh server_init.sh

Slide 14

Slide 14 text

΍͍ͬͯΔ͜ͱ • iptables/Yum ͷઃఆ • Apache/PHP/MariaDBͷΠϯετʔϧͱઃఆɺ ىಈ • WP-CLIͷΠϯετʔϧ • Ϣʔβʔͷ௥Ճ • SELinuxͷແޮԽ

Slide 15

Slide 15 text

WP-CLI

Slide 16

Slide 16 text

WordPressΛίϚϯυϥΠϯͰૢ࡞͢Δπʔϧɻ • μ΢ϯϩʔυ • Πϯετʔϧ • ηοτΞοϓ • ֤छઃఆ • ౤ߘ • ͦͷଞ

Slide 17

Slide 17 text

root͸͜͜·Ͱ • ࠶ىಈ͕࣮ߦ͞Εɺ࠶౓ϩάΠϯΛߦ͍·͢ɻ • ઃఆ͞ΕͨϢʔβʔΛϩάΠϯΛߦ͍·͢ɻ

Slide 18

Slide 18 text

αΠτͷઃஔʢDBɾυϝΠϯͳͲʣ curl https://*** > make_vhosts.sh sh make_vhosts.sh

Slide 19

Slide 19 text

΍͍ͬͯΔ͜ͱ • υΩϡϝϯτϧʔτͷ࡞੒ • VirtualHostͷઃఆ • DBͷ࡞੒ • Apacheͷ࠶ىಈ • WP-CLIͰͷΠϯετʔϧɾઃఆ

Slide 20

Slide 20 text

WP-CLIͰ΍͍ͬͯΔ͜ͱ 1. μ΢ϯϩʔυ 2. ઃఆ 3. Πϯετʔϧ 4. ϓϥάΠϯͷΠϯετʔϧɾ༗ޮԽ 5. ςʔϚͷΠϯετʔϧ

Slide 21

Slide 21 text

ϓϥάΠϯͷࢦఆ export WP_INSTALL_PLUGINS= ("contact-form-7" "advanced-custom-fields") ϓϥάΠϯͷslug΍zipϑΝΠϧͷURLΛࢦఆ

Slide 22

Slide 22 text

ςʔϚͷࢦఆ export WP_THEME_URL='*****' ςʔϚͷslug΍zipϑΝΠϧͷURLΛࢦఆ

Slide 23

Slide 23 text

ࠓճ͸ʮSaitamaςʔϚʯͰ https://www.communitycom.jp/saitama/

Slide 24

Slide 24 text

Ͱ͖͕͋ΓΛݟͯΈ·͠ΐ͏

Slide 25

Slide 25 text

͋ͱ͸ઃఆϑΝΠϧΛฤू ↓ sh make_vhosts.sh Ͱྔ࢈͕Ͱ͖·͢

Slide 26

Slide 26 text

ৄ͘͠͸ʝʝ https://github.com/enetworks/ wordpresscliinstall

Slide 27

Slide 27 text

͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ