Results 1 to 10 of 29
-
10th Mar 2010, 02:55 PM #1OPMember
Hosting Websites without any control panel on your VPS /DEDI
Managing an Unmanaged V.P.S/ Dedi
hey guys. in the below tutorial we will be installing all the things which are needed to run a typical website.
we will be using Debian Lenny , as the operating system, and will be installing and configuring the required packages , so that you can host Multiple websites on your Server.
In this guide, I assume that you have basic knowledge on how to login to your VPS/ Dedi as root user . ( if you don't know what is this, please don't try this ! )
Part 1 :
- Updating.
- Installing Apache2.
- Installing MySQL.
- Installing and Configuring PHP5 and Getting MySQL Support.
- Virtual Hosting Configuration ( so that we can host multiple websites on the same server ).
- Installing PHYMyAdmin.
UPDATING
Code:aptitude update aptitude upgrade
Code:aptitude install apache2
Start : /etc/init.d/apache2 start
Stop : /etc/init.d/apache2 stop
Restart : /etc/init.d/apache2 restart
default document root ---> /var/www/
configuration file ---------> /etc/apache2/apache2.conf
MySQL
Code:aptitude install mysql-server mysql-client
Starting MySQL : /etc/init.d/mysql start
Stopping MySQL : /etc/init.d/mysql stop
Restarting MySQL : /etc/init.d/mysql restart
PHP5 with MySQL Support
Code:aptitude install php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd
Restarting MySQL : /etc/init.d/mysql restart
Restarting Apache2 : /etc/init.d/apache2 restart
Virtual Hosting : ( hosting multiple websites )
lets say , that I want to Host
www.thisismysite.com and www.lolwtfzomg.com ..
and the IP of my server is 100.200.300.400 ( just and example )
Its always advised to keep the directories that we host the sites on in an well organised manner..
We now tell Apache2 to listen to only the desired IP address ( 100.200.300.400 in my case )
now by using your favourite editor, edit /etc/apache2/ports.conf
Code:nano /etc/apache2/ports.conf
Code:aptitude install nano
Code:NameVirtualHost 100.200.300.400:80
and now we edit , the default apache2's virtual host to our needs..
change <VirtualHost *:80>
to <VirtualHost 100.200.300.400:80>
and make sure you replace 100.200.300.400 with your IP .
Now we are ready to Host websites , as told above I want to host
www.thisismysite.com
and
www.lolwtfzomg.com
so lets create the Directories in an well organised manner,
Code:mkdir -p /srv/www/thisismysite.com/public_html mkdir -p /srv/www/thisismysite.com/logs mkdir -p /srv/www/lolwtfzomg.com/public_html mkdir -p /srv/www/lolwtfzomg.com/logs
Code:nano /etc/apache2/sites-available/
Code:<VirtualHost 100.200.300.400:80> ServerAdmin desiboy@thisismysite.com ServerName thisismysite.com ServerAlias thisismysite.com DocumentRoot /srv/www/thisismysite.com/public_html/ ErrorLog /srv/www/thisismysite.com/logs/error.log </VirtualHost>
and the next site lolwtfzomg.com
Code:nano /etc/apache2/sites-available/lolwtfzomg.com
Code:<VirtualHost 100.200.300.400:80> ServerAdmin desiboy@lolwtfzomg.com ServerName lolwtfzomg.com ServerAlias www.lolwtfzomg.com DocumentRoot /srv/www/lolwtfzomg.com/public_html/ ErrorLog /srv/www/lolwtfzomg.com/logs/error.log </VirtualHost>
Enabling sites
Code:a2ensite thisismysite.com a2ensite lolwtfzomg.com
Code:/etc/init.d/apache2 reload
Code:aptitude install phpmyadmin
and we will be editing apache2 config , and tell the path of phpmyadmin to it..
Code:echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf
http://100.200.300.400/phpmyadmin/
Now the contents of the thisismysite.com, should we uploaded in
/srv/www/thisismysite.com/public_html/
and that of lolwtfzomg.com in.
/srv/www/lolwtfzomg.com/public_html/
you can use wget or use rsync to upload the content on the sites ATM..
in Next Update of this tutorial we will be dealing about Installing FTP and configuring it..followed by some more useful tools like firewall, etc..
Thanks for reading..and if you have anything to suggest , correct, please reply below..
and please leave a link back to This thread..whenever you post this tutorial in other sites .. ( took some time to write this )
TRY AT YOUR OWN RISK ! and if you have any doubt , please post here..I will try to answer..
desiboy Reviewed by desiboy on . Hosting Websites without any control panel on your VPS /DEDI Managing an Unmanaged V.P.S/ Dedi hey guys. in the below tutorial we will be installing all the things which are needed to run a typical website. we will be using Debian Lenny , as the operating system, and will be installing and configuring the required packages , so that you can host Multiple websites on your Server. In this guide, I assume that you have basic knowledge on how to login to your VPS/ Dedi as root user . ( if you don't know what is this, please don't try this ! ) Part Rating: 5Coding Horror Fan
I don't read PM's frequently .
-
10th Mar 2010, 02:59 PM #2MemberWebsite's:
fuck.younice tutorial desi
you rockI AM FROM INDIA SO MY ENGLISH IS FUCKING GOOD ,I WILL TROLL YOU.
-
10th Mar 2010, 04:09 PM #3Respected MemberWebsite's:
nooky.usUse CentOS with Kloxo .... it will install and configure for you all these things.
-
10th Mar 2010, 04:11 PM #4Member
Nice Tutorial...
ThANKS!!!
-
10th Mar 2010, 04:12 PM #5Too busy :|Website's:
L337Fx.com BeastieBay.netThanks man really appreciate this tutorial as I wanted it for my VPS
btw, by seeing the commands, I guess it'll work with CentOS too
-
10th Mar 2010, 04:58 PM #6OPMember
-
10th Mar 2010, 05:04 PM #7Too busy :|Website's:
L337Fx.com BeastieBay.net
-
10th Mar 2010, 05:05 PM #8MemberWebsite's:
StoneArcade.comgreat tut man, will be very useful
-
10th Mar 2010, 05:11 PM #9OPMember
-
10th Mar 2010, 05:15 PM #10Member
Awesome tut desiboy.
Propz to you.This is the staff, you have been banned
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Unlimited Hosting + CDN + Marketing Ebooks + Mobile Control Panel + 99.9% Uptime
By H4G-Kushal in forum ArchiveReplies: 1Last Post: 20th Sep 2012, 06:35 PM -
[Other] Reliable Shoutcast Hosting | CentovaCast Control Panel | 99.9% Uptime
By G-host in forum ArchiveReplies: 1Last Post: 17th Nov 2010, 07:35 AM -
[Shared] Offshore Hosting, Php/MySql, Plesk Control Panel. Instant Activation. PayPal accepted
By magicworld11 in forum ArchiveReplies: 2Last Post: 15th Jul 2010, 08:14 AM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...