Help! Newbie at large!!

Hi.

Got Virtualmin GPL up and running on a Centos 5.3 Server. I have gone through one round as a test run below deleting everything and now going for real.

I will presently create a new domain with me (MainMan) as user. After this, I and any other server owner will interact with the server using UserMin. Only when new domains are needed will I log into Virtualmin as admin.

I have a few queries as follows:

(A) When I set up a domain (virtual server) I can’t access it directly due to the restriction on browsing empty directories. I like the restriction but wonder how to set VM up so that a default index.html is inserted in the public_html folder. I know this has something to do with /etc/skel. Do I just create the index.html (with the appropriate variable) in that folder? I guess this is the case but want to get it right first time. Also, does it matter what the permissions are on this file? If I wget it into /etc/skel as root, will this have repercussions?

(B) I have read how the mysql in webmin is more powerful than phpMyAdmin but I am used to this and want to use it. I have already installed it using yum and now want to change the Usermin phpMyAdmin. I think I read this can be done in the mass of stuff i have been reading over the last few days but can’t find it anymore. I want to set usermin up so that when the users clicks on the mysql link, they get directed to phpmyadmin.

© I will like to do the same with phpPGAdmin

(D) I am guessing that every domain I create will be under /var/www/html/DOMAIN-NAME. Is it possible to change it to /var/www/html/USER-NAME/DOMAIN-NAME?

(E) Can the domain owner automatically login using ftp such as Cyberduck or Fetch or Filezilla after creation? Do they use the same login as the admin login? Can they use normal ftp or something special? Do I need to create a ftp user? Do I need to add them to the ftp group on the server?

(F) What is the difference between "Home directory base" and "Home subdirectory" in Module Config>>Defaults for new domains?. Is this related to my Query "D" above?

Thanks

PS: The theme used for this forum does not display the message preview correctly on safari - OSX 10.5.6. The text and the background have almost the same colour.<br><br>Post edited by: dayo, at: 2009/05/04 10:40

After this, I and any other server owner will interact with the server using UserMin.

Server Owners have a Virtualmin account for managing their virtual server. Usermin is for webmail, and some other basic tasks (and is rarely useful to the Server Owner account…but is the primary interface for mailbox users).

I like the restriction but wonder how to set VM up so that a default index.html is inserted in the public_html folder. I know this has something to do with /etc/skel. Do I just create the index.html (with the appropriate variable) in that folder?

Create /etc/skel/public_html/index.html

I have read how the mysql in webmin is more powerful than phpMyAdmin but I am used to this and want to use it. I have already installed it using yum and now want to change the Usermin phpMyAdmin. I think I read this can be done in the mass of stuff i have been reading over the last few days but can't find it anymore. I want to set usermin up so that when the users clicks on the mysql link, they get directed to phpmyadmin.

Again, Usermin is for webmail and such (it does have the MySQL module, but server owners generally will work within Virtualmin, and not Usermin). You would create a custom link in the Virtualmin menu, and simply disable the MySQL module.

Click on Custom Links in the System Customization menu, and then click "Add a new custom link" and fill out the form.

Then simply disable the MySQL module in Module Configuration>Webmin modules available to server administrators.

I don’t think MySQL is enabled in Usermin, by default, but if it is you can turn it off there as well.

I will like to do the same with phpPGAdmin

Then do the same. :wink:

I am guessing that every domain I create will be under /var/www/html/DOMAIN-NAME. Is it possible to change it to /var/www/html/USER-NAME/DOMAIN-NAME?

Actually, the default in a system installed using install.sh is /home/domain.

And, no, not really. You could fake Virtualmin out by first creating a server with a subdomain name in your own domain and the username you wanted to appear first, and then all sub-servers the user created would appear in /home/username/domains/, but that’s sort of weird.

e.g.

I want a website, so my administrator creates joe.virtualmin.com as my account. I get:

/home/joe

And, then when I use Virtualmin to create the website I actually wanted, joeisawesome.com, it’d be in:

/home/joe/domains/joeisawesome.com

So, it is what you’re after (pretty much), but it feels strange to me.

Can the domain owner automatically login using ftp such as Cyberduck or Fetch or Filezilla after creation?

Depends on whether you enable FTP or SSH (or whatever protocol you want them to use). But, the default is yes.

Can they use normal ftp or something special?

FTP and SSH are enabled, by default. I generally recommend folks use FTP over SSH. It is more secure than FTP. Or, if you have a certificate, you can enable SSL/TLS in ProFTPd, making FTP a bit more secure.

Do I need to create a ftp user? Do I need to add them to the ftp group on the server?

No and no. The virtual server owner account is the account that is generally used by the server owner for all purposes, including Virtualmin, FTP, and SSH.

There is a link on the Mail and FTP Users page for creating additional website data access users, which creates a special purpose, very limited FTP user for managing website data (content) via FTP but nothing else.

What is the difference between "Home directory base" and "Home subdirectory" in Module Config>>Defaults for new domains?. Is this related to my Query "D" above?

There is online help for all of the module config options. Just clink the title of the option for a help popup.

And yes, they are related to D above.

PS: The theme used for this forum does not display the message preview correctly on safari - OSX 10.5.6. The text and the background have almost the same colour.

Just about everything about this forum is broken. We’re moving to a whole new website (with no shared code) in the next 24 hours or so, and our long national nightmare will be over.

Thanks

Can only find

[ol][li]Custom Fields
Custom Shells
Global Variables[/li]
[/ol]
under system cutomisation. Perhaps this is something to do with pro v gpl.

't find

Hmmm…I guess it is Professional only. Not really any particular reason for it to be Pro only. I’ll see if Jamie can let that trickle down into GPL in the next couple of releases. We tend to trickle down a feature every time we add something new to Professional, so maybe this will be the next feature to do so.

You could, in the meantime, make a small custom Virtualmin plugin that just provides those links (there are hooks in the Virtualmin plugin API for injecting things into menus…so it would only take a few lines of code, plus the regular plugin boilerplate stuff, to make what you need).