Build Nginx + PHP + MongoDB environment on VPS

Source: Internet
Author: User
Tags vps
Today we are talking about setting up and playing games. It is still quite smooth. We will record the process to facilitate future queries. VPS is installed with Ubuntu and purchased at DigitalOcean. What is his advantage? The price is cheap and the speed is good. (Advertised) 1. Nginx reference: www. digitalocean. comcommunityarticleshow-to-set-up-nginx-virtual-

Today we are talking about setting up and playing games. It is still quite smooth. We will record the process to facilitate future queries. VPS is installed with Ubuntu and purchased at DigitalOcean. What is his advantage? The price is cheap and the speed is good. (Advertising) 1, Nginx reference: https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-

Today we are talking about setting up and playing games. It is still quite smooth. We will record the process to facilitate future queries. VPS is installed with Ubuntu and purchased at DigitalOcean. What is his advantage? The price is cheap and the speed is good. (Advertisement)

1. Nginx
Reference: https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts-3

2. PHP is installed in the second half.
Reference: https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04

3. MongoDB
Reference: https://www.digitalocean.com/community/articles/how-to-install-mongodb-on-ubuntu-12-04

4. PHP driver
Download 1.2.12 (wget, axel, etc.) at http://pecl.php.net/package/#, and then run the following command:

  • Tar zxf mongo-1.2.12.tgz
  • Cd mongo-1.2.12
  • Phpize5 (you may need to execute apt-get install php5-dev first)
  • ./Configure
  • Make install (you may need to execute apt-get install make first)

Add extension = mongo. so to the php. ini file (depending on the configuration, check whether the path is required. I directly add the path)

5. Use phpinfo () to view the result.

Original article address: Build the Nginx + PHP + MongoDB environment on VPS. Thank you for sharing it with me.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.