Feb 17, 2012 10:43 AM
(This post was last modified: Feb 17, 2012 10:44 AM by Arron XR.)
OK guys So I am making this tutorial to show people how to setup there VPS for web hosting.
I will be showing you how to do this on Centos and ubuntu.
Ok so lets start.
First thing you will need is to download - Putty and winSCP.
* Putty - http://www.putty.org/
* WinSCP - http://winscp.net/eng/index.php
ok so if your Running Centos on your VPS this is what you need to do.
Open up Putty and connect to your server Via SSH with root login.
once you have logged in you will need to type the following.
yum install PHP
follow the screen and when asked (Y/N) type Y and hit enter.
once this has finished you now need to type the following.
yum install httpd
once any when asked to continue with (Y/N) type y then hit enter.
ok once httpd has installed you will need to open winSCP.
Connect to your server and you should see a fold with ... Click on that folder.
Scroll all the way down to the bottom and click Var then WWW then you should see 4 folder.
click the Html Folder and load your files you wish to host.
once you have done that go back to putty and type the following.
service httpd restart
everything should be setup fine. :)
So if your using ubuntu then you need to follow the following steps.
First thing make sure you have Putty and winSCP downloaded ready to use.
OK so first step is to openWinSCP and connect to your Server.
once you are connected you should see a Folder name ... click that and then go to /etc/apt/sources.list Open Source.list and add this
save the file.
Now open Putty and connect to your server login and type the following.
sudo apt-get update
then
sudo apt-get install apache2
then it will ask u to pick y/n type Y then enter
then type
sudo apt-get install php5
again type Y when asked
then type
sudo apt-get install libapache2-mod-php5
then type
sudo /etc/init.d/apache2 restart
Once you have done that go back to WinSCP and go to your var/www and you should see index.php. Upload your Files there.
you are done if you have any problems trying to do this PM me I will TV you and set it up for you.
I will be showing you how to do this on Centos and ubuntu.
Ok so lets start.
First thing you will need is to download - Putty and winSCP.
* Putty - http://www.putty.org/
* WinSCP - http://winscp.net/eng/index.php
ok so if your Running Centos on your VPS this is what you need to do.
Open up Putty and connect to your server Via SSH with root login.
once you have logged in you will need to type the following.
yum install PHP
follow the screen and when asked (Y/N) type Y and hit enter.
once this has finished you now need to type the following.
yum install httpd
once any when asked to continue with (Y/N) type y then hit enter.
ok once httpd has installed you will need to open winSCP.
Connect to your server and you should see a fold with ... Click on that folder.
Scroll all the way down to the bottom and click Var then WWW then you should see 4 folder.
click the Html Folder and load your files you wish to host.
once you have done that go back to putty and type the following.
service httpd restart
everything should be setup fine. :)
Setting Up ubuntu
So if your using ubuntu then you need to follow the following steps.
First thing make sure you have Putty and winSCP downloaded ready to use.
OK so first step is to openWinSCP and connect to your Server.
once you are connected you should see a Folder name ... click that and then go to /etc/apt/sources.list Open Source.list and add this
Quote:deb http://us.archive.ubuntu.com/ubuntu dapper universe main restricted universe
deb http://security.ubuntu.com/ubuntu dapper-security universe
save the file.
Now open Putty and connect to your server login and type the following.
sudo apt-get update
then
sudo apt-get install apache2
then it will ask u to pick y/n type Y then enter
then type
sudo apt-get install php5
again type Y when asked
then type
sudo apt-get install libapache2-mod-php5
then type
sudo /etc/init.d/apache2 restart
Once you have done that go back to WinSCP and go to your var/www and you should see index.php. Upload your Files there.
you are done if you have any problems trying to do this PM me I will TV you and set it up for you.
Credits to Tippy for ubuntu part



![[Image: FtwuQgr.gif]](https://i.imgur.com/FtwuQgr.gif)
