ã¬ã³ã¿ã«ãµãŒããŒã®ããã°ãèªå® ãµãŒããŒã«ã€ã³ããŒãããæ¥æ¬èªã¹ã©ãã°ã®è±èªå(åè§è±æ°ãšåè§ãã€ãã³äœ¿çšå¯)ãã¯ãã£ãäžã§ãå ã«æ»ãããšã«æåããã®ã§å ±åããã
ãŸããã¬ã³ã¿ã«ãµãŒããŒ
https://yourdomain.com/wp1
ã®wordpressããã° wp1ã All-in-One WP Migration ãã©ã°ã€ã³ã§ããã¡ã€ã«ã«ãšã¯ã¹ããŒãããŠããã
â»ãããããã¡ã€ã«ãµã€ãºã倧ãããšãšã©ãŒã«ãªã£ãŠããŸãã
ãã®å Žåã¯ææã§ã¯ããããAll-in-One WP Migration Unlimited Extension ãã©ã°ã€ã³ãå
¥æããã°è§£æ±ºããã
åœç¶ãèªå®
ãµãŒããŒã®ããã°ã«ãé©çšããªããã°ãªããªãã
次ã«ãèªå®
ã®WebãµãŒããŒ(Fedora39)ã«æ°ããããŒã¿ããŒã¹ãäœæããã
# mysql -u root -p
— æ°ããããŒã¿ããŒã¹äœæ
MariaDB [(none)]> grant all on *.* to root@localhost identified by 'password'; MariaDB [(none)]> grant all on *.* to root@'%' identified by 'password'; MariaDB [(none)]> create database wp1; MariaDB [(none)]> grant all on wp1.* to user@localhost identified by 'password'; MariaDB [(none)]> flush privileges; MariaDB [(none)]> exit
# systemctl restart mariadb
# systemctl enable mariadb
— wordpress ã€ã³ã¹ããŒã«
# cd /var/www/html
# wget https://ja.wordpress.org/latest-ja.tar.gz
# tar xvf latest-ja.tar.gz
–ãwordpressãããwp1ãã«å€æŽ
# mv wordpress wp1
# cd /var/www
# chown -R apache:apache html
# systemctl start httpd
# systemctl enable httpd
— ãã©ãŠã¶ã§ããã°ã«ã¢ã¯ã»ã¹
http://home.yourdomain.com/wp1/
ããŒã¿ããŒã¹åïŒwp1
ããŒã¿ããŒã¹ã®ãŠãŒã¶ãŒåïŒuser
ããŒã¿ããŒã¹ã®ãã¹ã¯ãŒãïŒpassword
ããŒã¿ããŒã¹ãã¹ãïŒlocalhost
ããŒãã«æ¥é èŸ (1ã€ã®ããŒã¿ããŒã¹ã«è€æ°ã® WordPress ãäœåãããå Žå)ïŒwp1_
ãµã€ãåã管çã¡ãŒã«ã¢ãã¬ã¹ãå ¥åãç¶è¡
æ°ããã§ããwordpress ã« All-in-One WP Migration ãã©ã°ã€ã³ãå°å
¥ãã
ãšã¯ã¹ããŒãããŠãããã¬ã³ã¿ã«ãµãŒããŒã®ããã°ãã¡ã€ã«ãã€ã³ããŒãããã
â»ãã®æããã£ã¹ã¯ã¹ããŒã¹ã®æ¯æžããããããŸãã€ã³ããŒãã§ããªãã£ããã
æ°ããwordpressã®äžã®äœåãªããŒããåé€ããããšã§ãã£ã¹ã¯ã¹ããŒã¹ã確ä¿ã§ããã
wp1ããŒã¿ããŒã¹ã«å«ãŸããã¹ã©ãã°ãããŒã¯ãŒããããkeywordãã«çœ®æããã
# mysql -u root -p MariaDB [(none)]> use wp1; -- ã¹ã©ãã°çœ®æ MariaDB [(none)]> UPDATE wp1_posts SET post_name = REPLACE(post_name, 'ããŒã¯ãŒã', 'keyword') WHERE post_name LIKE '%ããŒã¯ãŒã%'; -- GUID眮æ MariaDB [(none)]> UPDATE wp1_posts SET guid = REPLACE(guid, 'ããŒã¯ãŒã', 'keyword') WHERE guid LIKE '%ããŒã¯ãŒã%'; -- æ¬æå ãªã³ã¯ã®çœ®æ MariaDB [(none)]> UPDATE wp1_posts SET post_content = REPLACE(post_content, 'ããŒã¯ãŒã', 'keyword') WHERE post_content LIKE '%ããŒã¯ãŒã%'; -- ã«ã¹ã¿ã ãã£ãŒã«ãïŒmetaæ å ±ïŒ MariaDB [(none)]> UPDATE wp1_postmeta SET meta_value = REPLACE(meta_value, 'ããŒã¯ãŒã', 'keyword') WHERE meta_value LIKE '%ããŒã¯ãŒã%'; MariaDB [(none)]> flush privileges; MariaDB [(none)]> exit # systemctl restart mariadb # systemctl enable mariadb
èªå®
ãµãŒããŒã®ããã°wp1ã§ã¹ã©ãã°ã®åäœç¢ºèªãããåŸã
ãã®ããã°wp1ã All-in-One WP Migration ãã©ã°ã€ã³ã§ããã¡ã€ã«ã«ãšã¯ã¹ããŒãããã
æåŸã«ã¬ã³ã¿ã«ãµãŒããŒ
https://yourdomain.com/wp1
ã®wordpressããã° wp1ã«ãšã¯ã¹ããŒããããã¡ã€ã«ãã€ã³ããŒãããã
ã¬ã³ã¿ã«ãµãŒããŒã®ããã°ã®åäœç¢ºèªãããããä»ã®ãšããåé¡ã¯ç¢ºèªãããŠããªãã
æ¥æ¬èªã¹ã©ãã°ã®è±èªåã«æåããã
â»ã¡ãªã¿ã« WP Statistics ãã©ã°ã€ã³ã®çµ±èšæ å ±ãåŒãç¶ãããšãã§ããã
Views: 89

