I have read a lot of similar articles before installing rockmongo in ubuntu 12.04, and I feel a little complicated. I have studied it myself and encountered many problems. I will sort out the following articles today, I hope to help others www.2cto.com 1. install php sudo apt-get install php5 2. installing php-cgi sudo apt-get install php5-cgi 3. install nginx sudo apt-get install nginx 4. install mongodb sudo apt-get install mongodb 5. install pecl sudo apt-get install pecl 6. install the mongo driver sudo pecl install mongo 7. configure cgi sudo vim/etc/php5/cgi/php. ini and then add extension = mongo. so 8. download rockmongo http :/ /Route 9. if you do not set the directory access permission, you may not be able to access it. My computer is like this. Some may not need sudo chmod 777-R $ rockmongo 10. configure nginx sudo vim/etc/nginx/conf. d/rockmongo. conf copy the following server {# This is the port number of your rockbench Web server. If not set, the default value is 80 listen 12345; # This is the path root $ rockmongo; location ~ after downloading and unzipping ~ \. Php $ {# php-cgi port number. Here I set 9000 fastcgi_pass 127.0.0.1: 9000; fastcgi_index index. php; fastcgi_param SCRIPT_FILENAME $ rockmongo/$ fastcgi_script_name; include fastcgi_params ;}} 11. start the server. In the terminal xia mongod php-cgi-B 9000 nginx12, open the browser and enter localhost: 12345/index. the default php username and password are both admin and OK.