MongoDBç phpMyAdminã®phpMoAdminã試ãã¦ã¿ã
æ®æ®µãMySQLã§ã¯Webã®ç®¡çãã¼ã«PhpMyAdminã使ã£ã¦å± ãã®ã§ãããMongoDBã使ã£ãéçºãããããã«ãªã£ãã®ã§Webã®ãã¼ã«ããããªãã¨æ¢ãã¦ã¿ãã¨ããphpMoAdminã¨ãããã¼ã«ããã£ãã®ã§è©¦ãã¦ã¿ã¾ããã
PHP+Apache+MongoDBç°å¢ãä¸ããä½æããã«ã¯ä»¥ä¸ã®ããã°ãã¾ã¨ã¾ã£ã¦ãã¾ãã
http://www.giantflyingsaucer.com/blog/?p=1826
phpMoAdminã®ã¤ã³ã¹ãã¼ã«
ããã§ã¯ãPHP+Apacheç°å¢ãããç¶æ
ããæ°ãã«PHP+MongoDBã®ç°å¢ãä½ãããã®æé ã®ã¿èª¬æãã¾ãã
OSã¯Ubuntu10.10ã§ãã
1. phpMoAdminã®å ¥æ
å ¬å¼ãµã¤ã http://www.phpmoadmin.com/ ã®ä¸ç¨ã«ãã[DOWNLOAD phpMoAdmin]ãªã³ã¯ãã¯ãªãã¯ãã¦phpmoadmin.zipããã¦ã³ãã¼ããã¾ãã
2. Apacheã«ç½®ã
phpmoadmin.zipã解åããã¨ãmoadmin.phpããã(ããã®ã¿)ã®ã§ããããApacheé ä¸ã«ç½®ãã¾ãã
3. MongoPHPDriverãã¤ã³ã¹ãã¼ã«
以ä¸ã®ãã¼ã¸ã«ã¤ã³ã¹ãã¼ã«æ¹æ³ãè¨è¿°ããã¦ãã¾ãã
http://www.php.net/manual/en/mongo.installation.php
$ sudo apt-get install php-pear php5-dev $ sudo pecl install mongo ... Build process completed successfully Installing '/usr/lib/php5/20090626/mongo.so' install ok: channel://pecl.php.net/mongo-1.2.4 configuration option "php_ini" is not set to php.ini location You should add "extension=mongo.so" to php.ini
php.iniãè¨å®ã以ä¸ã®ã³ãã³ãã¯Ubuntu10.10ã§è©¦ããå ´åã§ãã
$ sudo vi /etc/php5/apache2/php.ini
4. apacheåèµ·å
$ sudo /etc/init.d/apache2 restart
phpMoAdminã®ä½¿ãæ¹
ãã¼ã¿ãã¼ã¹ãã³ã¬ã¯ã·ã§ã³ã®é¸æãªã©ã¯ãããªæã
usersã®ã³ã¬ã¯ã·ã§ã³ãé¸æãã¦ã¿ã¾ããã
ä¸èº«ã¯ãDevise(https://github.com/plataformatec/devise)ãçæãããã®ã§ãã
ããã¥ã¡ã³ãã®ç·¨éãã追å ãã¤ã³ããã¯ã¹ã®è¿½å ãªã©ã®æä½ãä¸éãå¯è½ã§ãã