æªãWebãœãªã¥ãŒã·ã§ã³ã®ãªã¹ããäœæããŸããããŸãããµã€ãã§äœããã¹ããã«ã€ããŠã®æšå¥šäºé ã¯äŸ¡å€ããããŸããã ãã®ãªã¹ãã¯ã顧客ãšã®äœåæéãã®ã³ãã¥ãã±ãŒã·ã§ã³ãããã³ç§ãæ¯æ¥ééãããµããŒããšãã©ãã«ã·ã¥ãŒãã£ã³ã°ã«åºã¥ããŠããŸãã ææ¡ããããã®ã®ããã€ãã¯éåžžã«åå§çã§ãããããã€ãã®è³ªåã¯ããé«åºŠãªã¬ãã«ã®ãã®ã«ãªããŸãã 説æãããŠããå 容ã®å€ãã¯ãæåããWordPressãµã€ããšå€±æãããµã€ããåºå¥ã§ããŸãã å®éãé©åãªWebãã¹ãã£ã³ã°ã®éžæãéåžžã«éèŠã§ãããšããäºå®ã«ãããããããWordPressã§ãµã€ããæé©åããŠæåãããã«ã¯ååãªæéãè²»ããå¿ èŠããããŸãã
çµéšè±å¯ãªéçºè ã¯ãç¹å®ã®Webãœãªã¥ãŒã·ã§ã³ã®äœæãåŸæã§ãããšããäºå®ã«éäžããŠãããããé¢é£ããæé©åææ³ã®åŠç¿ãšé©çšãæ ã£ãããåã«å¿ãããããããšããããããŸãã WordPressãåããŠäœ¿çšãããçµéšè±å¯ãªéçºè ã§ãããã«é¢ä¿ãªãã次ã®ãã³ãã¯ãã¯ããã«é«éã§æé©åãããWordPressãµã€ããäœæããã®ã«åœ¹ç«ã¡ãŸãã
1. ãã¹ãã£ã³ã°ã®å€æŽãåžžã«è§£æ±ºçãšã¯éããŸãã
2. äœæ¥çŸå Žã¯éçºçšã§ã¯ãããŸãã
3. éçºè ã§ã¯ãªãïŒ -ã³ãŒãã«å ¥ããªãã§ãã ãã
4. ããŒããšãã©ã°ã€ã³ãä¿åããªãã§ãã ãã
5. AJAXãªã¯ãšã¹ããç£èŠãã
6. åºåãããã¯ãŒã¯ãšå€éšãµãŒãã¹ã䜿çšãããšãã¯æ³šæããŠãã ããã
7. é床ã®æé©åã¯ããã©ãŒãã³ã¹ã«æªåœ±é¿ãäžããå¯èœæ§ããããŸãã
8. äžè¬çãªããã©ãŒãã³ã¹ã®åé¡ã¯ç°¡åã«èšºæã§ããŸãã
9. WordPressã®ã³ã¢ãå€æŽããã®ã¯æªã
10. ãµã€ãã移è¡ããåã«ãPHP 7ããã³HHVMãšã®äºææ§ã確èªããŸã
11. 倧èŠæš¡ãªãµã€ãã¯ããŒã¿ããŒã¹ã®æé©åãè¡ãå¿ èŠããããŸã
12. æ®éçãªããŒããæ¬åœã«å¿ èŠã§ããïŒ
13. ãšã©ãŒãã°ã¯ããªãã®åéã§ã
14. Googleã¯ããã ãã§ã¯ãããŸãã
15. 123456ã¯èš±å¯ãããªããªããŸãã
16. ã¹ã¯ãªããã¯åžžã«ãµã€ãå šäœã«ããŒãããå¿ èŠã¯ãããŸãã
1.ãã¹ãã£ã³ã°ã®å€æŽãåžžã«è§£æ±ºçãšã¯éããŸãã
人ã ãç¥ã£ãŠããã¹ãæãéèŠãªããšã®1ã€ã¯ãWebãã¹ãã£ã³ã°ãå€æŽããŠããããèªäœã§åé¡ã解決ããªãããšã§ãã WordPressãµã€ãã«ã³ãŒãã®åé¡ã競åãããã©ã°ã€ã³ãããå Žåããµã€ãã¯ã©ãã«çœ®ããŠã修埩ãããŸããã
管çãã¹ãã£ã³ã°ã¯ã§ããéãå€ãã®ãµããŒããšæ¯æŽãæäŸããŸãããã³ãŒãããã©ã°ã€ã³ã®ãããã°ã«ã¯é¢äžããŸããã PHPã§é©åãªã³ãŒããèšè¿°ãããã©ã°ã€ã³ãšããŒãã®æ©èœãäœæããã³ç·šéããçµ±åãç·šéãããµã€ããã³ã³ãã³ãã§æºããããšã¯ãWebãã¹ãã£ã³ã°ã®è²¬ä»»ã§ã¯ãããŸããã çµéšè±å¯ãªéçºè ããããè¡ãããšãã§ãããµã€ãã®äœæ¥ãæãäžããåé¡ãç 究ããŠè§£æ±ºããŸãã
2.äœæ¥çŸå Žã¯éçºçšã§ã¯ãããŸãã
ååç¹°ãè¿ãããšãã§ããŸãã äœæ¥ãµã€ããéçºã«äœ¿çšããªãã§ãã ããïŒ çŸåšãWordPressã§ãã¹ããããŠããã»ãšãã©ãã¹ãŠã®ãã¹ãã£ã³ã°ãµã€ãã«ã¯ãéçºç°å¢ãšå®è¡ç°å¢ããããŸãããã¡ãããçç±ããªãããã§ã¯ãããŸããã ãããã®ãœãªã¥ãŒã·ã§ã³ã䜿çšãããšãäœãããã¹ãããããšããŠå€±æããããã«äœæ¥ãµã€ããå¶ç¶ã«èœã¡ãŠããŸãããšãé²ããŸãã
ãã®ãããªãœãªã¥ãŒã·ã§ã³ã䜿çšããããªãå Žåã¯ãLAMPãŸãã¯LEMPã¹ã¿ãã¯ãšåŒã°ãããã®ã䜿çšããŠãããŒã«ã«éçºãšãã¹ããå©çšã§ããŸãã LinuxãApache / NginxãMySQLãPHPã§åäœããããã«èšèšãããŠããŸãã ãŸããWAMPãMAMPãªã©ã®ããŒã«ã¯ãããŒã«ã«éçºçšã®ãµãŒããŒã®ã¢ã»ã³ããªãç°¡çŽ åããé«éåããŸãã
ãããã®ããŒã«ã¯ãã¹ãŠæéã®çµéãšãšãã«æ¹åããã³éçºãããŠããŸãããããŒã«ã«éçºã«ã¯ç¬èªã®åé¡ããããŸããããšãã°ãå ¬éããããµã€ããéåžžã«æ£ç¢ºã«æš¡å£ããªãç°å¢ãªã©ã§ãã ãŸããæ¢åã®ããŒã¿ãäžæžãããå¿ èŠããªãããµã€ããã¯ã©ãã·ã¥ããªãããã«ãããŒã«ã«ãã·ã³ããäœæ¥ãµã€ãã«äœæ¥ããªãã€ã¬ã¯ãããæ¹æ³ãææ¡ããå¿ èŠããããŸãã èšå®ã«ãã£ãŠã¯ããã®ããã»ã¹ãå¥ã®åé¡ã«ãªãå ŽåããããŸãã MySQLã®ããŒãžã§ã³ã®éãã«ãããããŒãã®ç«¶åããšã©ãŒãçºçããå ŽåããããŸãã
ãã®ãããªåé¡ãåé¿ããããã«ãWordPressã§ããŒã«ã«ã§äœæ¥ãããšãã®ã¯ãŒã¯ãããŒãé«éåããããã«å°çšã«èšèšãããDesktopServerãLocalãªã©ã®ããŒã«ã䜿çšããããšããå§ãããŸãã ãããã«ã¯ãäœæ¥ãµã€ãã«ããŒã¿ã転éããç°¡åãªæ¹æ³ãå«ãŸããŠããã WP-CLIã®æäœããã«ããµã€ãã¢ãŒãã®çµã¿èŸŒã¿ãµããŒããªã©ã®è¿œå æ©èœããããŸãã WordPressã®å€§èŠæš¡ãªããŒã«ã«ã³ããŒã®æäœã¯ãéåžžã«è€éã«ãªãããšãããããããã«ããµã€ããµããŒãã ãã§ãéåžžã«è²Žéã§ãã
ã©ã³ã€ã³ããã³ãªã³ãµã€ãã®ãã¹ãç°å¢ã¯ãåé¡ããµã€ããç Žå£ããåã«å¯ŸåŠããã®ã«åœ¹ç«ã¡ãŸãã
3.éçºè ã§ã¯ãªãïŒ -ã³ãŒãã«å ¥ããªãã§ãã ãã
WordPressã«äžæ £ããªäººããŸãã¯ããã°ã©ãã³ã°ã®åºæ¬ãç¥ããªã人ã¯ããã¡ã€ã«ãç·šéããªãã§ãã ããã WordPressãµã€ããã¯ã©ãã·ã¥ããæãäžè¬çãªçç±ã®1ã€ã¯ã誰ããã³ã³ãããŒã«ããã«ã®å€èŠ³ãšãã£ã¿ãŒããçŽæ¥PHPãã¡ã€ã«ãç·šéããŠããããã§ãã ãŸããåè¿°ã®ãšãããäœæ¥ãµã€ããç·šéããªãã§ãã ããã
管çè ãžã®æšå¥šäºé ïŒ wp-config.phpãã¡ã€ã«ã«ããã¹ãŠã®ãŠãŒã¶ãŒã®edit_themes ã edit_plugins ãããã³edit_filesã眮ãæããç¹æš©ãæã€æ¬¡ã®ã³ãŒããé 眮ããŸãã ããã«ããããŠãŒã¶ãŒã¯ã³ãŒããç·šéããŠãµã€ããããããã§ããªããªããŸãã
define('DISALLOW_FILE_EDIT', true);
ãŸããããŒããã¡ã€ã«ãç·šéãããããŠãŒã¶ãŒã®ãã©ã°ã€ã³ãã€ã³ã¹ããŒã«ãããããæ©èœãç¡å¹ã«ããŸãã ãããè¡ãã«ã¯ã wp-config.phpãã¡ã€ã«ã«æ¬¡ã®ã³ãŒããè¿œå ããŸã ã
define('DISALLOW_FILE_MODS', true);
äžèšã®ã³ãã³ãã¯ãããŒããšãã©ã°ã€ã³ã®ãã¡ã€ã«ãšãã£ã¿ãŒãç¡å¹ã«ããããšã«æ³šæããŠãã ãã ã 詳现ã¯WordPress Codexãã芧ãã ããã
4.ããŒããšãã©ã°ã€ã³ãä¿åããªãã§ãã ãã
æ°ãã«ç¯çŽãããã®ã¯æããã§ãããããŒããšãã©ã°ã€ã³ãç ç²ã«ããŠãããè¡ãã¹ãã§ã¯ãããŸããã WordPressã¯ãµã€ãã®åºç€ã§ãããããŒããšãã©ã°ã€ã³ã¯ãããžã§ã¯ãã®æ©èœãçµã³ä»ããæ¥çå€ã§ãã ãã©ã°ã€ã³ãéžæãããšãã¯ãè©å€ã®è¯ãéçºè ã«åºå·ããŠãã ãã ã éçºè ã«ãã補åãµããŒãã®å±¥æŽãäºåã«åŠç¿ããè©äŸ¡ã衚瀺ããŠã¬ãã¥ãŒãèªãã§ãã ããã WordPressãã£ã¬ã¯ããªã« 50,000以äžã®ãã©ã°ã€ã³ãããå Žåããã®ãããªèª¿æ»ã¯å°é£ãªäœæ¥ã«ãªãå¯èœæ§ããããŸãã
éåžžã«å€ãã®å Žåãæ代é ããŸãã¯æšæºä»¥äžã®ããŒãããã©ã°ã€ã³ã¯ãã«ãŠã§ã¢ã®åœ±é¿ãåããããããæªæã®ããã³ã³ãã³ãããµã€ããžã®ãªã³ã¯ãã€ã³ã¹ããŒã«ããŠããŸãã WP Loopã®èª¿æ»ã«ãããšãå ¬éãããŠãããã¹ãŠã®ãã©ã°ã€ã³ã®ã»ãŒååã2幎以äžæŽæ°ãããŠããŸããã ããã¯è¡æçã§æãããããšã§ãã
ãã©ã°ã€ã³ã®å¥ã®ãœãŒã¹ã§ãããæ€èšãã䟡å€ã®ãããã®ã¯ãäœäŸ¡æ Œã§ãã¬ãã¢ã ãœãªã¥ãŒã·ã§ã³ãæäŸãããµãŒãããŒãã£ã®ã«ã¿ãã°ã§ãã ãã®ãœãŒã¹ãéžæãããšããéçºè ããµããŒãããŸããã ããã«ãä¿¡é Œæ§ã®äœãæŽæ°ãœãŒã¹ã«äŸåããŸããããããããŸãè¯ããããŸããã
ã€ã³ã¹ããŒã«ããããã©ã°ã€ã³ã®æŽæ°ãåŸ ã€ããšã¯ãThemeForestã®ãããªãµãŒãããŒãã£ã®ãã£ã¬ã¯ããªã§ãœãªã¥ãŒã·ã§ã³ãè³Œå ¥ããWordPressãŠãŒã¶ãŒã«ãšã£ãŠå€§ããªåé¡ã§ãã å€ãã®ããŒãéçºè ã¯ãRevolution SliderãVisual Composerãªã©ã®è¿œå ã®ãã©ã°ã€ã³ãåã蟌ã¿ãŸãã ããã§ã®ãã€ã³ãã¯ãçµã¿èŸŒã¿ãã©ã°ã€ã³ã§è匱æ§ãæ€åºãããå ŽåããŠãŒã¶ãŒã¯ããŒãéçºè ããã®æŽæ°ãåŸ ã€å¿ èŠãããããšã§ããããã©ã°ã€ã³èªäœã¯æåéãããã«ä¿®æ£ã§ããŸãã ããã«ãããå€ãã®ãµã€ããããã«ãŒã«å¯ŸããŠéåžžã«è匱ã«ãªããŸãã
5. AJAXãªã¯ãšã¹ããç£èŠãã
ãµã€ãã§ã®AJAXãªã¯ãšã¹ãã®äœ¿çšæ¹æ³ãšãAJAXã䜿çšãããã©ã°ã€ã³ãã芧ãã ããã ããšãã°ãWordPress Heartbeat APIã¯/wp-admin/admin-ajax.phpã䜿çšããŠããã©ãŠã¶ãŒãä»ããŠAJAXã«ã¢ã¯ã»ã¹ããŸãã ãããã®é åã®å€ãã¯äžèŠã§ãã ãã®ãã¡ã€ã«ã¯ããã©ãã£ãã¯ãæ¥å¢ããããã»ããµã«è² è·ãããããšãã«ç¹ã«é »ç¹ã«äœ¿çšãããŸãã ããã«ããããµã€ãã®é床ãèããäœäžããå¯èœæ§ããããŸãã ããã¯ãããèªäœã«å¯ŸããŠDDoSæ»æãä»æããããšã«ãããã䌌ãŠããŸãã
admin-ajax.phpã䜿çšãããµãŒãããŒãã£ã®ãã©ã°ã€ã³ãããå Žåãããããæ£ãã察話ããããšã確èªããŠãã ããã HTTP POSTãªã¯ãšã¹ããç°¡åã«è¿œè·¡ããååã«åºã¥ããŠãã©ã®ãã©ã°ã€ã³ãåŒã³åºãããããå€æã§ããŸãã ããšãã°ãç§ãçºèŠããget_shares_count㯠ãadmin-ajax.phpããªãŒããŒããŒããããœãŒã·ã£ã«ãããã¯ãŒã¯ãšå¯Ÿè©±ããããã®äººæ°ã®ãããã©ã°ã€ã³ã§ããããšãå€æããŸããã ãã©ãã£ãã¯ã®å€ããµã€ãã§ã¯ã茻茳ãäœåºŠãå¢å ããŸãã
ãã ããAJAXã¯ããŒãžèªäœãããŒãããåŸã«ã®ã¿ããŒãããããããé床ãã¹ãã§å¯Ÿå¿ããèŠåã衚瀺ãããå ŽåãAJAXã¯å¿ ãããåé¡ã§ã¯ãããŸããã
6.åºåãããã¯ãŒã¯ãšå€éšãµãŒãã¹ã䜿çšãããšãã¯æ³šæããŠãã ããã
ãã©ãã£ãã¯ã®å€ãã»ãšãã©ã®ãµã€ãã¯åºååå ¥ãåŸãŠããããµãŒãããŒãã£ã®åºåãããã€ããŒã®æåŠã¯äžå¯èœã§ãã ãã ãããµãŒãããŒãã£ãµãŒãã¹ã®æ°ãæå°éã§ããããšãéèŠã§ãããµã€ãã®èªã¿èŸŒã¿éãç解ããå¿ èŠããããŸãã
åºåãããã¯ãŒã¯ãWordPressãµã€ãã«äžãã圱é¿ãç°¡åã«æ¯èŒããŠã¿ãŸãããã
ãã¹ããã©ã¡ãŒã¿ãŒïŒãµã€ãºã300Ã250ã®Google AdSenseã®3ã€ã®åºåããã¹ããªãœãŒã¹ã«è¿œå ããŸããã ãã®ãµã€ãã«ã¯ããã©ã«ãã®ããŒã-Twenty SixteenããããŸãã AdSenseãã€ã³ã¹ããŒã«ããåãšåŸã«ããŠã³ããŒãé床ã枬å®ããŸããã
AdSenseã®åïŒ ãã¹ãçµæ ïŒ
- æåã®ããŒãïŒ1.372ç§
- ãªããŒãïŒ1.013ç§
æ¥ç¶ã«ããã³ã³ãã³ãã®å èš³ïŒ
AdSenseã®åŸïŒ ãã¹ãçµæ ïŒ
- æåã®ããŒãïŒ4.103ç§ã
- ãªããŒãïŒ3.712ç§
æ¥ç¶ã«ããã³ã³ãã³ãã®å èš³ïŒ
3ã€ã®Google AdSenseåºåãã€ã³ã¹ããŒã«ããã ãã§ã6ã€ã®æ¥ç¶ãè¿œå ãããŸããã åºåãããWordPressãµã€ãã¯ããªãå Žåãã2.7åé ãã§ãã ããã¯äž»ã«ãè¿œå ã®DNSã«ãã¯ã¢ããæéãšããŒãžã§ã®JavaScriptã®äœ¿çšã«ãããã®ã§ãã ããã¯ãã¹ãŠã1ã€ã®ããŒãžã«10åã®åºåãæ¿å ¥ãã倧èŠæš¡ãªãµã€ãã§äœãèµ·ãã£ãŠãããã®åçãäœæããå¿ èŠããããŸãã ã©ããªã«é«éãªãã¹ãã£ã³ã°ã䜿çšããŠãããµãŒãããŒãã£ã®åºåæ¥ç¶ã«ããé 延ã¯ä¿®æ£ãããŸããã
以äžã«ãWordPressã«å€§ããªè² è·ããããå€æ°ã®å€éšHTTPåºåãªã¯ãšã¹ãããããµã€ãã®å¥ã®äŸã瀺ããŸãã
éåžžã«å€ãã®ãªã¯ãšã¹ãããã£ããããã¢ããªã±ãŒã·ã§ã³ãµãŒããŒã¯ãŸã£ããããŒãããŸããã§ããã ãµã€ãã¯åã«å©çšã§ããããã¹ãŠã®å€éšãªã¯ãšã¹ããæºããããšããŸããã
ãã1ã€ã®è¯ãäŸã¯ã Huffington Postã® Webãµã€ãã§ãã ããŒãé床ãã¹ããå®è¡ãããšãåºåãããã¯ãŒã¯ãžã®èšå€§ãªæ°ã®HTTPãªã¯ãšã¹ãã衚瀺ãããŸãã ç°¡åãªãã¹ãã§ã¯ ãããŠã³ããŒãé床ã13ç§ä»¥äžã§ããããšã瀺ãããŸããã
- æåã®ããŒãïŒ15.908ç§ã | 221 HTTPãªã¯ãšã¹ã
- ãªããŒãïŒ13.957ç§ | 66 HTTPãªã¯ãšã¹ã
ããããå€ãã®ãµã€ããåºåã®å€§éšåãç²åŸããŠãããããåã«åºåãåé€ããã ãã§ã¯è¯ã解決çã«ã¯ãªããŸããã ã¹ã¯ãªããã®èªã¿èŸŒã¿ãæé©åããå¿ èŠããããŸãã ã¹ã¯ãªããã®éåæèªã¿èŸŒã¿ã䜿çšããããããŒãžã®ã¬ã³ããªã³ã°ãäžæããªãããã«èªã¿èŸŒã¿ãé ãããããšãã§ããŸãã ããã©ãŒãã³ã¹ã«é¢ããŠã¯ãåžžã«ç¥èŠãããããã©ãŒãã³ã¹ãšå®éã®ããã©ãŒãã³ã¹ã®ãã©ã³ã¹ãåãå¿ èŠããããŸãã
éåæJavaScriptã®äŸïŒ
src="example.js" async
JavaScriptä¿çäžã®äŸïŒ
src="example.js" defer
Patrick Sextonã«ã¯JavaScriptãé 延ãããå¥ã®æ¹æ³ããããŸã ã WordPressããŒãžã§ã³4.1以éã«ã¯ãã¹ã¯ãªããã«ç°¡åã«éåæãŸãã¯é 延å±æ§ãè¿œå ã§ãããã£ã«ã¿ãŒããããŸãã
éåžžãå€éšãµãŒãã¹ã䜿çšããŠãå¿çããã£ãã·ã¥ããŸãã ãªãã§ïŒ ããããªããšã ãæ»ã®åé¡ã®çœãç»é¢ããçºçããå¯èœæ§ãããããã§ãã è¿œå ããåå€éšãµãŒãã¹ã¯ãä¿¡é Œã§ããä¿¡é Œã§ãããœãŒã¹ããã®ãã®ã§ãªããã°ãªããŸããã æçµçã«ãããããèœã¡ãå Žåãããã¯ããªãã®ãµã€ãå šäœãŸãã¯ããªãã®ããžãã¹éå¶ã«åœ±é¿ãäžããŸãã
7.é床ã®æé©åã¯ããã©ãŒãã³ã¹ã«æªåœ±é¿ãäžããå¯èœæ§ããããŸãã
ã€ã³ã¿ãŒãããã«ã¯ãWordPressãµã€ãã®é«éåãšæé©åã®æ¹æ³ã«é¢ããããã³ãããæäŸããäœåãã®èšäºããããŸãã ãããããŠãŒã¶ãŒããµã€ããéå°ã«æé©åããå Žåã»ã©æªãããšã¯ãããŸããã ã¯ããããã¯ããªããæã£ãŠããããããã£ãšé »ç¹ã«èµ·ãããŸãã WordPressãµã€ãã®ææè ã¯ãäœããè¿œå ãããšããŠã³ããŒãé床ã2åã«ãªããšæããããšããããããŸãã
以äžã«ãå®æçã«çºçããããã€ãã®åé¡ããªã¹ãããŸãã
ãã£ãã·ã¥ããã£ãã·ã¥ããããšããŸãã
éåžžã®VPSãŸãã¯éåžžã®ãµãŒããŒãšã¯ç°ãªããå€ãã®WordPressãã¹ãã«ã¯ç¬èªã®ãã£ãã·ã³ã°ãããããµãŒããŒã¬ãã«ã§å®è¡ãããŸãïŒããšãã°ãRedisãMemcacheïŒã å€ãã®ãããã€ããŒã¯ããã¹ãŠã®ã¿ã€ãã®åé¡ãåŒãèµ·ããå¯èœæ§ãããããããã£ãã·ã¥ãã©ã°ã€ã³ã®äœ¿çšãçŠæ¢ããŠããŸãããã»ãšãã©ã®å Žåã502 Bad Gatewayã§ãã ç§ãåŒã¶ããã«ãããã£ãã·ã¥ããã£ãã·ã¥ãããããšã¯æ±ºããŠè¯ãèãã§ã¯ãããŸããã
WP RocketãCache Enablerãªã©ã®ãã©ã°ã€ã³ã¯åªããŠããŸããããµã€ããé«éåããããã«ç¹å¥ãªæ¯æŽãå¿ èŠãªãµãŒããŒåãã«èšèšãããŠããŸãã ä»æ¥ãã䜿çšãããäžè¬çãªãµãŒããŒåŽã®ãã£ãã·ã¥åœ¢åŒã§ãããªããžã§ã¯ããã£ãã·ã¥ã«ã€ããŠè©³ããèªãããšããå§ãããŸãã
2ÃCDN = 2ÃããŠã³ããŒãé床ã§ãããïŒ
CDNã¯ãé©åãªæ§æã䜿çšããå Žåã«ã®ã¿ãå°ççã«ç°ãªãå°åã®ã³ã³ãã³ãã®èªã¿èŸŒã¿æéãå€§å¹ ã«ççž®ã§ããŸãã æãäžè¬çãªãµãŒãã¹ã®1ã€ã§ããCloudflareã¯ãæè¡çã«ã¯ãããã·ãµãŒããŒã§ããããµã€ãã®ã³ã³ãã³ãã ãã§ãªããã¹ãŠã®DNSãéä¿¡ãããããéåžžã®CDNãããã€ããŒãšã¯è¥å¹²ç°ãªããŸãã
éåžžãCloudflareã«æ¥ç¶ããããã«KeyCDNãŸãã¯MaxCDNãè¿œå ãããŠãŒã¶ãŒã衚瀺ãããŸãã ããã¯ãå€ãã®å Žåãæ°ãããµãŒãã¹ãè©Šãããã®æšå¥šäºé ã衚瀺ãããŠãã誰ãã®ããã°æçš¿ãèªãã§ãããšããäºå®ã«ãããã®ã§ãã 圌ãã¯æ°ãããµãŒãã¹ãã€ã³ã¹ããŒã«ãããã§ã«æ¥ç¶ãããŠãããµãŒãã¹ãå¿ãããã®çµã¿åããã¯ç¹å®ã®ã·ããªãªã§æ©èœããŸãããå€ãã®å Žåããã¹ãŠãæ··ä¹±ããŠçµãããŸãã ã»ãšãã©ã®å ŽåãCloudflareãŸãã¯ãµãŒãããŒãã£ã®CDNãããã€ããŒã®ããããã䜿çšããå¿ èŠããããŸããããããã«é·æãšçæããããŸãã
èšå€§ãªæ°ã®SEOãã©ã°ã€ã³ãæ€çŽ¢çµæã®äžäœã«äœçœ®ããªã
æ€çŽ¢çµæãæ¯é ããããããã¯ç解ã§ããã ãã ããSEOçšã®3ã€ã®ãã©ã°ã€ã³ãè¿œå ããŠãããã®ç®æšã®éæã«ã¯åœ¹ç«ã¡ãŸããã å®éã éè€ããã¡ã¿ã¿ã°ã衚瀺ãããªã©ãAll In One SEOãYoastãããã³SEOçšã®ä»ã®ãã©ã°ã€ã³ãåæã«äœ¿çšãããšãå€ãã®äºææ§ã®åé¡ãçºçããŸã ã è¿œå ã®ãã©ã°ã€ã³ãã€ã³ã¹ããŒã«ããŠããæ€çŽ¢ãšã³ãžã³æé©åã®æ¹åãä¿èšŒãããããã§ã¯ãããŸããã
8.äžè¬çãªããã©ãŒãã³ã¹ã®åé¡ã¯ç°¡åã«èšºæã§ããŸãã
ããªããäžçŽã®WordPressãŠãŒã¶ãŒã§ãªããŠããäžè¬çãªããã©ãŒãã³ã¹ã®åé¡ãèŠã€ããã®ã¯ããªãç°¡åã§ãã äžçŽãŠãŒã¶ãŒã®å Žåãææ°ã®HTTP / 2ãããã³ã«ããµããŒãããããã WebPageTestã®äœ¿çšããå§ãããŸãã ãã以å€ã®å Žåã¯ã Pingdomãé©ããŠããŸãã åçŽãªã«ã¹ã±ãŒãåæã«ãããäžå¿ èŠãªãªãã€ã¬ã¯ãããã¡ã€ã«ã®æ¬ èœãéå°ãªDNSã¯ãšãªããŸãã¯ãµãŒãããŒãã£ã®ã¹ã¯ãªãããŸãã¯åºåãããã¯ãŒã¯ãä»ãããµã€ãã®éè² è·ããããã©ãããããããŸãã
ããã©ãŒãã³ã¹ã¬ãŒãã£ã³ã°ãšã¬ã¹ãã³ã¹ã³ãŒãã確èªãããšããµã€ãã®ãšã©ãŒã®è§£æ±ºãéå§ããæ¹æ³ãããããŸãã
9. WordPressã®ã³ã¢ãå€æŽããã®ã¯æªã
ã«ãŒã«ã«ããïŒã³ãŒããæ©èœãããããã«WordPressã³ã¢ãå€æŽããã®ã¯æªãèãã§ãã ç¹ã«äœæ¥çŸå Žã§ã ãã®ãããªæäœã«ããããµã€ãã«è匱æ§ãçããå¯èœæ§ããããŸãã ãŸããæ°ããã«ãŒãã«ããŒãžã§ã³ã®å€æŽã®æŽæ°ãæäŸããªãã£ãå Žåãæ°ããWordPressã®æŽæ°ããšã«ç·šéå 容ã倱ãããŸãã ãšããããçµã¿èŸŒã¿ã®WordPressããŒã«ãšæ©èœããã©ã°ã€ã³ãåããŒããããã¯ã䜿çšããå Žåã
10.ãµã€ãã移è¡ããåã«ãPHP 7ããã³HHVMãšã®äºææ§ã確èªããŸã
PHP 7ãšHHVMã¯ãWordPressãµã€ãã®ããã©ãŒãã³ã¹ãåäžãããã®ã«éåžžã«åœ¹ç«ã€ããšãç¥ãããŠããŸãã ãããŠãã¡ãããææ°ãã€æé«ã®ãã®ã䜿çšããããšã¯åžžã«çŽ æŽãããããšã§ãã ãã ããæåã«ããµã€ãããããã®ãã¯ãããžãŒãšäºææ§ãããããšã確èªããŠãã ããã ããšãã°ãPHP 5.6ããPHP 7ã«ã¢ããã°ã¬ãŒãããå Žåããã¬ãŒã ã¯ãŒã¯ç°å¢ãŸãã¯ããŒã«ã«ã§WordPressãµã€ãã®ãã¹ãŠã®æ©èœããã¹ãããŠãäºææ§ã®åé¡ããªãããšã確èªããå¿ èŠããããŸãã å€ãããããéåžžã«éèŠãªãã©ã°ã€ã³ã¯PHP 7ã§ã¯åäœããªãå¯èœæ§ããããŸããã€ãŸããææ°ã®æè¡ãœãªã¥ãŒã·ã§ã³ã«ç§»è¡ããåã«ãPHP 7ã®ã¢ããã°ã¬ãŒããåŸ ã€å¿ èŠããããŸãã
11.倧èŠæš¡ãªãµã€ãã¯ããŒã¿ããŒã¹ã®æé©åãè¡ãå¿ èŠããããŸã
倧èŠæš¡ãªWordPressãµã€ãã®é床ãäœäžãããæãç°¡åãªæ¹æ³ã®1ã€ã¯ãããŒã¿ããŒã¹ã®æé©åãè¡ããªãããšã§ãã WordPressã®å€ãããŒãžã§ã³ã®ãã¬ãŒã¹ã®ã¯ãªãŒã³ã¢ãããæªäœ¿çšã®ããŒãã«ã®åé€ãªã©ã®åçŽãªã¿ã¹ã¯ã¯ããµã€ãã®é床äœäžãé²ãããšãã§ããŸãã ãŸããå€ãã®å€ããµã€ãããŸã ããŒã¿ããŒã¹ã§MyISAMã䜿çšããŠããããšã«æ°ä»ããŸããã çŸæç¹ã§ã¯ãInnoDBã¯ã¯ããã«é«éã§ä¿¡é Œæ§ã®é«ããœãªã¥ãŒã·ã§ã³ã§ãã
ãããæ°ã¹ãããã§ããŒãã«ãå€æã§ããŸãã éå§ããã«ã¯ãMySQL 5.6.4以éã䜿çšããŠããããšãããã³äºé²æªçœ®ãšããŠããã¯ã¢ããããŠããããšã確èªããŠãã ããã ãã®äŸã§ã¯ã wp_commentsããŒãã«ã䜿çšããŸãã ALTERã³ãã³ããå®è¡ããŠãInnoDBã§åäœããããã«å€æããŸãã
ALTER TABLE wp_comments ENGINE=InnoDB;
phpMyAdminã®çŸåšã®ããŒãžã§ã³ã䜿çšããŠããå Žåã¯ãå¿ èŠãªããŒãã«ãéããŠ[æäœ]ã¿ãã«ç§»åããããã§ã¹ãã¬ãŒãžã¡ã«ããºã ãå€æŽã§ããŸãã
å¥ã®ç°¡åãªæé©åæ¹æ³ã¯ãããŒã¿ããŒã¹ã«ä¿åãããŠããä¿®æ£ã®æ°ãç¡å¹ã«ãããå¶éããããšã§ã ã 以äžãwp-config.phpã«è¿œå ããŠãå®å šã«ç¡å¹ã«ããããšãã§ããŸãã
define('WP_POST_REVISIONS', false );
ãŸãã¯ãæçš¿ãŸãã¯ããŒãžããšã«ä¿åãããéé¡ãå€æŽããŸãã
define('WP_POST_REVISIONS', 3);
200ãè¶ ããããŒãžã§ã³ã®æçš¿ãããå€ãã®ãµã€ãã«åºäŒããŸããã ãã¹ãã£ã³ã°ã«å éšæé©åããªãå Žåã¯ãWordPressã®èšå®ãæåã§èšå®ããå¿ èŠããããŸããããã©ã«ãã§ã¯ãç¡å¶éã®æ°ã®ä¿®æ£ãä¿åãããããã§ãã
å€ãã®å€æŽããµã€ãã«ä¿åãããŠããå ŽåãphpMyAdminã§ãã®ã¹ã¯ãªãããå®è¡ããŠåé€ã§ããŸãã
DELETE FROM wp_posts WHERE post_type = "revision";
ãããã®ç®çã§WP-Optimizeãã©ã°ã€ã³ã䜿çšããããšãã§ããŸãã
12.æ®éçãªããŒããæ¬åœã«å¿ èŠã§ããïŒ
WordPressã³ãã¥ããã£ã§ç§ãèŠãŠãã倧ããªåé¡ããããŸãã 人ã ã¯æ®éçãªããŒããè³Œå ¥ãããã®æ©èœã®1ïŒ ãã䜿çšããŸããã 圌ãã¯ãã¢ããŒãžãèŠãŠãè³Œå ¥ã®å¿ èŠæ§ã説åŸããçŸããã¹ã©ã€ããŒãšã«ã¹ã¿ã ãããã¯ãèŠãŸãããå®éã«ã¯ããããã®æ©èœã¯æ±ºããŠæçšã§ã¯ãªããããããŸããã ããã·ã³ãã«ã§æ©èœæ§ã®äœãããŒããè³Œå ¥ããããšã§ããéãšæéã®äž¡æ¹ãç¯çŽã§ããŸããã·ã³ãã«ãªããŒãã¯ç®±ããåºããŠããã«éããªããããæçµçã«ã¯æé©åã«è²»ããããŸãã
ãã¹ãŠã®æ®éçãªãããã¯ãæªããšã¯èšããããããŸããã å®éãé©åãªèšå®ãè¡ããšãéåžžã«è¿ éã«æ©èœããŸã ã ããŒãã«700ããªç§ãããAvadaããŒãã®äŸã次ã«ç€ºããŸã ã
ãã ããæ¢åã®ãããã¯ãæé©åããã«ã¯å€ãã®ç¥èãšæéãããããŸãã ã»ãšãã©ã®WordPressãŠãŒã¶ãŒã«ãšã£ãŠãããŒãã®æ©èœã®ååã䜿çšããªãå Žåã¯ãããã·ã³ãã«ãªããŒãã䜿çšããã®ãå¹æçã§ãã çŸãããããŒã掟æãªã¹ã©ã€ããŒã«æããããªãã§ãã ããã å€ãã®å Žåããããã®ãªãã·ã§ã³ã»ããã¯ãã¹ãŠããµã€ãã®é床ãäœäžãããã ãã§ãã
13.ãšã©ãŒãã°ã¯ããªãã®åéã§ã
WordPressãã¡ã€ã«ãšwp-config.phpãã¡ã€ã«ã®åŠçæ¹æ³ãç¥ã£ãŠããå Žåããšã©ãŒãã°ã圹ç«ã¡ãŸãã å®æçã«ãã§ãã¯ããããšã§ãããããçš®é¡ã®é çãã身ãå®ãã ãã§ãªããWordPressãããæ·±ãç解ããããšãã§ããŸãã ãã¹ãã£ã³ã°ã®ãã¯ãã«ã«ãµããŒãã«é£çµ¡ããåã«ãã°ã確èªãããŠãŒã¶ãŒã¯ã»ãšãã©ããŸããã wp-config.phpã®ããã€ãã®ç°¡åãªèšå®ã§ããšã©ãŒãã®ã³ã°ãæå¹ã«ã§ããŸããããã¯ããã©ã«ãã§/wp-content/debug.logã«ä¿åãããŸãã
ãã®ã³ã°ãæå¹ã«ããŸãã
define( 'WP_DEBUG_LOG', true );
ããŒãžããšã®ãã°åºåïŒ
define( 'WP_DEBUG_DISPLAY', true );
詳现ã«ã€ããŠã¯ã WP_DEBUG codexãåç §ããŠãã ãã ã
14. Googleã¯ããã ãã§ã¯ãããŸãã
Googleã§åçãæ€çŽ¢ããããšãæããªãã§ãã ããã ã€ã³ã¿ãŒãããã«ã¯ãå€ãã®ãã³ããšãœãªã¥ãŒã·ã§ã³ããããŸãã æ°å以å ã«ãã»ãšãã©ã®åé¡ãä¿®æ£ã§ããŸãã ãGoDaddyã§DNSãå€æŽããæ¹æ³ãããsFTPã䜿çšããæ¹æ³ããªã©ã®äžè¬çãªè³ªåãžã®åçã¯ãGoogleã§ç°¡åã«èŠã€ããããšãã§ããŸãã
StackExchangeãWordPress Codexãªã©ãã€ã³ã¿ãŒãããã«ã¯å€§èŠæš¡ãªWordPressãªãœãŒã¹ããããŸãããã¡ããããã¥ãŒããªã¢ã«ãå«ãæ°çŸã®ããã°ããããŸãã
ããã«ãåªããWordPressãã¹ãã£ã³ã°ã«ã¯ããŠãŒã¶ãŒã質åãžã®åçãèŠã€ããã®ã«åœ¹ç«ã€ç¬èªã®äŸ¿å©ãªãã¬ããžããŒã¹ãåãã£ãŠããå¯èœæ§ãé«ããäžè¬çãªå Žåããã¹ãã£ã³ã°ã¯ãŠãŒã¶ãŒãµããŒãã®æéãççž®ããŸãã
15. 123456ã¯èš±å¯ãããªããªããŸãã
SpashDataã¯ãæ¯å¹Žæãäžè¬çã«äœ¿çšãããïŒ200äžãè¶ ããïŒãã¹ã¯ãŒããã¹ã¯ãŒãã®ãªã¹ããäœæããŸãã 2015幎ã«æãäžè¬çãªãã¹ã¯ãŒããã123456ãã§ãã£ãããšã¯é©ãããšã§ã¯ãããŸãã-2014幎ãšåãã§ãã ãã®ãããªãã¹ã¯ãŒãã䜿çšãããšããµã€ããæåéããããã³ã°ããäžæ©é¢ãããŸãŸã«ãªããããããã¯ãã¹ãã£ã³ã°ã«ãšã£ãŠããªãäžå¿«ã§ãã æé©ãªãœãªã¥ãŒã·ã§ã³ã®1ã€ã¯ã KeePassãŸãã¯ãã®åçç©ã䜿çšããããšã§ãã ã¯ã©ãŠãå ã®æå·åããããã¹ã¯ãŒãã¯ãåžžã«ã123456ããããã¯ããã«å®å šã§ãã
16.ã¹ã¯ãªããã¯åžžã«ãµã€ãå šäœã«ããŒãããå¿ èŠã¯ãããŸãã
æ®å¿µãªãããæåã§å¶åŸ¡ãããéçãªWebãµã€ããšã¯ç°ãªããWordPressãµã€ãã¯ããŒãéçºè ãšãã©ã°ã€ã³ã«ãã£ãŠæ¯é ãããŠããŸãã ãŸãããã¹ãŠã®éçºè ããœãªã¥ãŒã·ã§ã³ã®ããã©ãŒãã³ã¹ãæ°ã«ããããã§ã¯ãããŸããã ãµã€ãã®ãã¹ãŠã®ããŒãžã«ã¹ã¯ãªãããã¢ããããŒãããèšå€§ãªæ°ã®ãã©ã°ã€ã³ããããŸããããã©ã°ã€ã³èªäœã¯ãã®ãã¡ã®1ã€ã§ã®ã¿äœ¿çšãããŸãã æ°åã®ãã©ã°ã€ã³ãååšããå¯èœæ§ãããããšãèãããšãåé¡ã¯åå¢ãããµã€ãã®é床ã¯äœäžããŸãã
ãã®ãããªäŸã®1ã€ãšããŠã人æ°ã®ããContact Form 7ãã©ã°ã€ã³ããããŸãã以äžã«ç€ºãããã«ãCSSããã³JavaScriptãã¡ã€ã«ãWebãµã€ãã®ããŒã ããŒãžã«ã¢ããããŒãããŸãããé£çµ¡å ãã©ãŒã ã¯äœ¿çšããŸããã
ãããä¿®æ£ããã«ã¯ããã€ãã®æ¹æ³ããããŸãã 1ã€ç®ã¯ãWordPress 3.1ã§å°å ¥ãããwp_dequeue_scriptïŒïŒé¢æ°ã䜿çšããããšã§ãã ãµã€ãã®ããŠã³ããŒããã¥ãŒããã¹ã¯ãªãããåé€ã§ããŸãã Contact Form 7ã§ãã®é¢æ°ã䜿çšããæ¹æ³ã®äŸã次ã«ç€ºããŸããContactForm 7éçºè ã«ã¯ãå¿ èŠãªå Žåã«ã®ã¿JavaScriptãšCSSã䜿çšããæ¹æ³ã«é¢ããããã¥ã¡ã³ãããããŸã ã
2çªç®ã®æ¹æ³ã¯ã GonzalezãPlugin Organizerãªã©ã®ç¹å¥ãªWordPressãã©ã°ã€ã³ã䜿çšããããšã§ãã 以äžã¯ãåœç€Ÿã®ãµã€ãã§ãŽã³ã¶ã¬ã¹ã䜿çšããäŸã§ãã 䟿å©ãªèšå®ãŠã£ã³ããŠã䜿çšãããšãæ°åã®ããŠã¹ã¯ãªãã¯ã§é£çµ¡å ããŒãžãé€ããã¹ãŠã®ããŒãžããContact Form 7ãã©ã°ã€ã³ã®JavaScriptãã¡ã€ã«ãšCSSãã¡ã€ã«ãåé€ã§ããããããµã€ãã®æ®ãã®èªã¿èŸŒã¿é床ãåäžããŸãã
ãããã«
WordPressããã¹ãŠã®Webãµã€ãã®28ïŒ ä»¥äžã§äœ¿çšãããŠããçç±ããããŸã ã ããã¯éåžžã«ä¿¡é Œæ§ãé«ãã䟿å©ã§å€æ©èœãªCMSã§ãã ããŒã ããã°ã®èè ããæ°çŸã®äŒæ¥ãŸã§ã誰ãã圌ã«æ¯æ¥äŸåããŠããŸãã ããããã»ãšãã©ã®ãã©ãããã©ãŒã ãšåæ§ã«ãWordPressã誀ã£ãŠäœ¿çšããããæé©åããªãå ŽåãWordPressã䜿çšãããšããã«é çã®çš®ã«ãªããŸãã