So here it is a step-by-step tutorial on how to install WordPress on VPS with Vesta CP
, a great free control panel for every VPS that demands a free version of WHM/cPanel
. I won’t talk much more detail about what Vesta CP is and what features this panel has it
. But as a refresh
, Vesta CP is shortly an open source hosting control panel offering easy focused web interface with main purpose is to improve the ergonomics of the control panel by reducing unnecessary movements and operations
. The best part of Vesta CP that I really like is its simple two lines of command for installing it
.为您的信息, I tried this guide on CentOS
6.5 64-bit but I believe this also works on any Linux distro Vesta CP supports like Ubuntu
1. Installing Vesta CP
一步 1 – Login to your VPS as root.
一步 2 – Remove apache2/httpd if any.
service httpd stop
yum remove httpd -y
yum clean all
Debian and Ubuntu please adjust the command above. You can use apt-get and apache2.
一步 3 – Download Vesta CP installer script:
curl -O http://vestacp.com/pub/vst-install.sh
一步 4 – Now issue this command to start installing:
一步 5 – Follow on-screen instruction and once done, you’ll see your login detail (用户名和密码)
Where are the pics? You can find detailed information and pics at my previous post about how to install Vesta CP.
2. Basic Vesta CP Setup
一步 1 – Open up your favorite web browser and login to your Vesta CP page at:
一步 2 – Once logged in, you may firstly perform some basic Vesta CP setups like changing your default admin password, adjusting hosting package configurations, 等等.
Please also refer to my previous post.
3. Adding New Website
Or should I say “adding new domain?”
一步 1 – In Vesta CP click on the WEB 菜单.
一步 2 – Now add our new website by clicking “Add Web Domain” button.
一步 3 – Then enter your domain name there. You can also assign custom IP address (if your vps has more than one IPs). For this tutorial I use servermomtest.com as an example:
一步 4 – Optional, you may also click the Advanced Options link if you wish to change some advanced configurations including Aliases, will you use Nginx or not, 等.
一步 5 – Finally click the “添加” button.
一步 6 – Click the big DNS menu in Vesta’s main navigation. 从那里, edit your DNS entries as necessary (if any).
一步 7 – Next, do not forget to also create your database and login credential. Your newly created MYSQL username and database name will have prefix which is your username. For example if your username is admin then your database name will be admin_databasename and so with your MYSQL username (e.g: admin_dbuser). In this tutorial I will create a database called admin_dbtest and MYSQL username called admin_dbusrtest.
一步 8 – That’s it
For more detailed information with pics please refer to my previous post.
4. Downloading Latest WordPress Package
一步 1 – Login to your vps back via SSH (Putty/Terminal) as root
一步 2 – Go to web directory (public_html folder) of your newly added domain in Vesta CP (Part 3 step 3 above). Where’s the web / publc_html directory located at Vesta CP? It is at:
So in my example it’ll be:
Use cd to navigate there:
一步 3 – Now download WordPress using wget command:
一步 4 – Now extract latest.zip:
一步 5 – Now all WordPress files have been extracted but it is in a single folder called wordpress. Now we need to move those files up:
mv * .[^.]* ..
一步 6 – Remove empty wordpress folder and unused index.html file
一步 7 – Now edit wp-config.php file to adjust your database settings:
mv wp-config-sample.php wp-config.php
一步 8 – Now you can adjust all values in //** MySQL Settings…..
Once done editing, save it (Control+O) then exit the editor (Control+X)
一步 9 – Open up your favorite browser and open your blog for the very first time and you’ll see WordPress Installation Wizard. 就是这样. From here on you should already knew how to process.
Just fill all required forms and hit the 安装 WordPress 按钮.
就是这样. You can now login to administration dashboard page of your newly installed -shinny new- WordPress blog. Enjoy..