Use Lowendscript one-key script to quickly deploy LNMP environments in small memory VPS hosts

Source: Internet
Author: User
Tags vps phpmyadmin
Although we now buy VPS host cost is very low, but as far as possible to save cost consideration, or in order to just project testing and learning, we will choose to buy small memory, cheap VPS host program. Especially like to toss the netizen, we can see a lot of 32MB, 64MB small Memory VPS Host site cases and tutorials, the old Chiang also through a series of articles introduced to 64MB VPS memory to move the main VPS host Building zblog PHP whole process.

Of course, for tossing/learning users, we can use a variety of ways to toss, our goal is to save resources as far as possible and to minimize the use of resources to improve the project/website usage rate. Similarly, the Lowendscript script from the foreigner is also able to build the LNMP website environment in the small memory VPS, moreover the start is relatively simple, the direct one key package installs.

Generally speaking, if we are small blog, test project page, buy a 128MB, 256MB and other small memory, resource allocation and system optimization, building a site is definitely not a problem, such as in the Lowendscript script, not to install the resource phpMyAdmin, Use a Debian 32-bit system that takes up less resources.

First, erection lowendscript LNMP Preparation

In this article, Chiang Kai-shek on the use of 256MB memory program VPS host to build, on hand there are 2 such machines, one is hostus Hong Kong 256MB Memory Scheme (introduction), one is bandwagonhost 256MB 10GB Memory Program (Introduction), Before writing this article, Chiang has installed the previous machine, so this demo will install the latter, this does not matter, mainly to verify the integrity of the script, no matter where we install.

The current server we need to install the environment, I use the Debian 6 32 bits, because the utilization of resources than the general release version much smaller.

Second, download and install the Lowendscript script

The code is as follows Copy Code

wget http://soft.itbulu.com/lnmp/setup-debian.sh
chmod +x setup-debian.sh
./setup-debian.sh System

After the command is executed, some necessary tool files are automatically installed.

The code is as follows Copy Code

Bash setup-debian.sh MySQL
Bash setup-debian.sh exim4
Bash setup-debian.sh Nginx
Bash setup-debian.sh php
echo "Php_fcgi_children=3" >/etc/default/php-cgi

Install the necessary system environment, such as MySQL, NGINX, PHP, and setup processes. After installation, the database password is stored in the/root/.my.cnf, we go to obtain, because here we do not install the resource phpMyAdmin software. In this way we will be able to open the IP address after the installation is over, and see the Nginx 404 error message, which represents the system installation completed.

Third, use Lowendscript to create a site

We may be more accustomed to using some one-key package to create a site, database a command to solve, if it is a manual compilation environment, you need to create folders, modify the configuration file, more trouble, especially the novice toss dizziness. Similarly, Lowendscript can also have quick scripts to install sites and databases.

1, create the site

The code is as follows Copy Code

./setup-debian.sh Site Laobuluo.com

The red part of the above command is our domain name, we can change our domain name. After creation, you will see the directory of the domain name folder in/var/www/.

2. Create a database

The code is as follows Copy Code

./setup-debian.sh Mysqluser laobuluo.com

The Execute command will display the created MySQL database, database username and password on the screen, and will generate a database backup file named mysql.conf in our Site directory, which we can save to the local or forget the password to check after we leave it.

3. Create WordPress site quickly

The code is as follows Copy Code

./setup-debian.sh WordPress laobuluo.com

Lowendscript Script system environment is also integrated to quickly install the WordPress program, according to the above command, we configure a good domain name can be quickly installed. However, Chiang personally suggested that if the small memory is not recommended to install WP, we can try to install zblog PHP or Typecho program, the function is good, the main occupation of resources are relatively low.

Four, Lowendscript small memory VPS Build Station summary

In this article, Chiang demonstrated that the Lowendscript script quickly deploys the LNMP Web site environment, the script is quite popular abroad, has been let as a recommendation. If we have small memory vps and need to build a station, you can try this script, at least we also try the new deployment environment

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.