Submitted by teamfighter on Sun, 04/17/2011 - 11:11
Good afternoon! Is it possible to change user home directory name to FQDN? I mean, when I am adding virtual server, with domain name "example.test.com", virtualmin creates home directory, name "/home/example". Is it possible, that Virtualmin will create home directory, called "/home/example.test.com"? It is very important for me. Thanks.
Status:
Active
Comments
Submitted by Locutus on Sun, 04/17/2011 - 11:21 Comment #1
Yep, that is possible. In fact, I have it set up exactly like you have in mind. :)
You can configure it in the Virtualmin Configuration -> Defaults for new domains : Home subdirectory. Set that to "From template" and the edit box to "$DOM".
Submitted by Locutus on Sun, 04/17/2011 - 11:20 Comment #2
(Deleted... Sorry, double-post due to server errors.)
Submitted by teamfighter on Sun, 04/17/2011 - 14:21 Comment #3
Thanks a lot, thats it)
Submitted by teamfighter on Sun, 04/17/2011 - 14:21 Comment #4
Submitted by marcobarrios on Tue, 11/22/2011 - 14:40 Comment #5
When I set the Home subdirectory to $DOM I get no such a file or directory errors when creating a new virtual server (I am using custom Apache settings in server templates).
I am trying to create a virtual server to /home/domain.com/ folder and to have website root at /home/domain.com/html and access and error logs at home/domain.com/html/logs/.
Any help would be really appreciated!
Submitted by JamieCameron on Tue, 11/22/2011 - 18:08 Comment #6
What is the error message you are getting exactly?
Submitted by marcobarrios on Sat, 11/26/2011 - 19:38 Comment #7
Performing other Apache configuration .. .. configuration failed : Failed to copy /etc/php.ini to /home/domain.com/etc/php5/php.ini : cp: cannot create regular file `/home/domain.com/etc/php5/php.ini': No such file or directory
Setting up scheduled Webalizer reporting .. .. Webalizer reporting failed! : Failed to open /home/domain.com/public_html/stats/.htaccess.webmintmp.2780 : No such file or directory at ../web-lib-funcs.pl line 1360, line 1.
Setting up AWstats reporting .. .. AWstats reporting failed! : virtualmin-awstats::feature_setup failed : Failed to open /home/domain.com/cgi-bin/awstats.pl.webmintmp.2780 : No such file or directory at ../web-lib-funcs.pl line 1360, line 1.
Thank you!
Submitted by JamieCameron on Sun, 11/27/2011 - 23:52 Comment #8
Does the directory /home/domain.com actually get created at all? Or is it created, but empty?
Submitted by marcobarrios on Mon, 11/28/2011 - 18:10 Comment #9
It seems like the directory gets created, but it's empty.
Submitted by JamieCameron on Mon, 11/28/2011 - 18:27 Comment #10
Weird ... if you su to the domain's user, can you create sub-directories like
etc
orpublic_html
?Submitted by marcobarrios on Wed, 11/30/2011 - 04:28 Comment #11
I have sent you email about the issue.
Submitted by JamieCameron on Wed, 11/30/2011 - 13:02 Comment #12
Ok, I fixed the issue .. there were several configuration problems on your system related to the home directory. Also, the additional templates you had created had invalid default Apache configurations, so I changed the default templates back to those that come with Virtualmin.
What home directory format are you trying to use exactly?
Submitted by marcobarrios on Sat, 12/03/2011 - 13:18 Comment #13
Thank you for your help Jamie!
I would like the home directory to have a subdirectory for each domain, no matter the what the domain type is (server or sub-server). For example:
home/firstdomain.com/ home/firstdomainsubserver.com/ home/seconddomain.com/
Was there something fundamentally wrong with the configuration or is it just impossible to set custom subfolders for log files and Webalizer files?
Submitted by JamieCameron on Sat, 12/03/2011 - 13:44 Comment #14
You don't do that layout in Virtualmin, sorry ... sub-servers are always under the parent server's home directory.
Submitted by marcobarrios on Sat, 12/03/2011 - 13:48 Comment #15
To clarify, I would like to also change the default admin user, so then the home folder structure would probably be something like this:
home/adminuser/firstdomain.com/ home/adminuser/firstdomainsubserver.com/ home adminuser/seconddomain.com/
Submitted by JamieCameron on Sat, 12/03/2011 - 13:50 Comment #16
Sorry, but that format isn't supported either ..
Submitted by marcobarrios on Sat, 12/03/2011 - 14:22 Comment #17
And in case the "domains" folder is hard coded to sub-servers then I would like the home folder structure to be one of the following:
home/domains/top-level-server.com/ home/domains/sub-server.com/ home/domains/sub-server-2.com/
or
home/adminuser/domains/top-level-server.com/ home/adminuser/domains/sub-server.com/ home/adminuser/domains/sub-server-2.com/
Submitted by marcobarrios on Sat, 12/03/2011 - 14:27 Comment #18
Or do I have to create a dummy top-level server with no website or any other services (for example: home/adminuser/) and the create all the actual domains as sub-servers (for example: home/adminuser/domains/sub-server.com/)?
Submitted by JamieCameron on Sat, 12/03/2011 - 14:38 Comment #19
You'd have to create a dummy top-level server (perhaps with no website or DNS zone), and then create all your real domains as sub-servers..
Submitted by marcobarrios on Sat, 12/03/2011 - 16:34 Comment #20
How does one exactly configure a top-level server without website, DNS zones and cgi-bin, etc, fcgi-bin, tmp and user folders?
I must admit that this sounds like a limitation for the software, not to be able to set the home folder structure as wanted even there is variables like $HOME and $DOM…
Submitted by andreychek on Sat, 12/03/2011 - 16:39 Comment #21
When creating a Virtual Server, you can disable all the features, such as "BIND DNS Domain" and "Apache Website". That won't prevent creation of all the directories, though it will disable many of them.
Submitted by marcobarrios on Sat, 12/03/2011 - 18:31 Comment #22
OK, I managed to create dummy top-lever server.
While creating a sub-server I get an error installing PHPMyAdmin. It complains about the directory.
Submitted by JamieCameron on Sat, 12/03/2011 - 19:41 Comment #23
What is the phpMyAdmin error exactly?