LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-09-2008, 02:26 AM   #1
wackolacko
LQ Newbie
 
Registered: Dec 2008
Posts: 19

Rep: Reputation: 0
Hosting without control panel how to ???


Hello all,

I have been hosting for couple month using dedicated server with Cpanel, everything seem to be fine and easy with Cpanel, but i haven't learn anything about linux administrator other than use the web interface, and paying additional $30/month for Cpanel is nonesense. So now i want to little adventure and try to use host without cpanel but do not know where to begin since i been using the GUI of cpanel.

The server will come with pre-install software (apache, mysql, php) and my question is what are the steps need to be done to host 1 or more web site on the same server.

usually with cpanel i just need to create a new account, domain name, password and select a package and it automatically setup everything username, ftp, e-mail ...)

but since there are no cpanel or any other control panel for me to use WHAT ARE THE STEPS need to be done to add a new account (domain)


thank you
 
Old 12-09-2008, 02:41 AM   #2
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 561

Rep: Reputation: 58
Depends on what u want you could do "manual" hosting. The easy way is using real users or users in the system. If you just want to give like ftp access and lets say a mail address then could be done virtually using a mysql/sqlite/pgsql/text-file base.

Doing manual hosting is not easy, thats why most of people use Cpanel/Vdeck/Plesk and so on, because there is too many stuff to handle. If you are good with "scripts" then you could use that, or start building your own "panel", lets say start simple with just a couple of task which users can do and go more in details as you learn.

Everything depends on you and what you know...
 
Old 12-09-2008, 11:46 AM   #3
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
Post

Quote:
Originally Posted by wackolacko View Post
Hello all, ...<snip>... The server will come with pre-install software (apache, mysql, php) and my question is what are the steps need to be done to host 1 or more web site on the same server.
First you will need to configure your server to support using virtual domains for each service(email, web, ftp, etc). Out of the box most services are setup for a single domain configuration.

Edit: One other thing I forgot to mention is most likely you're going to have to configure support for almost all the scripting languages and ssl.

Quote:
Originally Posted by wackolacko View Post
usually with cpanel i just need to create a new account, domain name, password and select a package and it automatically setup everything username, ftp, e-mail ...) but since there are no cpanel or any other control panel for me to use WHAT ARE THE STEPS need to be done to add a new account (domain)
Here's the basics I use for my personal servers (done via script these days):

I add a user to the machine via useradd
I run a maildirmake on ~/Maildir for them
I build a web structure /var/www/domainname.tld/{htdocs,cgi-bin,log}
I touch /var/www/domainname.tld/favicon.ico
I generate a basic index.html file in /var/www/domainname.tld/htdocs
I drop a link in their home directory to their webstructure
I generate a basic apache config for them using a template and sed
I add basic aliases for their virtual email addresses (smtp,pop3,imap)
I setup a basic proftpd virtual domain for them
I setup a database with full privledges for them
I chown everything to them (I'm setup to use suphp)
I setup some webbased management tools for them (phpmyssqladmin,etc)
I setup basic entries for spamassassin for their domain
edit: I setup basic entries for dns (if needed) <rare anymore>
I restart all necessary services

Start by adding your own test domain, once its working add another and if it works too you have the process down, so now you can automate it via script.

It's really a great way to learn linux, all the in and outs of webhosting, and what happens behind the scenes, but it's not easy the first time you attempt it.

Be sure to read the tutorials on http://www.debian-administration.org/ and http://howtoforge.com, they will help you immensely the first time.

If you're not quite to the level of doing all of that on your own yet you could look into getting assistance with it from an experienced source or use one of the free panels like webmin.

What's harder than actually doing manual setups is going from a panel to manual and back, manual changes are likely to break panels and panels do things in a very obscure manner.

Last edited by rweaver; 12-09-2008 at 11:53 AM. Reason: added info
 
  


Reply

Tags
cpanel, isp, linux, webmin


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
best web hosting control panel mrtwice Slackware 2 06-06-2009 01:15 AM
is there a good control panel out there for web hosting? LinuxCrazy Linux - Server 6 05-31-2007 12:42 PM
Web Hosting Control Panel jwatco Linux - Software 9 03-10-2006 02:59 AM
LXer: ISPConfig: A hosting control panel LXer Syndicated Linux News 0 01-09-2006 02:46 PM
web hosting control panel kwickcut Mandriva 1 02-20-2005 09:03 AM


All times are GMT -5. The time now is 02:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration