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!  
#2
Good Tutorial.I was looking for a good tutorial to host a website on a VPS.I searched and watched many videos from the Youtube but i always failed to understand them.I hope i will get success by this tutorial.I want to ask you can i install any other Software ( SMF ) ?
Thanks
#3
Great tutorial for a new Wordpress installation with VestaCP. Thanks for sharing.

Personally I still prefer to install Wordpress manually without VestaCP though.


#4
for me i prefer just use apache/nginx + php and use terminal for everything . but it is kinda hard for most people that doesnt know or used to cli . vestacp or panel give an easier way to control the web server
Terminal
humanpuff69@FPAX:~$ Thanks To Shadow Hosting And Post4VPS for VPS 5
#5
(06-20-2018, 08:44 AM)humanpuff69 Wrote: for me i prefer just use apache/nginx + php and use terminal for everything . but it is kinda hard for most people that doesnt know or used to cli . vestacp or panel give an easier way to control the web server

It's also safer to do it the terminal way so I commend you and @tryp4vps for doing it the terminal way.  Free panels like VestaCP and even cPanel always are risky, particularly when one uses them for e-mails and FTP. 

Would be great if you or @tryp4vps could share a tutorial for doing the whole installation from the command line.  Step by step with no steps skipped. Tongue

(06-20-2018, 12:38 AM)Rehan Wrote: Good Tutorial.I was looking for a good tutorial to host a website on a VPS.I searched and watched many videos from the Youtube but i always failed to understand them.I hope i will get success by this tutorial.I want to ask you can i install any other Software ( SMF ) ?
Thanks
Thanks @Rehan.  VestaCP works very well.  What I particularly like about VestaCP is its collection of documentation that is available at its Website and a very active and well supported Forum.  There are always Admin checking up on the inquiries - unless the inquiry is of the variety where a person asked something that was already previously discussed and answered in which case they'll ignore the inquiry.  What I also like is that the lead Admin there have been around for a few years - it gives it a feeling of authenticity.  The layout of the panel is also very simple and user friendly.
Terminal
Thank you to Post4VPS and VirMach for my awesome VPS 9!  


Possibly Related Threads…
Thread
Author
Replies
Views
Last Post

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