Friday, October 25, 2013

Tagged Under: ,

Host Website On Linux VPS or Linux Machine

Share

Host Website on Linux Based VPS | Install APACHE Webserver on Linux

Website hosting is a general application of VPS as they provide higher bandwidth and traffic management. So, here is a few setp tutorial to host your website on VPS or your Home linux server or PC.
  • Connect to command line as root. [ If don't know how to operate a VPS, check this http://www.help2cse.com/2013/09/how-to-use-linux-based-vps.html ]
  • To run a website on VPS, we need a Webserver isntalled on VPS. So, we are using APACHE Web-server on Linux to host the Website.
  • Run the following command to install APACHE .
    • apt-get install apache2
  • After installation of Apache, type your VPS IP in web-browser to check whether confirmation page opens or not. It will show something like this.
  • Now if you see "It Works" Page, It means Apache has been successfully installed and running.
  • Now go to [ /var/www ] directory on VPS using command line [ cd /var/www ] or using SFTP and upload your website files .
  • Important commands related to APACHE
    • service apache2 start [ To start apache server ]
    • service apache2 restart [ To restart apache server ]
    • service apache2 stop [ To stop apache server ]