Page 1 of 1

free hosting script with automated subdomain etc.

Posted: Sun Aug 24, 2003 5:10 pm
by pprograms
hello,

i'm currently having the problem that i want to offer users free space with a subdomain and ftp-access on my server. but i don't want to add each account by hand. is there a way i can automate adding subdomains, ftp-accounts and folders on my apache via php or some other language? please help me out.

best regards,
PPrograms

Posted: Sun Aug 31, 2003 6:33 pm
by JAM
This is a very dangerous idea, but I cant help shooting some ideas.

Creating folders is no problem in PHP.
Subdomains, here it comes, could work if you let PHP write to the file containing the subdomain-info (httpd.conf ?). But as I stated, this is extremely theoretical, and probably not a very good way to do it.

(Another problem is that you might need to restart the server/rehash the server configuration after each addition, and I'm not sure that can be done like this.)