LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Help with Apache > Linux Interrogation (http://www.linuxquestions.org/questions/linux-server-73/help-with-apache-linux-interrogation-755696/)

29t88 09-16-2009 02:07 PM

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

ramram29 09-16-2009 03:38 PM

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.

29t88 09-17-2009 02:43 AM

Would this create a virtual host for each account and have a www directory in there home or?//where the virtual host is linked>?

ramram29 09-17-2009 07:10 AM

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.

29t88 09-17-2009 03:34 PM

Hmm i honestly wouldnt know how to do a linux script< i only ever do windows programs Or DOS Programs XD


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