LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 09-16-2009, 02:07 PM   #1
29t88
Member
 
Registered: Jan 2009
Distribution: CentOS 5.3
Posts: 62

Rep: Reputation: 17
Help with Apache > Linux Interrogation


Hey Guys,
I Run A Small Private Web host, My sister has 2 business's i run her sites, and i also run a few friends sites, etc,
I have 4 CentOS Servers Doing This And Was Wondering If It Was Possible To Make It When i add new users it automatically creates a ftp account to there home directory, and in there directory had /www/public_html Or somthing like that, where apache also makes a Virtual Host
That go's to that directory with a Virtual Host Name The Same As The User name? I Dont Know If I Quiet get what i mean myself, but if you do cheers!
I Wouldn't Mind Setting Up A Hosting Control Panel Also, Any Good Free Ones XD?
A Reseller Like one and a client one would be good

But yeah the hole apache with linux accounts things my main issue currently
 
Old 09-16-2009, 03:38 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
What you can do is run apache's userdir module which reference the URL www.myserver.com/~jsmith, for example. You can then add the pam_mkhomedir parameter to your service (ftp, ssh) so that the home directory is created as the user logs in for the first time.

You can also create the home directory yourself by running `su - jsmith` or maybe create a script that checks for new users then runs that command.
 
Old 09-17-2009, 02:43 AM   #3
29t88
Member
 
Registered: Jan 2009
Distribution: CentOS 5.3
Posts: 62

Original Poster
Rep: Reputation: 17
Would this create a virtual host for each account and have a www directory in there home or?//where the virtual host is linked>?
 
Old 09-17-2009, 07:10 AM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
No the virtual host you will have to create yourself or you can write another script that creates it if it finds a new home directory; which was already created by the first script.
 
Old 09-17-2009, 03:34 PM   #5
29t88
Member
 
Registered: Jan 2009
Distribution: CentOS 5.3
Posts: 62

Original Poster
Rep: Reputation: 17
Hmm i honestly wouldnt know how to do a linux script< i only ever do windows programs Or DOS Programs XD
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File interrogation/removal script kenwoodgt Linux - Software 3 08-10-2006 12:33 PM
Date interrogation for files created chunky Linux - General 2 08-03-2004 03:31 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM
Linux-apache aparna_chi Linux - Networking 3 03-01-2002 04:40 AM


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

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