Build a vpn and wordpress On a vps host outside China

Source: Internet
Author: User
Tags vps install wordpress wordpress database

1. Build a VPN


First, go to the configuration panel of VPS.

The system is CentOS 5 32bit. Reload the system to complete the entire process.


Use Xshell 4 to connect to the remote host and change the initial password.

Directly use the PPTPD one-click installation package.

1wget http://www.diahosting.com/dload/pptpd.sh && sh pptpd.sh

Wait a few minutes. The following image is displayed after the installation is complete.

The bottom line is the VPN account password. When you want to add the password, you can directly edit the/etc/ppp/chap-secrets file and add the user name and password in the same format.


The following describes how to connect to the VPN in win7 (because the system is in English, please forgive me ).

Open Network Connection Management

Add a new connection

Connect to Workspace

Use my Internet connection


Enter the user name and password

Connection established

View ip addresses and their locations

Look at youtube

Since the establishment of VPN,

2. Build wordpress

Using VPS to build a VPN is too easy to use, so we can build another blog.


1. prepare in advance

With the VPS host, the independent ip address is available, and the blog space problem has been solved. Apply for a domain name and then bind the domain name to the ip address.

Two methods are provided here.

(1). Register a free domain name. This method is used in this blog to register the tk domain name. Tk domain name is a national top-level domain name located in Tokelau (also known as the federated islands or Tokelau Islands in history), a South Pacific Island. Currently, you can apply for a special domain name free of charge (less than 4 letters, special meanings, etc.


Open homepage http://www.dot.tk/

Enter the domain name you want to register, and then register it. This blog uses the newly registered flyence. tk domain name. By the way, during registration, you can choose to use its own DNS server to resolve the domain name, or use another DNS server to resolve the domain name (such as using domestic free DNS servers, the speed can be faster ).

Of course, you can also use free DNS servers in China, such as DNSPOD. When using DNSPOD, select your own DNS server in DOT, point the host name to the DNS server in DNSPOD, and add resolution records in DNSPOD.


This is done in the early stage.


(2 ). of course, you can also register other paid top-level domain names, such as com and net. It is recommended to go to a foreign domain name website such as godaddy for registration. One is cheap, and the other is not required for record filing.


2. Install the web Environment

Select a simple LNMP installation package. You can install Nginx, MySQL, PHP, and phpMyAdmin with one click.

Can refer to the website http://lnmp.org/install.html for installation, here said in detail, the installation process is not much said. Because my VPS system is CentOS, we use the CentOS command for installation.

1wget -c http://soft.vpser.net/lnmp/lnmp1.0-full.tar.gz && tarzxvf lnmp1.0-full.tar.gz && cdlnmp1.0-full && ./centos.sh

After installation is complete

At this time, open the web page www. flyence. tk in win7 and you will be able to see the following picture.

Click phpMyAdmin

Enter the password submitted during LNMP installation to create a wordpress database.



3. LNMP add VM

(1) switch to the root identity and run/root/vhost. sh

1sh /root/vhost.sh

(2) The message "Please input domain" is displayed. Enter www. flyence. tk.

Prompt "Do you want to add more domain name? (Y/n) ", enter n and press ENTER

Prompt "Please input the directory for the domain", Press ENTER

(3) The system prompts "Allow Rewrite rule? (Y/n) ", enter y and press ENTER

Prompt "Please input the rewrite of programme (Default rewrite: other)", enter wordpress and press ENTER
(4) the error message "Allow access_log? (Y/n) ", enter n and press ENTER

(5) Next, you can put the website file in the/home/wwwroot/www. flyence. tk folder.


4. install wordpress

(1) download wordpress

1wget http://wordpress.org/wordpress-3.7.1.zip

(2). Extract

1unzip wordpress-3.7.1.zip

(3) Copy all the files in the wordpress folder to the/home/wwwroot/www. flyence. tk directory.

1cp -R wordpress/* /home/wwwroot/www.flyence.tk/

(4). Enter/home/wwwroot/www. flyence. tk/, rename the wp-config-sample.php to the wp-config.php

12cd /home/wwwroot/www.flyence.tkmv wp-config-sample.php wp-config.php

(5). Edit wp-config.php files

Modify the three rows


Fill in the newly created wordpress database and MySQL username and password

(6) Restart nginx

1/etc/init.d/nginx restart

(7). Configure wordpress

Win7 in the browser to open the http://www.flyence.tk

The following steps are used to configure wordpress. wordpress has many themes and can be customized.

(8). First blog

Hello, everyone. It's my first blog. Now, the time is 2013-11-9-22-06.

Mark.








This article is from the footage of linux blog, please be sure to keep this source http://evanlinux.blog.51cto.com/7247558/1322627


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.