Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

☆ ☆ Installing Httpd & PHP on VPS - Centos / Ubuntu☆ ☆

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. :)


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


thanks man nice to see you helping people :)
nice tutorial looks great glad to see you helping out the community more than u already have
Nice tutorial man, perhaps you could do one on mysql and ftp setup aswell?

Hey there,
If I have helped you or if you just enjoy my posts, please consider donating bitcoin to me 1DpL2kcxuidEsjt2MMN2AYufcVoXbi3v2X

[Image: FtwuQgr.gif]
Nice tutorial, thanks for sharing this.
thanks alot I am glad you guys like it :)
Thanks alot, I'm also looking for a script. Do you know anyone selling, or something?
Nice tutorial , i like it , GJ bro :=] !
Nice tutorial, but aint this in the wrong section?
why yum install php?

Why not install the whole package?

yum install php-*

meh nice tut anyway.
True ol' fag... 08'
yum yum yum , thnx for the tut arron.
I can tell you how to install MYSQL if you add me to your thread as credits :P
sure amn you can do. Never got round to that :)
Nice Tutorial, thank you for sharing this :)
Oh wow, didnt even notice how gravedug this was...


Possibly Related Threads...
Thread / Author Replies Views Last Post
by ManWithNoFearSep 23, 2022 08:26 PM 3 191 Sep 23, 2022 08:26 PM
Last Post: ManWithNoFear
by Proxies.tvNov 7, 2020 08:49 AM 0 89 Nov 7, 2020 08:49 AM
Last Post: Proxies.tv
by McbrideMay 23, 2015 04:10 PM 5 217 May 23, 2015 04:10 PM
Last Post: ALIEN10