VPS Use Lnmp install wordpress tutorial _php Instance

Source: Internet
Author: User
Tags mysql version vps install wordpress

Objective

A few days ago, my friend had a free vps,256m memory on hand, and I decided to play with it. After some thinking, it is still used to hang the station. Then look at the CentOS6 system, decisively decided to use the Lnmp never played. So, Baidu, Google to find tutorials, a lot of tutorials are problematic, resulting in reloading countless times system, waste a lot of time. Now summarize the experience of success.

Install screen

In the terminal input yum install screen

Enter screen-s Lnmp when finished

Why do you do it? The answer is simple, because it protects your remote connection and makes the work stop unexpectedly. I am installing LNMP time is longer, and Xshell once inexplicably disconnect, frighten I thought again again. Fortunately, the beginning of screen, the process is still.

If your terminal is accidentally disconnected at work, you can enter Screen–ls to view all screen sessions and then enter the screen–r + code to recover.

Install LNMP

Enter the following code at the terminal

Wget-c http://soft.vpser.net/lnmp/lnmp1.1-full.tar.gz && tar zxf lnmp1.1-full.tar.gz && CDs Lnmp1.1-full &&/centos.sh

Install according to prompts

This requires that you enter the MySQL password

Then enter here to confirm that the MySQL InnoDB is enabled

Select PHP Version

Choose MySQL Version

My personal advice is to use the latest.

A long wait ... I spent three hours ...

Done

Configure site

The environment has been installed, how to make it can hang station.

Enter /root/vhost.sh in terminal

Here enter the domain name to bind, where www.joycex.com and joycex.com are not the same domain name. It is recommended to enter here together, two domain name between the space between the open.

If you accidentally hit the wrong, use Ctrl+backspace to remove, do not directly backspace (such a child will not be deleted, but appear ^h)

The following prompts appear after the carriage return

If you need to add more domain names, if you do not need to enter the N-carriage directly. Enter Y return if required

Next is to set the Site directory location, under normal circumstances do not need to set direct return.

Here choose whether to add pseudo static rules, such as without pseudo static, enter n carriage directly. If you need to enter Y-enter, and then select Pseudo static or custom pseudo static

The following prompts appear when you select Y

The default already has a lot of things, you can enter the above name directly.

We install WordPress here, directly enter WordPress on it.

Do you want to open the log below

It's not usually a choice n.

Appears: Press any key to start create Virtul host ... , the virtual host is automatically added when you return to confirm.

Install WordPress

In view of the very inconvenient use of command, all suggestions are to download to the local, and then use WINSCP this sftp software uploaded to the site Directory

First go to http://cn.wordpress.org/download WordPress

Upload with WINSCP

Enter the http://domain name in the browser/wp-admin/install.php

Then entered the classic WordPress installation interface, the hint is very simple, easy to install

It's done in less than five minutes!

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.