Thumper Posted March 1, 2005 Posted March 1, 2005 I need a script to run when a user registers to my site. I want them to have the option to setup subdomains using their username. I want this to run automatically when they choose yes. Any idea's how I can do this? Quote
TCH-Bruce Posted March 1, 2005 Posted March 1, 2005 That would be against the AUP. You may not conduct hostee or offer free web hosting to people based on your subdomains Quote
Thumper Posted March 1, 2005 Author Posted March 1, 2005 I'm not wanting to allow hosting (in my terms). Let me know if this is against AUP. I'm wanting to allow subdomains so that certain users can upload trail pictures or small videos. The subdomain would have a default page which had an upload script to allow only .jpg, .mpeg, .mpg, .avi files to be uploaded. Once uploaded they would be diplayed in a thumbnail gallery below the upload script w/the code to put in forums to display a link. Quote
TCH-Thomas Posted March 1, 2005 Posted March 1, 2005 I think a regular photo gallery like Coppermine can do what you want each user to be able to do without using subdomains for each user and no violating the aup. Quote
Thumper Posted March 2, 2005 Author Posted March 2, 2005 (edited) I'll check that script out. I'm confused as to how allowing them to upload to my site is any different than allowing them to upload to a subdomain folder. My goal in having it in subdomains is to allow them to see just their files very easily. It's all still under my public_html so I don't see what the difference is. I'm not going to give them any ftp access or any ability to host webpages -- the page will just be an upload script and I'm going to make sure it only allows them to upload pics/video extension and no html. Also, I'm not sure...but wouldn't it be more secure if someone tried and successfully uploaded a file that gave them access to the domain -- wouldn't it only give them access to the subdomain? Edited March 2, 2005 by Thumper Quote
TCH-Bruce Posted March 2, 2005 Posted March 2, 2005 If you create an FTP user and assign them to a folder in your domain that is the only folder within your domain they can access with that FTP account. Of course they could create subfolders. What you are wanting to do having a script create a subdomain I doubt will be possible since it has to update DNS records. The only way I know to successfully create a subdomain is using cPanel itself. And if your script creates a folder then the ownership of the folder will most lilkely be "nobody". Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.