[TUTORIAL] How To Host Your Website On Linux VPS (WordPress)



Hi there, Today I am here with another tutorial teaching you all on How to host your website on Linux VPS.

As usual lets begin with question and answers to avoid all the noob comments asking everytime again and again

Question and Answer (Q&A)

Q: What are the advantages on hosting your website on Linux VPS ?
More stability and reliability for basic web hosting needs
More control compared to shared hosting
Green technology, environmentally friendly, and more efficient use of resources
Easy scalability when needed
Cost effective solutions for small websites
Assured 99.95% Uptime (Mostly depends upon your VPS providers)
Q: Which VPS you use ? 
A: I use RamNode VPS

Q: Why you choose RamNode ?
A: Because its really cheap and quality VPS. For beginners it will be affordable.

Q: Which VPS plan did you choose ?
A: It depends upon the traffic you gonna receive
Income Traffic 0-750 views/day: Plan 1
Income Traffic 750-2k views/day: Plan 2
Income Traffic 2k-5k views/day: Plan 3
Income Traffic 5k+ views/day: I request you to switch VPS provider since I don't recommend RamNode VPS for more than 5k views/day, reason is they only provide 1GB connection speed.
Q: Which county do I need to choose ?
A: Your wish  I choose NL to avoid few rules and regulations on NYC since I run hacking websites

Q: I am getting 5k-10K views/day which VPS should I use ?
A: I suggest you to use OVH VPS SSD1 : Cost: $3.49/month

Q: I am getting more than 10K views/day which VPS should I use ?
A: I don't suggest a VPS when you get more than 10k views/day just switch to dedicated server

Q: Which Operating system do you use ?

A: I use Linux Debian 7 32-bit

Note: After buying a VPS continue the steps given below. If you have any doubts do not hesitate to comment below or if you already got a VPS then just follow the steps. WordPress will be my Control Management System to access the website.

Now its time to setup. Grab a bear or what ever you need and lets get this shit done  

1. Buying a VPS from RamNode:

As already shown above choose anyone of those plans and buy a VPS from RamNode.
You don't need to submit any documents to create a VPS. All you need to do is register in that site and buy a VPS.

After few minutes you will receive the VPS details.

2. Buying a domain and configure it:

You can buy a domain from godaddy.com or any place where you like to

After getting it, in DNS management you have to change type to "A" and enter the domain name and the VPS IP

By changing DNS settings it will allow your domain to point to your VPS Server.

3. Setting up VPS:

Goto URL: https://vpscp.ramnode.com and install Debian 7 32-bit. It will only take few minutes.

Download Putty and run it. Add your VPS ip and connect to your VPS though Putty. After that enter "username" and "password".

Enter the following commands in the give order:

1. Update and update debian:

Code:
apt-get update
apt-get upgrade

2. Install nginx, php5 and mysql:

Code:
apt-get install nginx php5-fpm mysql-server
apt-get install php5-mysql

3. Download Wordpress CMS: (replace example.com with your website name)

Code:
cd /var/www/
mkdir example.com
cd example.com
wget http://www.wordpress.org/latest.tar.gz
tar vxzf latest.tar.gz
rm latest.tar.gz

4. Configuring mysql

Code:
mysql -u root -p (press enter and then it will ask you to enter the password for mysql which you used when you install mysql-server)

5. Creating database and granting access to it:

Code:
create database example; (replace example with any name you wish)
grant select, delete, create, alter, update, drop, insert, index on example.* to ‘example’@’localhost’ identified by ‘Enteranypasswordwhichyouwanthere’; (Once done press enter and then ctrl + c to exit)

6. Changing WordPress config.php file:

Code:
cd /var/www/example.com/wordpress
cp wp-config-sample.php wp-config.php
vim wp-config.php (after opening the file, change your database details and save it)

7. Setting up nginx file:

Code:
cd
cd /etc/nginx/sites-available/
vi example.com.vhost (rename example.com with your domain name)
Now press "Insert" button and type the following command:
Code:
server {
listen 80;
root /var/www/example.com/wordpress;
index index.php index.html index.htm;

server_name example.com www.example.com;

location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}

error_page 404 /404.html;

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/www;
}

location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}

Note: Change server_name with your domain name and root /var/www/example.com/wordpress with your domain name or the folder name that you gonna use.

Once done save the file, press ESC + : + x (to save and exit)

8. Enabling the vhost file:

Code:
cd ..
cd sites-enabled/
ln -s /etc/nginx/sites-available/example.com.vhost

Everything is done now. Just type "service nginx restart" and visit your domain now. It should be working fine.  

Note: Make sure you change "example.com" to your domain name in each place that I have mentioned "example.com"

If you want to upload any file to your server then use "FileZilla Client" as file manager by connecting to your server using IP , USERNAME, PASSWORD and PORT

The reason why I created this post:
This might increase your knowledge on Linux and hosting websites
You don't need to be one in shared hosting
To save money [Main]
Thanks for spending your valuable time on reading this post and correct me if I am wrong
Let me know if this post helped you by attending the poll on top of this thread

Thanks!!!


backlink:
http://hotmethod.blogspot.com/2016/04/tutorial-how-to-host-your-website-on.html


tags:
How To Host Your Website On Linux VPS
best linux vps hosting
linux vps hosting unlimited bandwidth
free linux vps trial
cheapest linux vps
cheap linux vps hosting
free linux vps hosting
linux vps hosting reviews
linux vps hosting comparison
Jika Anda menyukai Artikel di blog ini, Silahkan klik disini untuk berlangganan gratis via email, dengan begitu Anda akan mendapat kiriman artikel setiap ada artikel yang terbit di TULISKAN.com

15 comments:

  1. PkDomain provide cheap webhosting in Pakistan. You can also buy cheap reseller hosting in Pakistan from us. PkDomain Provide Reliable Web Hosting at affordable prices. PK Domain are cheapest, best free web hosting & PK domain registration services provider company in Pakistan, get vps and Dedicated hosting in cheap rates. Our services are available in all cities of Pakistan you can order us via PK Domain. .pk domain register

    ReplyDelete
  2. This article is very inspired me I have a hope everyone will find useful information here if you want to more details then go throw the link Linux VPS Hosting

    ReplyDelete
  3. Nice, as you told how to host website on Linux VPS that is really amazing. I like your post most because you describe in your blog “question and answer” method like – “Which VPS you use and Which plan you to choose”. Good team. But anyone want to know about Australia VPS Server Hosting then contact us.

    ReplyDelete
  4. This is nice information about host websites on Linux VPS. I really love to read your article. if you need several identical servers with load-balancing in order to handle traffic surges, then choose you can Cloud Hosting, Cloud VPS Server Hosting services.

    ReplyDelete
  5. Great informations about how to host your website on Linux VPS. It is very cost effective solutions for small and medium websites. This is very insightful and informative. I have a hope everyone will find useful information here if you want to more details then go throw the link Cheap Linux VPS Hosting. So, I appreciate your work.

    ReplyDelete
  6. This article is very inspiring ,I have a hope everyone will find useful information here if you want to more details then go throw the link Linux VPS Hosting

    ReplyDelete
  7. Greatly you explain about to host website on Linux VPS that is really fantastic. I really like your blog, apart from that Italy Server Hosting Company are also offer great hosting services such as Dedicated or VPS Hosting at a very affordable price.

    ReplyDelete

  8. OffshoreDedi offers high quality dmca Ignored Hosting. We make offshore hosting simple for you to use with reliable servers and one-click installers. Your data is safe with us as it’s is kept in a high security facility in an offshore jurisdiction assuring your privacy.

    ReplyDelete
  9. Webcare360 Provides you safe and secure cheap Offshore Hosting Best offshore hosting and Offshore hosting by webcare360 with 99.9% Up time Guarantee, with Ddos protection.

    ReplyDelete
  10. dmcaignoredhosting.com is a leading offshore web hosting company. Providing Quality Web Hosting Since 2014 to 1200+ Happy Clients.

    ReplyDelete
  11. Very informative and impressive post you have written, this is quite interesting and i have went through it completely, an upgraded information is shared, keep sharing such valuable information. Web hosting services USA

    ReplyDelete
  12. This comment has been removed by a blog administrator.

    ReplyDelete
  13. Great informations about how to host your website on Linux VPS. It is very cost effective solutions for small and medium websites. This is very insightful and informative. If you want more thing about USA VPS Hosting. You should choose our USA VPS Hosting it provide unique features like security, instant speed, customization, and unlimited storage.

    ReplyDelete
  14. Titanium Fishing Pliers - TITNA-ART
    This project was titanium body armor funded in total, and with the approval of the manufacturer, titanium engagement rings for her this fishing platypus is part of titanium pot the TUSGA of titanium 170 welder the TUSGA of the TUSGA of trekz titanium pairing the TUSGA of the TUSGA of

    ReplyDelete