CodeIgniterã®å¦ç¿ 67 - Zend ServerãLinodeã®VPSä¸ã«å ¥ãã¦CodeIgniterãåããã¦ã¿ããVPSã§é㶠-ãã®ï¼
ä»æ¥ã¯ããããã¦ããçããªã¨ã³ããªã¼ã
ãã®ååãã linodeã®fremontã®VPS(Linode360)ã«ã
ãã®ããã åºã Zend Server ãçªã£è¾¼ãã§ã¿ãã
ãã§ãã®ä¸ã«ãã®åä½ã£ã ã¤ãã¼ã®ç»åæ¤ç´¢apiã¨å½¢æ
ç´ è§£æapiã®ç»åæ¤ç´¢ãéã³ã¢ããªãã®ãã¦ã¿ãã
ã¡ãªã¿ã«CodeIgniterã®ãã°æ©è½ãZend_Logã«ç½®ãæãã¦ããã
(CodeIgniterã®å¦ç¿ 63 - ã¤ãã¼ã®ç»åæ¤ç´¢apiã¨å½¢æ ç´ è§£æapiãçµã¿åããã¦ãéã³ã¢ããªãä½ã-ãã®ï¼ï¼ç¾å¨ã®ã³ã¼ãå®æ度100%ï¼ http://d.hatena.ne.jp/dix3/20090114/1231941174)
linoode - http://www.linode.com/
zend - http://www.zend.com/
å®é¨URLï¼VPSä¸ï¼
å®é¨URLã¯ãã: http://pizw.com/
ãªããï¼æåãã¡ã¤ã³ com , org , net , biz , infoãã»ããã§æã£ã¦ãã俺ã以åæ¾åºããã¦ãã®ãæç²ãã¦ãããã
åä½ç»é¢ã¤ã¡ã¼ã¸
ç»é¢ã¯ãããªæãï¼firefox以å¤ã ã¨å´©ãããããï¼:
ã¡ã¢ãª360MBãããªãããããã¾ãããããªãã§ãã
ï¼ç»åã¯yimg.comã¸ã®imageã¿ã°ãªã®ã§ã転ééã¯å¤§ãããã¨ç¡ããã©ãï¼
å¾®å¦ã«é
ãã®ã¯ã¤ãã¼ã®apiå´ã¸ã®æ¥ç¶ã¦ã§ã¤ããããã¨å
¥ãã¦ããã®ã¨ããã®åå¿å¾
ã¡ã主åå ã§ãã
ãã£ãã·ã¥ã«ããããã¦ããå ´åã¯åå¿ã¯éãã¨æãã
ãã¨ããããå¼ã£ã¦èª¿æä¸ã ããä¸éç¶æ
ãããããã
ç©´ããã£ããå
¥ãããã®ã§ãææãã ããã
VPSã«Zend Serverãã¤ã³ã¹ãã¼ã«ããã¡ã¢
ã¾ã ãã¼ã¿çãããã®ã§ãå ã«æ»ãããã
ã¡ãªã¿ã«ããã¹ãç°å¢ã§ãããªãã¨ãã¶ãæ²ãããã¨ã«ãªãã®ã§æ³¨æãã¦ãã
ï¼ããããã¤ã³ã¹ãã¼ã«ï¼phpå¨ãã®ããã±ã¼ã¸ãåé¤ãããããï¼
apache2+lighthttpd(管çç»é¢ç¨)+php5+ZendFrameworkã¦ããçã ãªæ§æã¿ããã
ããã¥ã¢ã«è¦ãã°åãããã©ä¸å¿æ¸ãã¦ããã
ï¼ï¼ããã¥ã¢ã«ã®ãã¦ã³ãã¼ã
http://www.zend.com/en/products/server/downloads-all
ã§ããã¦ã³ãã¼ããé²ããã¨ãpdfã®ZendServer-CE-Installation-Guide_4.0_Beta ãªããã®ããã¦ã³ãã¼ãåºæ¥ãã
ãã®PDFãèªã¿é²ãã¦ã¿ãã¨ãUbuntuåã®å ´åã¯ãaptitudeã§ä¸çºã¤ã³ã¹ãã¼ã«åºæ¥ããããã
以ä¸å ¨é¨ã«ã¼ã権éã§ä½æ¥ã
ï¼ï¼ /etc/apt/sources.listã®ç·¨é
æçµè¡ã«ã deb http://repos.zend.com/deb/ce ce non-free ã追å
ï¼ï¼ã¬ãã¸ããªã®ãããªãã¯ãã¼ã追å
wget http://repos.zend.com/deb/zend.key -O- |apt-key add -
ï¼ï¼aptitude update ã®å®è¡
ï¼ï¼zend-server-ceã®ã¤ã³ã¹ãã¼ã« å®è¡
aptitude install php5-extra-extensions-zend-ce zend-ce
php5-extra-extensions-zend-ce ã®æ¹ã« mbstring.soã¨ããæãã®ã§ããã®ï¼ã¤ã
mysqlã®ã¤ã³ã¹ãã¼ã«ã¨ããhttpd.confã¨ãã¯ç ãã®ã§èª¬æçç¥ã
ï¼80çªãã¼ããéãã ufw allow http ãå¿ããã«ãï¼
ï¼ã©ãã試ã人ã¯å¥½ãè
ã ããããèªåã§èª¿ã¹ãã ãããããããããï¼
Zend Serverã®ç®¡çç»é¢
ã¤ã³ã¹ãã¼ã«ãçµããã¨ã http://localhost:10081 åã¯ãhttps://localhost:10082 ã§Zend Serverã®ç®¡çç»é¢ã«ç¹ããããã
ï¼ç®¡çç»é¢ã¸ã¯puttyã§sshãã¼ããã©ã¯ã¼ãã£ã³ã°çµç±ã§æ¥ç¶ï¼
ï¼ä»¥ä¸ç»é¢ã¹ãã¹ãï¼
ã¾ã ç´°ããè¦ã¦ãªããã©ãªãããã£ããããã
å
¨ä½çã«ColdFusion Administratorã£ã½ããã
å§ãã«ç®¡çç»é¢ã®ãã¹ã¯ã¼ã決ããã£ã¦ãã
ããã·ã¥ãã¼ãã«ã³ã¤ã¤
ã³ã³ãã¼ãã³ãã®ä½¿ç¨å¶å¾¡ã¨ãè¨å®ãåºæ¥ãã
extensionã®ä½¿ç¨å¶å¾¡ã¨ãè¨å®ãåºæ¥ãã使ããªãããªã®ã¯ããã§OFFåºæ¥ãã
å
é¨ã§
/usr/local/zend/etc/php.iniã¨ãã/usr/local/zend/etc/ext.d/*.ini ã¨ããæ¸ãæãã¦ãè¨å®ãã¦ããããã ã
ãã°ç¢ºèªç»é¢ã
ãã°ã¯ã/usr/local/zend/var/log 以ä¸ã«ããã(CodeIgnierã®ãã°ã¯å¥ï¼
php.iniã®å 容ããDirectivesã§è¨å®åºæ¥ãã
次åããã¯ãããªãã°ã¤ã³ç»é¢ã
CodeIgniterã§ä½ã£ããéã³ã¢ããªãè¨ç½®ããã
詳ããã¯ç ãã®ã§çç¥ã
ããã¥ã¡ã³ãã«ã¼ã㯠/var/www/
ã ã£ãã®ã§ã
ããã« index.php ã¨cssãã¡ã¤ã«ã¨ãã ãç½®ãã¦ã
systemã¨applicationãã£ã¬ã¯ããªã¯ããã¥ã¡ã³ãã«ã¼ãå¤ã«è¿½ãåºãã¦ããã
CodeIgniterä¸ã®Zend Frameworkã/usr/local/zend/share/ZendFramework以ä¸ã使ãããã«ããã
以åã®ã¨ã³ããªã¼
CodeIgniterã®å¦ç¿ 43 - ãã°åºåãZend_Logã«ç½®ãæãã http://d.hatena.ne.jp/dix3/20081117/1226870236
ã®æã«ã
ããã¥ã¡ã³ãã«ã¼ã/index.phpå ã§ã
ini_set( 'include_path', APPPATH . 'my_classes/' );
ã¨ãã¦ã
application/my_classes/Zend/以ä¸ã®Zend Frameworkä¸å¼ã使ã£ã¦ãããã
ä»åZendServerã§ãããä¸è¦ã«ãªãã®ã§ãã®è¨è¿°ãå¤ãã
ã¤ãã§ã«application/my_classes/Zend/ 以ä¸ã¯åé¤ããã
ããã§Zend Frameworkãå ¥ãæ¿ããæéãæ¸ãããã
åããã¦ã¿ãã
ããæ®éã«ãããã£ã½ãã以å¤ã«ãã£ãã ZendServerã«ä¹ã£ãã£ãã
ããã§ããZend Frameworkã¨ãèåã§ããã£ã¦ãããã
æ©ãæ£å¼çã«ãªããªãããªã¼ã
dpkg -l |grep zend ãã¦ã¿ã
ãããªæã (community edition)é常ã®ããã±ã¼ã¸æ«å°¾ã« -zend-ceä»ãã®ãã®ã«ç½®ãæãããï¼ã¤ã³ã¹ãã¼ã«å ´æãåºæ¬ /usr/local/zend/以ä¸ã«ãªãï¼
ã¢ãªã¢ãªã¤ã³ã¹ãã¼ã«ããã¦ãã¾ãããä¸è¦ãªãã®ã¯ç®¡çç»é¢å´ã§ä¸ä½¿ç¨ã«ãã¦ãã¼ãããªãã®ã§ä¸å¿åé¡ãªãã
# dpkg -l|grep zend ii libapache2-mod-php5-zend-ce 5.2.8+b56 server-side, HTML-embedded scripting languag ii libframework1-zend-ce 1.5.2-1+b26 Zend framework's library portion [does not i ii libmssql-zend 1.0-1+b18 Needed shared libraries in order for the PHP ii liboci-zend 1.0-1+b4 Needed shared libraries in order for the PHP ii lighttpd-zend-ce 1.4.18-1+b54 dedicated lighttpd server for Zend Community ii php-bcmath-zend-ce 5.2.8+b19 PHP extension for arbitrary precision mathem ii php-bz2-zend-ce 5.2.8+b20 PHP bz2 extension. ii php-calendar-zend-ce 5.2.8+b19 The calendar PHP extension presents a series ii php-ctype-zend-ce 5.2.8+b19 PHP ctype extension. ii php-curl-zend-ce 5.2.8+b20 PHP supports libcurl, a library created by D ii php-data-cache-zend-ce 4.0.32+b51 Zend's extension for PHP data caching and pa ii php-debugger-zend-ce 5.2.17+b43 Zendâs extension for server side debugging ii php-dev-zend-ce 5.2.8+b27 Zend Server development package. Includes PH ii php-exif-zend-ce 5.2.8+b17 The PHP exif extension enables you to work w ii php-fcgi-zend-ce 5.2.8+b34 PHP FastCGI binary used by the Zend Server's ii php-fileinfo-zend-ce 5.2.8+b16 PHP fileinfo extension. ii php-ftp-zend-ce 5.2.8+b17 PHP extension that implements client access ii php-gd-zend-ce 5.2.8+b19 PHP GD extension. ii php-gettext-zend-ce 5.2.8+b17 PHP extension that implements an NLS (Native ii php-gmp-zend-ce 5.2.8+b18 PHP extension that enables work with arbitra ii php-iconv-zend-ce 5.2.8+b18 This PHP extension provides an interface to ii php-imagick-zend-ce 5.2.8+b3 Imagick is a native php extension to create ii php-imap-zend-ce 5.2.8+b18 PHP extension that enables operation with th ii php-intl-zend-ce 5.2.8+b4 The internationalization extension (Intl) is ii php-json-zend-ce 5.2.8+b18 This PHP extension implements the » JavaScr ii php-ldap-zend-ce 5.2.8+b18 LDAP PHP extension. LDAP is the Lightweight ii php-mbstring-zend-ce 5.2.8+b17 The mbstring PHP extension provides multibyt ii php-mcrypt-zend-ce 5.2.8+b18 This PHP extension provides an interface to ii php-memcache-zend-ce 5.2.8+b17 The PHP Memcache extension provides handy pr ii php-mhash-zend-ce 5.2.8+b18 PHP extension for mhash. Mhash can be used t ii php-mime-magic-zend-ce 5.2.8+b17 PHP mime_magic extension. ii php-ming-zend-ce 5.2.8+b19 PHP extension for Ming. ii php-mssql-zend-ce 5.2.8+b18 PHP extension that allows access MS SQL Serv ii php-mysql-zend-ce 5.2.8+b22 PHP extension that allows access to MySQL da ii php-mysqli-zend-ce 5.2.8+b22 The mysqli PHP extension allows access to th ii php-oci8-zend-ce 5.2.8+b23 PHP extension for OCI8. Allows access to Ora ii php-odbc-zend-ce 5.2.8+b17 PHP odbc extension. ii php-optimizer-plus-zend-ce 4.0.48+b56 Zendâs extension for using opcode caching ii php-pcntl-zend-ce 5.2.8+b17 Process Control support for PHP. Implements ii php-pdo-mysql-zend-ce 5.2.8+b20 PHP extension that implements the PHP Data O ii php-pdo-oci-zend-ce 5.2.8+b28 PHP pdo-oci extension. ii php-pdo-pgsql-zend-ce 5.2.8+b21 PHP extension that implements the PHP Data O ii php-pgsql-zend-ce 5.2.8+b19 PHP extension for PostgreSQL. PostgreSQL dat ii php-posix-zend-ce 5.2.8+b17 PHP extension that provides an interface to ii php-shmop-zend-ce 5.2.8+b17 PHP extension that allows PHP to read, write ii php-soap-zend-ce 5.2.8+b17 The SOAP PHP extension can be used to write ii php-sockets-zend-ce 5.2.8+b19 PHP sockets extension. ii php-sqlite-zend-ce 5.2.8+b17 PHP extension for the SQLite Embeddable SQL ii php-sysvmsg-zend-ce 5.2.8+b16 The sysvmsg PHP extension. ii php-sysvsem-zend-ce 5.2.8+b16 PHP extension that provides semaphore functi ii php-sysvshm-zend-ce 5.2.8+b16 PHP extension for Sys V shared memory. ii php-tidy-zend-ce 5.2.8+b23 PHP extension for the Tidy HTML clean and re ii php-tokenizer-zend-ce 5.2.8+b16 PHP extension that provides an interface to ii php-wddx-zend-ce 5.2.8+b17 PHP wddx extension. ii php-xmlreader-zend-ce 5.2.8+b17 The XMLReader PHP extension is an XML Pull p ii php-xmlrpc-zend-ce 5.2.8+b19 PHP extension that enables writing XML-RPC s ii php-xmlwriter-zend-ce 5.2.8+b17 PHP XMLWriter extension wrapper around the l ii php-xsl-zend-ce 5.2.8+b17 The XSL PHP extension implements the XSL sta ii php-zem-zend-ce 5.1.53+b41 Zend Extension Manager. Used for loading Zen ii php-zendutils-zend-ce 1.0.39+b46 PHP extension for use of the Zend Server Com ii php-zip-zend-ce 5.2.8+b15 This PHP extension enables you to transparen ii php5-common-extensions-zend-ce 4.0.0-1+b58 PHP commonly used extensions. ii php5-extra-extensions-zend-ce 4.0.0-1+b58 Additional PHP extensions. ii php5-unix-extensions-zend-ce 4.0.0-1+b58 PHP Sys V and POSIX extensions. ii zend-base-ce 1.0.0-1+b60 Basic files needed for Zend Server Community ii zend-ce 4.0.0-1+b58 Zend web application server package. ii zend-ce-doc 4.0.2+b15 Zend CE documentation. ii zend-extensions-ce 4.0.0-1+b58 Zend Server modules. ii zend-framework-ce 1.7.4+b30 Zend's PHP Framework. ii zend-gui-ce 4.0.5+b127 Zend Server Community Editionâs Administra
ã¨ããããä»æ¥ã¯ããã¾ã§ã
ãã³ããã¼ã¯æ¯è¼ã¨ãã¯æ°ãåããããã£ã¦ã¿ãã
å®é¨ãµã¤ãã® http://pizw.com/ ã¯ã
対象ãµã¤ããã¯ã¦ãªéå®ï¼ã¨ãã¤åçã¯æ¤ç´¢ã§ããªãããã«ãã¦ããã®ã§ã
å¤ãªãã¼ã¯ã¼ãã¨ãå人åã¨ãã¯å
¥ããªãã§ããã¿ããªã®ææ°æ¤ç´¢ãã¼ã¯ã¼ãã«æ®ãã¡ããããã
ï¼ã¾ããã£ããåºãªãããã«ããããè¯ããã©ï¼
é¢é£ã¨ã³ããªã¼ï¼
VPSã§é㶠-ãã®ï¼ Linodeã§VPSåããã
VPSã§é㶠-ãã®ï¼ ããä¸å°Linodeã§åããã
VPSã§é㶠-ãã®ï¼ Linodeã®ã¢ãã©ã³ã¿ï¼å é¸é¨ï¼ã¨ãã¬ã¢ã³ãï¼è¥¿æµ·å²¸ï¼ã®pingé度æ¯è¼ - ãã£ã±ã西海岸ã¯å¿«é©
VPSã§é㶠-ãã®ï¼ Linodeå¶å¾¡ç¨ã®iphoneã¢ããªãå ¥ãã¦ã¿ããä½å¦ã§ããµã¼ãç¶æ³ç¢ºèªï¼åèµ·åãï½ï¼é¯ä½æã»DNS管çã¾ã§å¯è½
VPSã§é㶠-ãã®ï¼ Linodeã¨ServersMan VPSã¨ãããã®VPSã¨ãããå°ç¨é¯ã¨èªå® é¯ã¨ã®æ¯è¼ï¼ç§ã®VPS&èªå® é¯unixbenchä¸äººç¥ãçµæ 詳細ï¼
VPSã§é㶠-ãã®ï¼ Linodeã¨ServersMan VPSã¨ãããã®VPSã®è»¢éé度ã®ç°¡æãã¹ãçµæ