Centos Installation LNMP full version

Source: Internet
Author: User
Tags vps

1. Using Putty or a similar SSH tool Logon Server :

Run after Login

    1. Screen -S lnmp

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

I am a centos system, so run:

  1. Wget-C http://Soft.Vpser.net/lnmp/lnmp10-full. Tar. Gz && tar zxvf lnmp1. 0-full.. Gz&& CD lnmp1. 0-full && ./ centos.

Enter the MySQL password and return.

Whether to install InnoDB, install input y, do not install input n. Small memory will not be installed, the rear optimization VPS will mention this.

Select PHP Version

Select the MySQL version. After you will be prompted "Press any key to start ..." and hit Enter to confirm the installation, LNMP script will automatically install the compiler nginx, MySQL, PHP, PhpMyAdmin, Zend optimizer software. Generally more than 10 minutes to complete. Specific process or have any problems can be viewed Lnmp official website http://lnmp.org/

5. Test LNMP Environment

Finally, the building is completed, at this time in the browser input "http://Public IP Port" access to the LNMP environment we just built. A successful build page appears! LNMP environment is completed.

6, add the virtual host (popular point is to add a website (domain name) on the vps/service provider.

SSH login host, find vhost.sh run (./vhost.sh) in the LNMP directory

Enter your domain name, enter.

Here you are prompted to add more domain names, for example, www.keenwon.com and keenwon.com to the same virtual host. Multiple domain names are separated by spaces.

Enter your directory here and use the default directory to return directly

Here you choose whether to add pseudo-static rules, such as no pseudo-static, direct input n Enter. If you need to enter Y carriage and then select Pseudo-Static or custom pseudo-static, the following is a pseudo-static selection hint:

The default already has Discuz, DISCUZX, WordPress, Sablog, Emlog, Dabr, Phpwind, WP2 (two-level directory WP pseudo-static), Dedecms, Drupal, Ecshop, Shopex, Can directly enter the above name WordPress can. (Note: The above except for special note all rules can only be used for the root directory site, level two directory site can not be used, you need to modify the rules.) )

Whether you need to start log, generally do not open. Then prompt press any key to start create Virtul host ..., enter again to confirm that the virtual host will be added automatically.

The above content is from the network, the following configuration is my own installation process records

To delete a virtual host:

SSH Login Execute command: rm/usr/local/nginx/conf/vhost/domain name. conf
For example, the primary domain name we added earlier is www.vpser.net, then the command is: rm/usr/local/nginx/conf/vhost/www.vpser.net.conf

7 Creating a Database

Open http://Your ip/phpmyadmin/login, first create a user, preferably a site for a user's database, click on the "Permissions" to wear pieces of new user tips. Create a new Tuzhuke user here, and note the user database selection.

After creating the user, log out and log in to the Tuzhuke login phpMyAdmin that you just created, sign in and create a database

At this point, the phpMyAdmin part has been completed!

8 Installing WordPress

Open WordPress Chinese official website (http://cn.wordpress.org/) can find the latest version of WordPress, and extract to the Web directory. Continue to enter the following command under SSH:
wget Http://cn.wordpress.org/wordpress-3.8.1-zh_CN.zip
Unzip Wordpress-3.8.1-zh_cn.zip
Chown-r www:www WordPress
MV wordpress/*/home/wwwroot/' domain name '/

Important: 1 is to copy the contents of WordPress to the previous domain name directory, not a folder!

2 WordPress related top-level directory all permissions and need to change to www!

9 Enter the binding domain name in the browser, set the wordpress! Enter the name of the database created by Tuzhuke, and the user name Tuzhuke and password

Submit later to create a user to manage the site can, follow the prompts to set up wordpress everything OK!

Centos Installation LNMP full version

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.