This article mainly introduces how to use LNMP to install WordPress in VPS. For more information, see
Preface
A few days ago, a friend had an idle vps and M memory on hand. I decided to give it a try. After some thought, we still use it to stop the station. Then the CentOS6 system decides to use the LNMP that has never been used. As a result, Baidu and Google looked for tutorials and many tutorials were problematic. as a result, the system was reinstalled countless times, wasting a lot of time. Summarize the successful experiences.
Install screen
EnterYum install screen
EnterScreen-S lnmp
Why? The answer is simple because it can protect your remote connection and stop your work unexpectedly. I have been installing LNMP for a long time, and XShell has been disconnected for some time, so I thought I would try again. Fortunately, the screen was started and the process was still in progress.
If your terminal is accidentally disconnected at work, you can enterScreen-lsTo view all screen sessions, and then enterScreen-r + code.
Install LNMP
Enter the following code on the terminal:
Wget-c http://soft.vpser.net/lnmp/lnmp1.1-full.tar.gz & tar zxf lnmp1.1-full.tar.gz & cd lnmp1.1-full &./centos. sh
Install as prompted
Enter the MYSQL password.
Enter here to check whether MySQL InnoDB is enabled
Select php version
Select mysql version
I personally suggest you use the latest version.
Long wait ..... It took me three hours .....
Success
Configure site
After the environment has been installed, how can we make it possible to log on to the station.
Enter/Root/vhost. sh
Enter the domain name to bind. here, www.joycex.com and joycex.com are not the same domain name. We recommend that you enter the two domain names together and use spaces to separate them.
If you accidentally make a mistake, use Ctrl + Backspace to delete it. do not directly use Backspace (this will not delete it, but ^ H will appear)
After you press enter, the following prompt will appear:
If you want to add more domain names, enter n or press Enter. Enter y and press enter if necessary.
The next step is to set the website directory location. Generally, you do not need to set the press enter directly.
Select whether to add pseudo-static rules. if you do not need pseudo-static rules, enter n and press enter. If you need to enter y and press enter, then select pseudo static or custom pseudo static
If you select y, the following message is displayed.
By default, many items are available. you can enter the above name directly.
We can install wordpress here and enter wordpress directly.
Select whether to enable the log below
N is generally useless.
When Press any key to start create unique ul host... is displayed, Press enter again to confirm that the VM will be automatically added.
Install wordpress
Since it is inconvenient to use commands, we recommend that you first download them to your local computer and then use the SFTP software such as WinSCP to upload them to the website directory.
Go to http://cn.wordpress.org/download wordpress first
Upload with WinSCP
Enter http: // domain name/wp-admin/install. php in the browser
Then enter the classic installation interface of wordpress. the prompt is very simple and easy to install.
In less than five minutes, we are done!