Mins / TuxLite

A complete LAMP and LNMP setup script for Debian or Ubuntu
http://tuxlite.com
253 stars 112 forks source link

Choosing A Document Root When Creating A Sub-domain #40

Closed chubx closed 6 years ago

chubx commented 10 years ago

Hi,

I'm not sure if it's alright to post this here. But here it goes.

I've installed it in Ubuntu x64 12.04, it's great! But how shall I choose the document root? Doing a ./domain.sh add myusername mysub.domain.tld automatically creates another separate document root.

What if I wanted to direct the sub-domain to another folder inside it's root domain? The usual path for root domain is /home/user-name/domains/domain-folder/public_html and I need the newly created sub-domain to use the same document root. This is easy to do with a control panel, but I'd rather use this script for my intended hosting.

Any thoughts on this one?

Testing this on a VirtualBox. Great script by the way!

Mins commented 10 years ago

That is currently not possible. The scripts rely on using a standard (opinionated) structure for the domains and sub-domains to be able to do all its automation.

I'm afraid you will need to create and configure the subdomain manually. May I ask why you'd prefer such a directory structure? Its similar to cPanel which imho a less clean way to organize your virtual hosts.

chubx commented 10 years ago

Hello There. I'm just learning all these stuff by myself and I'm not earning really well right now. I can't afford a cPanel license and I'm just practicing these stuffs from my local machine plus with free visualization apps/platform.

I've tried creating and configuring the subdomain manually but it throws an error about the php-fpm mod.

I'm currently trying to setup an OpenCart Multi Store setup using your script. I prefer to use your script than to use those FOSS Control Panels. I'm not good at server security yet, that is why I rather not use those control panel yet as I've read several released exploits about them. I've tried zPanel, Ajenti, DirectAdmin, Webadmin and ISPConfig.

But I really prefer to use just your script.

Thank you for responding by the way. I'll make a further research on this one.