TweetPocket ãããã®VPS Apache+MySQL+PHPã®ã¤ã³ã¹ãã¼ã«(LAMPç°å¢æ§ç¯)ãããã®VPS Apache+MySQL+PHPã®ã¤ã³ã¹ãã¼ã«(LAMPç°å¢æ§ç¯) ãããã®VPS ãã¡ãã®è¨äºã®ç¶ãã¨ããä½ç½®ä»ãªã®ã§äºåã«èªãã§ããã¨å¹¸ãã«ãªãããã:) ãããã®VPSã«(CentOS6ããè¯ã)Scientific Linux6ãã¤ã³ã¹ãã¼ã« ãããã®VPS ãã°ã¬ãã¼ã(logwatch)ã¨ä¸æ£ã¢ã¯ã»ã¹æå¦(denyhosts)ã®ã¤ã³ã¹ãã¼ã« ã¾ãã¯ãææ°çã®MySQL ãPHP ãå ¥ããããã« yum ãªãã¸ããªã®è¿½å ã»epel # ãããã®VPS ãã°ã¬ãã¼ã(logwatch)ã¨ä¸æ£ã¢ã¯ã»ã¹æå¦(denyhosts)ã®ã¤ã³ã¹ãã¼ã« # ã®è¨äºçãå®æ½ãã¦ã㦠# æ¢ã«å ¥ã£ã¦ããã®ã§ããã°å¿ è¦ããã¾ããã $ sudo rpm --import http
è² è·çã«å³ãããªã£ã¦ããã®ã§ sakuratan.biz ã Apacheï¼ãããã¹ã¿ã³ãã¼ãï¼ãã nginxï¼ããã VPS 512ï¼ã«ç§»è»¢ãã¾ããã é »çºãã¦ãã 503 ãã»ã¨ãã©åºãªããªã£ã¦å¿«é©ã§ãã Apache ãã VPS ã® nginx 㸠WordPress ã移転ãããã¨èãã¦ãã人ãããããªã¼ã¨æãã¾ããã®ã§ãããã VPS 㧠nginx ãªãã¼ã¹ããã¯ã·ã使ã£ã WordPress ããã°ã®æ§ç¯ããæ¹æ³ããã£ã¤ãæ¸ãã¦ããããã¨æãã¾ãã çµæ§é·æã«ãªã£ã¦ãã¾ãã¾ããã®ã§ãå ã«ç´¢å¼ãè¼ãã¨ãã¾ãã nginx ã¨ã¯ nginx ãéãçç± ãªãã¼ã¹ããã¯ã· ããã VPS ã«ã¤ã³ã¹ãã¼ã«ããã·ã¹ãã æ§æ EPEL ããã±ã¼ã¸ãªãã¸ããªã®ã¤ã³ã¹ãã¼ã« MySQL ã®ã¤ã³ã¹ãã¼ã« PHP ã®ã¤ã³ã¹ãã¼ã« nginx ã®ã¤ã³ã¹ãã¼ã« nginx 㨠PHP FastC
ãã®ããã°ã¯ããã VPS ã§åããã¦ããã®ã§ãããããã VPS ã®ä¸çªå¼±ãã¨ããã¯ã¡ã¢ãªã®å¤§ããã 512MB ã¨ããã¨ãããªãã§ããããPHP ã¿ãã㪠LL ã¯çµæ§ã¡ã¢ãªã¯å¯è±ªçã«ä½¿ãã®ã§ mod_php 使ã£ã¦ httpd ã®ã¡ã¢ãªãè¨ãããã¦ãã¨ãåææ¥ç¶æ°ãããªã«ä¸ããããªãããã§ãã ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã WEB ãµã¼ãã¨åãé¢ãã®ã§ããã°ãå®çªã¨ãã¦ã¯ WEB ãµã¼ãã¨ã㦠Apache+mod_proxy ã lighttpd ã nginx ãå段ã«ç½®ãã¦ã mod_php ã§èµ·åãã Apache ã«ãããã·ãã¦ä¸ããã¨ããã®ãä¸ã¤ã®ããæ¹ã§ãã ãã ã1 å°ã®ãã¹ãã§ãã£ã¦ãã®ã§ Apache ã 2 種é¡ä¸ããã¨ããªããæ°æã¡æªããã Apache 以å¤ã¯ããã¾ãããåãããªãã ãããªæã«ã¯ãFastCGI ã使ã£ã¦ httpd ããåãé¢ãã®ã常å¥æ段ãª
â»ãã¹ã¦åããµã¼ãä¸ã§å®é¨ãã¦ãã¾ãã ã¢ã¯ã»ã©ã¬ã¼ã¿ç¡ãã¨æ¯ã¹ãã¨å§åçãªããã©ã¼ãã³ã¹ããããåºãã¦ã¾ããã Apache ã®è¨å® WordBench ãµã¼ããå容ãã¦ãããã¼ã¿ã»ã³ã¿ã¼ã¯ãµã³ãã¼ã«ããããéä¿¡éãæããå¿ è¦ãããã¾ãã ã¨ãããã㧠/etc/httpd/conf.d/ ã«ä»¥ä¸ã®ãããªå 容ã®è¨å®ãã¡ã¤ã«ã追å ã mod_deflate 㨠mod_expires ãè¨å®ãã¾ããã AddType image/x-icon .ico <IfModule mod_deflate.c> SetOutputFilter DEFLATE BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSI[E] !no-gzip !gzip-o
ãã¤ã¼ãç§ï¼ä»äºã¯ã·ã¹ãã ã¨ã³ã¸ãã¢ããã¦ãã¾ããããµã¼ãã¼æ§ç¯ãphpãªã©ã¯åå¿è ããã¡ã¤ã³ã®åå¾ãªã©ãã£ã¦ã®ã»ããã¨ããç«å ´ã§ãã å½æè©å¤ã ã£ããããã¤ã³ã¿ã¼ãããã®VPSã使ããCentOS + Apache + Tomcat + MySQL + Java ã¨ããç°å¢ã§èªåç¨ã®WEBãµã¼ãã¹ãä½ã£ãã¨ãã«åç §ãããµã¤ããåå¿é²ãããã¦ã¾ã¨ãããã¨æãã¾ãã ãããã®VPSã使ãã¯ããã â ã¢ã«ãã³ãã¤ãª SSH,Apache,Ruby,MySQL,Subversionãªã©ã«ã¤ãã¦ã ããããããããèªãã°å¤§ä½ã®ãã¨ã¯ã§ãã¾ãã CentOSããµã¼ãã¼ã¨ãã¦æ´»ç¨ããããã®åºæ¬çãªè¨å® â ãããã¤ã³ã¿ã¼ãããåµæ¥æ¥è¨ ãããã¤ã³ã¿ã¼ãããã®ç°ä¸ç¤¾é·ã®ããã°ã ããã©ã¼ãã³ã¹ã«ã¤ãã¦ã®è¨å®ãåèã«ãã¾ããã CentOSã§èªå® ãµã¼ãã¼æ§ç¯ â CentOSã§èªå® ãµã¼ãã¼æ§ç¯ ãã説æ
ãããã¤ã³ã¿ã¼ãããã® VPS ãã¼ã¿çã«ç³ãè¾¼ãã ã®ã§ããããã®ã¾ã¾ã ã¨æ¾ç½®ããã¾ã¾ãã¼ã¿ãã¹ããçµãã£ã¡ãããããªæ°ãããã®ã§ããµã¼ãã®è¨å®ããã¤ãã§ã«ã¡ã¢æ®ããã¨ã«ãã¾ãããã¨ããããç¨éã決ã¾ã£ã¦ãªãã®ã§æãã¤ããé ã§ä½æ¥ãã¦ã¾ããã¨ãããã¨ã§ããæµãã£ãw ãã£ãä½æ¥ã¯ããã±ãããã£ã«ã¿ï¼iptablesï¼ã®è¨å®ãApache2 ã®ã¤ã³ã¹ã³ã¨è¨å®ãPython-2.6.5 ãã½ã¼ã¹ããã¤ã³ã¹ã³ãPHP-5.2.14 ãã½ã¼ã¹ããã¤ã³ã¹ã³ãã¨ããã«ä»éããä½æ¥ã§ãã 1. ã¾ãã¶ã£å£ããã¨ãã«ã©ããããè¯ãã調ã¹ã VPS ã¨ãè¨ã£ã¦ããæ®éã«å ¨æ¨©éããããªã¢ã¼ããµã¼ãã§ãã®ã§ãè¨å®ã¨ãééã£ãã¨ãã«ã©ãã¾ã§å¯¾å¦ã§ããã調ã¹ã¨ããªãã¨è²ã ã¾ãããã ã¨ãããããããã¤ã³ã¿ã¼ãããããæ¥ãã¡ã¼ã«ã«ã¯ã ãVPSã³ã³ããã¼ã«ããã«ã«ã¤ãã¦ã VPSã³ã³ããã¼ã«ããã«ã§ã¯ãä»®æ³ãµã¼ãã®ãª
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}