[Wizard Tutorial] Step by Step How to convert a VPS for easy Webhosting [newbie friendly]

wizard04

Elite Member
Joined
Apr 1, 2014
Messages
2,729
Reaction score
2,622
I have made a guide for complete newbie to follow on how to run a website on a VPS.
There are lot of people who are slaves to the shared hosting because is more convenient (easy to manage) and cheap ($2-3).
The disadvantages for using a shred hosting for any kind of money site are huge, but I will mention only few that are most important.
-Slow speed
This will affect your ranking! There is no maybe, its 100% sure that will affect your ranking. I have notice that myself after I have move from a slower VPS my ranking went up significantly.
-Shred IP
This is bad for SEO as you will share your IP with 100? or 1000?s of other websites that are possibly spamming or using it for more malicious stuff.
-Not enough resources and lack of control
You are very limited with the resources and if you have sudden spikes of visitors your site might get down or suspended for overusing recourses.
Also the lacks of control, some application need you to install files in the actual server that your shared hosting will centrally not allow.
The benefits of your own VPS hosting are:
-Speed
-You own dedicated IP
-Full control over everything
-I can?t even compere how much more recourses you will have VS shared as the difference is huge.

So let begin with my guide/tutorial that literally every newbie can follow and have its own VPS hosting in 30 min or less.

1.Buying a VPS

This is the most difficult part. I suggest you google cheap VPS?s or VPS forums (yes, there are such forums) as you will find there the VPS providers there and almost all of them are giving big DICOUNTS.
So how much can a VPS cost? If you look hard enough you can find it for pennies. I have a 3gb VPS for $40 annually and another one with 1gb of RAM for $10 year.
I recommend that you buy a VPS with at least 750mb of RAM.
When you purchase a VPS you will usually get the following login information:
-IP
-Password
This everything you need.


2.Installing a OS


Some VPS providers also provide the VPS with SolusVM( it?s a VPS control panel ) from where you install or reinstall the OS and manage other tasks.
But some of the VPS providers will ask you right away what OS you want and if this happened select CentOS 6 x86.
If you didn?t need to provide which OS to select, you can log in to your SolusVm and reinstall OF from there it?s a very simple process and you can?t do it wrong.
And If you don?t have SolusVM and didn?t select which OS you want on the start, just go to your hosting client area > my services >services and select the VPS you can then reinstall the OS from there.
*note Install only clean CentOS 6 x86.

3. SSH client

We Need a SHH client to communicate with the VPS. I recommend you downloading ?putty?
Code:
 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
After successfully downloading putty and opening it, now will login into our VPS
In the Host Name (or IP address) you will paste the IP from the VPS and click OPEN.
If you never used CLI (command line interface) don?t worry it?s not that scary.
You will have login as:
YOU NEED TO TYPE: root
And press enter
For the password you have the password just type it or you can copy/past it.
To past the password just click the right mouse click and that?s it and press enter.
*NOTE When typing the password or pasting it nothing will show this is usual and don?t be alarmed.
If everything went fine now we are logged in for the first time on our VPS.

4.The installation a WebHosting Control Panel

We need to install Sentora(ex Zpanel), which is a free and its looks like CPanel.
For easy installation just copy/past these steps and press enter on every step and wait till it?s done to move to the next step.
Code:
yum update
press enter
After a few sec you will need to approve the installation of updates so press? y? and enter (you might get this notification few times always press ?y? and enter)
Code:
 yum erase httpd httpd-tools apr apr-util
Press enter and press y when needed
Code:
 yum remove bind
Press enter and press y when needed
Code:
 bash <(curl -L -Ss http://sentora.org/install)
Press enter
Now you must follow the simple onscreen steps.
Please select a continent or ocean.
You need to select the continent, type the number of the continent and press enter.
After this step is done?
You need to select the Country, type the number of the continent and press enter.
Then type ?1? and press enter to continue
You will need to type your subdomain for the CP to be installed.
You need to enter the domain you are planning to host and whatever subdomain you wish, something like server.mydomain.com and press enter to continue.
It will now ask for IP but it?s automatically there just press enter to continue
You will get some warnings but it?s OK because you are not pointing the domain yet to this VPS, just type ?y? and enter to continue.
?and now we wait.
When the installation is finished copy the log in info from the screen before you initiate a restart and then restart it with pressing ?y? and enter
We have installed the Webhosting CP!
To login in the CP past the VPS IP in the browser as you would do with a domain name and you will see your CP login info. But this step is too early we need to configure it to be more WP friendly.

5.Increasing the file upload limits in php.ini

Login to your VPS via putty (the same steps)
After you successfully have logged in lets continue?
Code:
 yum install nano
Press enter and later ?y? and enter
The next step is little bit harder.
Code:
 nano /etc/php.ini
Press enter.
Click Ctrl+W and past to find this ?upload_max_filesize? and press enter.

Change the upload_max_filesize = 2mb to upload_max_filesize = 1000mb

*NOTE this is the upload maximum, I usually set it to 1000mb as sometimes I need to upload large files, but fell free to set it up as you want but I recommend at least 100mb.

When you are done click Ctrl+o and enter, then click Ctrl+X and enter to exit.

6.Installing a file manager and webscripts installer (wordpress, joomla, etc.)

Login via putty
Copy past the codes one by one and press enter and ?Y? and enter where is needed.

Code:
zppy repo add zppy-repo.mach-hosting.com
Code:
zppy update
Code:
zppy install Monsta_FileManager

Now let?s install the installer

Code:
zppy repo add zppy-repo.mach-hosting.com
Code:
zppy update
Code:
zppy install sentastico

After this is done, you need to login on the Webhosting CL to activate the modules.

Go to: Admin>Module Admin and find your manager and Sentastico and activate them booth.

After you?re done with that you need to make a FTP client so you can log in to the file manager.

ON your homepge CL (control panel) got to FTP Accounts.

You need to enter a username and password.
For the Access type you need to select Full Access
For the Home directory you need to select Set Mater Home Directory.

After this is done you can go to your file manager and log in!


How to host a website

-You need a domain name, its obvious.

We need to add the domain name in domains and create a dns record for the domain.
1.Go to domain management> domains
Enter your domain name and click create.

2.Go to domain management> DNS management
Select your domain and click edit and create records. With this you will automatically create the DNS records.
By default your Namesrever will be NS1.domainname.com NS2.domainname.com

3.No you need to go to your domain carrier/provider and edit the nameserver to point to your hosting.
First you need to add your hostnames.
When you click to add your hostname, in the hostname enter only NS1 and in the IP enter your server IP. Add one more hostname repeating the same process only in the hostname enter NS2.

Wait a minute or two.

No you can add your namservers and after the domain is fully propagated (pointing to your server, sometimes it take up to 48h to do so) you are ready to host your site.

4. Go to your CL and click on sentastico and select Wordpress installation (you need to check the box to delete all files that are present there)

5. Create a SQL database and username.
On your CL go to My SQL database and create a database. Once you created the database it?s now time to create the MySQL user. Go to the MySQL users and create a user and connect the database we just previously created.
Now type in the domain name into your browser and your wordpress installation will show.

Follow the instructions, they are simple.
In the database, enter the database name we have created.
In the user, enter the MySQL user we have created and for password enter the MySQL users password.
The other fields are fine don?t change them, the next steps are simple you don?t need guide on them.
And you?re done! You are hosting you first site on your VPS server with Awesome CL that is very similar with Cpanel.

Below is a video me doing the steps one by one to show you how easy it is!


I don?t have the domain after you need to enter the few details and that it you are hosting your own site on your own VPS, it that simple. PS you can host X of sites, depending of your server
 
Last edited by a moderator:
Man I swear, I was thinking of googling for this today but got stuck in various tasks.
Accidentally looked upon this and what would be better than a completely complied thing.

Love you wizard!!
 
Man I swear, I was thinking of googling for this today but got stuck in various tasks.
Accidentally looked upon this and what would be better than a completely complied thing.

Love you wizard!!

Great guide...thank you bro..

You are welcome.



I made this guide as there are lot of people paying like $5+ for shared hosting when they can have dedicated for the same price. I know its hard for someone to do all this with no knowledge but if they follow this in 30 min they will have there own hos.
 
Can u share ur vps providers domain's... do u recommend them and how time have you been using them
 
Just a coincidence as I am also planning to setup a vps for hosting my websites. Thanks for this
 
Hey, thanks for putting all this together. I hadn't even considered trying this.
 
Good job OP.

For anyone that don't know what the hell this all mean (although there's a good in depth video).
There's an easier method which I've used and that cuts my headache in half and also time to setup. (Mainly due to the fact that I hate looking at CLI)

The first is using Easy Engine on Digital Ocean if you want to dive into a little bit of command line.

http://docs.rtcamp.com/easyengine/install/digitalocean.html

Second option is to use https://serverpilot.io/ if you want little to no command line.

Both options are free to use.

But if you really want to learn the ins and outs of managing your own VPS, then following OP's guide will make you smarter than the average person out there.
 
This is amazing. Thank you so much. I've been planning on moving to a VPS as soon as possible.

Cheers,
xxf8xx
 
Can u share ur vps providers domain's... do u recommend them and how time have you been using them

I will compile a few cheap VPS provides that are OK.

In this video presentation I am using a chicagovps,net $0.99 vps for the first month. I think the price after is less then $4.88, which is a decant price.
 
Only thing I would say is check out Sentora properly as its based on some seriously buggy code that was Zpanel. I haven't used it for many years but I *think* Sentora still has vulnerabilities.

Take a look at VestaCP if you need something else.

One last thing, don't base everything on price! Some low end hosts are fine, some are complete asswipes who will take your money, cram you on a server with hundreds of other VPS owners and your problems will start from then on.

Due diligence - two very important words :)
 
try amason aws... LOL its free for a year.. I am using it now, but it is just slow.
 
Only thing I would say is check out Sentora properly as its based on some seriously buggy code that was Zpanel. I haven't used it for many years but I *think* Sentora still has vulnerabilities.

Take a look at VestaCP if you need something else.

One last thing, don't base everything on price! Some low end hosts are fine, some are complete asswipes who will take your money, cram you on a server with hundreds of other VPS owners and your problems will start from then on.

Due diligence - two very important words :)

Yeah ZPanel was buggy but Sentroa can't be compared with zpanel, they have worked hard to get here.
But yes, be careful when selecting a cheap or even more expensive VPS, read the reviews.
 
Thank you thank you, thank you so much for sharing this tutorial. I was searching for this info whole around the internet yet I couldn't find such easy tutorial anywhere. You saved lot's of my time and money. VPS here we go....
 
Yeah ZPanel was buggy but Sentroa can't be compared with zpanel, they have worked hard to get here.
But yes, be careful when selecting a cheap or even more expensive VPS, read the reviews.

Sentora is forked from the zpanel code.......I pulled up one thread on WHT about it still being buggy from March this year and I don't think there have been security updates since then (http://www.webhostingtalk.com/showthread.php?p=9399137)

The guy who started that thread knows his stuff so will trust him over the 'dev team' at Sentora. He said on another forum:

"ZPanel and Sentora were hands down the worst... so bad in fact that Sentora wanted to hire us to do a full audit and we had zero interest just because it would be a huge mess of band-aid fixes. Our advice to them was to start over from scratch, not Zpanel forked over. (Sentora didn't even fix some flaws that were already PUBLIC with Zpanel! Still trying to understand that logic...)"

And recently the head guy has quit the dev team and people who were left admitted on the Sentora forum (http://forums.sentora.org/showthread.php?tid=1460) that they don't know as much as the head guy so please bear with them whilst they catch up!

Not one I would like on my VPS :)
 
Last edited:
Back
Top