LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-25-2010, 08:32 PM   #1
ash_zz_00
Member
 
Registered: Aug 2009
Distribution: Slackware 13.0
Posts: 66

Rep: Reputation: 17
How does shared web hosting work?


Hi,
I'm trying to understand how shared web hosting services work.

Apache virtual host seems to provide a way doing it. Is that what commercial shared web hosting services do?

When you get one of these commercial services, it allows you to add new users, install software etc. It almost seems like a scaled down version of a GNU/Linux box on a larger server. How is it being done?

I have Slackware 13.0 running Apache and was wondering if I can play around with some of these types of services locally.

Thanks in advance,

Ash.
 
Old 03-25-2010, 08:46 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Well, large server farms tend to use some of the latest ideas to share loads. Everything from distributed storage to virtual machines and host headers share resources. Basically almost any way to share hardware is being looked at and used. What you buy in the lower costs are virtual in nature. Almost nothing about it is dedicated. On larger packages you may actually qualify for a single system. They tend to buy systems that can support many common customers on one real system.

As for the OS it is up to the company. MS and Linux are big players along with the BSD's and Solaris. Might depend on how they price and need to support customers as to the OS choices.
 
Old 03-26-2010, 04:14 PM   #3
ash_zz_00
Member
 
Registered: Aug 2009
Distribution: Slackware 13.0
Posts: 66

Original Poster
Rep: Reputation: 17
Since I have an Apache running, is it possible for me to emulate some of the virtual setups?

E.g. I can setup a few virtual hosts to emulate web hosting shares, but I wasn't sure how to allow these shares to add users to their shares.

Also what are these web hosting control panels (e.g. cPanel, plesk etc.) that are provided? Do they invoke some shell command behind the scenes? Are there any free ones that I can install and play around with?

Thanks,

Ash.
 
Old 03-26-2010, 04:33 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
actually with cpanel you start with a bare minimum system and it handles installing the rest, if i'm not mistaken it's a whole software suite that handles server clustering, database management, user management, ftp accounts, email accoungs shell accounts etc.. in addition to web hosting in short a general hosting control panel/management system
as for free?
do a google search for
open source hosting control panel
it turns up quite a few hits
 
Old 03-27-2010, 07:06 AM   #5
nonamenobody
Member
 
Registered: Oct 2002
Posts: 138

Rep: Reputation: 22
Quote:
Originally Posted by ash_zz_00 View Post
Since I have an Apache running, is it possible for me to emulate some of the virtual setups?
There are many types of shared hosting available today. Traditional shared hosting would just be using Apache Vhosts or similar. If your users wanted email too, you would need to setup the equivalent of a vhost too.

It sounds like you are using some sort of virtual server based shared hosting, where you have root access to your virtual machine. I imagine you could create Apache virtual hosts.

Quote:
E.g. I can setup a few virtual hosts to emulate web hosting shares, but I wasn't sure how to allow these shares to add users to their shares.
It isn't very clear what you mean by creating shares and adding users. What 'users' do you want them to be able to create?

Quote:
Also what are these web hosting control panels (e.g. cPanel, plesk etc.) that are provided? Do they invoke some shell command behind the scenes? Are there any free ones that I can install and play around with?

Thanks,

Ash.
I have never used cPanel, but I am quite familiar with Plesk. The Plesk control panel is essentially a web based control panel, oriented to the creating and managing virtual hosting (setting up apache vhosts, creating email accounts, configuring server settings etc.). Fundamental to the operation of Plesk is it's hierarchical account and security system. There are (I think) six heirarchical levels of user in Plesk:
  • Admin (root essentially)
  • Reseller
  • Client
  • Domain
  • Sub-domain (this is optional)
  • Email User

Plesk will then take care of creating of all the administration - so yes, it will invoke shell commands in the background, but it will also; edit configuration files, create databases, whatever is necessary. Typically, all your packages would be special Plesk-aware versions which are bundled with Plesk - it works much like a Linux distribution in that sense (SUSE and YaST is quite a good comparison, if you are familiar with YaST and it's SuSEconfig perl scripts).

Like most control panel systems, Plesk makes the straight forward, common tasks, very straight forward and easy. If you want to do something a little out of the ordinary (such as making a change to your Apache config. outside of Plesk), you can't just dive in and make the changes, you need to follow Plesk's rules and change it their way. The same could be said for Linux distros (with the possible exception of Slack and Gentoo based), to a lesser or greater extent - e.g. you would be very unwise to make changes to a configuration on a SUSE system without first reading the package's Readme.SUSE

Plesk (and I imagine cPanel) is expensive to buy on it's own - however the big hosting providers get good rates and can often offer it to their customers cheaply or free. E.g. a £30 pm virtual server from 1&1 includes a 100 domain licence for Plesk. There are free alternatives, the first one that springs to mind is Webmin - however it is not oriented to reselling hosting, in the same way as Plesk and cPanel.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache and FTP vps to work more like godaddy shared hosting fishdink Linux - Server 1 06-19-2009 07:55 AM
LXer: SELinux - Highly Secured Web Hosting for Python-based Web Applications LXer Syndicated Linux News 0 05-28-2008 07:30 AM
LXer: Web Hosting Provider Verizon Business Expands Managed Hosting ... LXer Syndicated Linux News 0 09-17-2006 06:21 AM
LXer: Web Hosting Provider Zen Internet Offer Linux Hosting Trial for 1 ... LXer Syndicated Linux News 0 04-20-2006 09:33 PM
Free web based control panel for web hosting? mooman_fl Linux - Software 0 06-18-2004 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration