arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to set up new VPS with a WordPress Installation
#1
This tutorial will attempt to show the quickest steps to installing WordPress on a brand-new VPS. 

1. I first navigate to the Registrar of the Domain I'm going to use and create two name servers with the IP that has been given to me.  I use Namecheap, but I also know one can do it at Domain Silo.  In Namecheap I navigate to "Manage Domain" and then select the right most link for "Advanced DNS".  Namecheap allows you to create two name servers with the same IP.  In some cases you need to wait for the name servers to propagate, but in other cases it may be fast.  Don't forget to add those two new name servers to the domain you are going to use:

ns1.mydomain.com
ns2.mydomain.com

2.  I then use PuTTy to SSH into my new VPS.  First thing I do is to change the password to a very complicated 16-digit one:

passwd

You can generate complicated passwords at the Website below:

https://passwordsgenerator.net/

3. Next I navigate to the VestaCP Install page to generate a BASH install command. 

https://vestacp.com/install/

When I do it I exclude FTP and e-mail.  I include:  Web (nginx+apache)  DNS (named)  Firewall (iptables & fail2ban)  Softaculous  Additional repository (remi) Database (mySQL) Hostname  mydomain.com  E-mail  [email protected]  Password  My password

VestaCP then generates a Bash Install command from the above input.

4. Install VestaCP with the following commands:


curl -O http://vestacp.com/pub/vst-install.sh


Your bash install command:

bash vst-install.sh --nginx yes --apache yes --phpfpm no --named yes --remi yes --vsftpd no --proftpd no --iptables yes --fail2ban yes --quota no --exim no --dovecot no --spamassassin no --clamav no --softaculous yes --mysql yes --postgresql no --hostname mydomain.com --email [email protected] --password mypassword

5. Once installation is complete VestaCP provides login info for accessing the panel from the desktop of your computer.  You need to set up the panel as follows:
  • 1. Add the name servers of your domain in the package of the panel - the package link is located in the top menu of the panel.  Also change the name servers for the domain and the DNS.  Everything else has already been added by default via the bash command.
  • 2. Create a database for your WordPress installation.  Write down the name of the database, user name and password.
  • 3. You may also want to change the user name and password of your panel - however know due to some quirk, the original password will always be unique for any other access you need such as phpmyadmin.
6. SSH into your VPS and create a WordPress installation with the following commands:


cd /home/admin/web/mydomain.com/public_html



wget http://wordpress.org/latest.tar.gz



tar --strip-components=1 -xvf latest.tar.gz



rm latest.tar.gz



chown admin -R *


7.  Navigate to the domain you want to use and when you do it, it should automatically come up with the WordPress set up process.  It will ask you for your language, then the name and user of your database and password.  You should be up and running with your new Word Press installation in seconds.
Terminal
Thank you to Post4VPS and VirMach for my awesome VPS 9!  


Messages In This Thread
How to set up new VPS with a WordPress Installation - by deanhills - 06-19-2018, 11:54 AM

Possibly Related Threads…
Thread
Author
Replies
Views
Last Post

person_pin_circle Users browsing this thread: 2 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting