LNMP1.0 one-click installation package easily builds the WEB Environment

Source: Internet
Author: User
Tags vps

System Requirements:

  • 2 GB or more hard disk space required
  • MB or above memory, OpenVZ recommended MB or above (do not use 64-bit systems for small memory)
  • The VPS or server must be connected to the Internet!
  • Linux is case sensitive. Please note when entering commands!
LNMP one-click installation package V1.0 small memory do not use 64-bit systems)
Installation steps:

1. Use putty or similar SSH tools to log on to VPS or server;

Run after login:Screen-S lnmp

If the prompt "screen: command not found" does not exist, Run "yum install screen" or "apt-get install screen" to install the screen. A detailed screen tutorial is provided.

2. download and install the one-click installation package of LNMP:

You can choose to use the downloaded version (recommended for foreign or U.S. VPS) or the full version (recommended for domestic VPS). There is no difference between the two.

Before executing the installation program, you need to confirm your Linux release. You can run: cat/etc/issue to check whether it is CentOS, Debian or Ubuntu, you can also view it on the control panel provided by the VPS service provider. After confirming, select the following system installation command:

Run the following command in CentOS:Wget-c http://soft.vpser.net/lnmp/lnmp1.0-full.tar.gz & tar zxvf lnmp1.0-full.tar.gz & cd lnmp1.0-full &./centos. sh

Run the following command in the Debian system:Wget-c http://soft.vpser.net/lnmp/lnmp1.0-full.tar.gz & tar zxvf lnmp1.0-full.tar.gz & cd lnmp1.0-full &./debian. sh

Run the following command in Ubuntu:Wget-c http://soft.vpser.net/lnmp/lnmp1.0-full.tar.gz & tar zxvf lnmp1.0-full.tar.gz & cd lnmp1.0-full &./ubuntu. sh

In addition, you can use soft2.vpser.net, soft3.vpser.net, and a Zhejiang Unicom image soft4.vpser.net (provided by www.pv.com.cn) to download two foreign images. The specific replacement method is.

To Install Version 0.9, visit the http://old.lnmp.org/install.html

After executing the preceding command, the following prompt is displayed:
(Note: If it is a Debian system, the system will prompt Where are your servers located? Asia, america, europe, oceania or africa. Select the continent where the server/VPS is located. Generally, the VPS is in the United States. Press enter. If it is in China, enter asia and press Enter. If the input is incorrect, press Ctrl and then press the Backspace key to delete the file. You can delete the file by using this method below .)

In this step, you need to set the MySQL root Password. Enter the password and press enter to go to the next step, as shown in:

Check whether MySQL InnoDB is enabled. If you are not sure whether y is enabled, you can disable it in the MySQL file. Enter y to enable y, and enter n to disable MySQL. Enter y or n and press enter to go to the next step. The following information is displayed:

This step is to select the php version. You can select PHP 5.3.17 or PHP 5.2.17. If you install PHP 5.3.17, enter y, install PHP 5.2.17, enter n, enter y or n, and press Enter, select the next MySQL version, for example:

You can select MySQL 5.5.27 or 5.1.60. Input y if MySQL 5.5.27 is installed, input n if MySQL 5.1.60 is installed, enter y or n, and press enter to complete the selection.

Prompt "Press any key to start...", Press enter to confirm installation.
The LNMP script automatically installs and compiles software Nginx, MySQL, PHP, phpMyAdmin, and Zend Optimizer.

The installation time may be several minutes to several hours, mainly because the network speed configured on the machine may affect the installation.

3. Installation Complete
If the following page is displayed:

The installation is successful.
Next, pressAdd a VM tutorial, add a VM, upload a website through sftp or ftp server, resolve the domain name to the IP address of the VPS or server, and the resolution takes effect.

4. Installation failed

If a similar prompt is displayed, the installation fails, indicating that the installation is not successful !! You need to use winscp or other similar tools to download the lnmp-install.log under the/root directory, post to the LNMP support forum to indicate your release name version number (available through cat/etc/issue), 32-bit or 64-bit, And the lnmp-install.log compressed in the form of attachments to the Forum, we will find errors through the log, and give the corresponding solution.

5. add and delete virtual hosts and pseudo-static management
Http://lnmp.org/faq/lnmp-vhost-add-howto.html

6. Installation of eAccelerator, xcache, memcached, imageMagick, and ionCube
Http://lnmp.org/faq/Add-ons.html

7. LNMP-related software directories and file locations
Http://lnmp.org/faq/lnmp-software-list.html

8. LNMP status management command
Http://lnmp.org/faq/lnmp-status-manager.html

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.