Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th October 2005, 10:42
Spum Spum is offline
Member
 
Join Date: Oct 2005
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default Layout of new users's folders.

What's the current layout?
Reply With Quote
Sponsored Links
  #2  
Old 25th October 2005, 11:08
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,394
Thanks: 833
Thanked 5,487 Times in 4,319 Posts
Default

The current layout is, assumed we have the website with ID 1 and the domain www.mydomain.com and all webs are located uder /var/www:

/var/www/web1/
Symlink: /var/www/www.mydomain.com => /var/www/web1/

The Symlink is created for easier navigation on the shell.
Inside the directory of the web we have the following folders:

logs/ Contains the logs of this website
user/ Contains the user directories
web/ contains the website data (HTML files)
cgi-bin/ CGI-Bin Directory
ssl/ SSL Certificates of this website
phptmp/ Temp directory if PHPSafemode is enabled

Inside the User directory are the homedirs of the users located, assumed we have a user named web1_admin:

/var/www/web1/user/web1_admin/

Inside the userdirectory:

Maildir/
Maildir/cur/
Maildir/new/
Maildir/tmp/
web/ In this web directory the user can put his personal homepage. The files can be accessed by www.mydomain.com/~web1_admin/

I'am not sure if we really need this userweb feature in new releases.
Reply With Quote
  #3  
Old 25th October 2005, 13:56
Spum Spum is offline
Member
 
Join Date: Oct 2005
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

wouldn't it be easier to do something like this;

>usr/user_name/
->usr/user_name/bin <-- for binary applications to run from (for those who want to offer, say IRCd hosting)
->usr/user_name/domain.com
-->usr/user_name/sub.domain.com
---> usr/user_name/domain.com/mail
---> usr/user_name/domain.com/web <-- base level of domain
---> usr/user_name/domain.com/ftp
---> usr/user_name/domain.com/log
---> usr/user_name/domain.com/ssl
---> usr/user_name/domain.com/cgi-bin

Last edited by Spum; 25th October 2005 at 14:00.
Reply With Quote
  #4  
Old 25th October 2005, 18:07
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,394
Thanks: 833
Thanked 5,487 Times in 4,319 Posts
Default

With user_name you mean the name of the client? Clients currently have no linux system users, but in a virtual setup where mailusers and ftpusers arent systemusers anymore we can change this.
Reply With Quote
  #5  
Old 26th October 2005, 11:50
Spum Spum is offline
Member
 
Join Date: Oct 2005
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I mean the user name you specify the client, or the client's name as a system user.
Reply With Quote
  #6  
Old 26th October 2005, 11:58
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,394
Thanks: 833
Thanked 5,487 Times in 4,319 Posts
Default

Yes, this makes sense. Then the client will have one FTP account (or more when they are virtual) for all his domains.

It will be nice if this user can be chrooted with an patched SSH then it will be possible to assign SSH accounts without opening the complete server.
Reply With Quote
  #7  
Old 27th October 2005, 11:23
Spum Spum is offline
Member
 
Join Date: Oct 2005
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah, that would be a good idea, actually. But yeah, i'm pretty surte the layout i suggested would be better.

I can implement it in whatever to allow the user to specify which way user accounts should be made, /home/ or /usr/, or they can specify the location if they wish The great idea with this layout is that the folders can be made per user feature, so say a user only has FTP access and web to his or her domain, then that is the only folders they get!
Reply With Quote
  #8  
Old 4th November 2005, 14:14
SleeperZ SleeperZ is offline
Junior Member
 
Join Date: Oct 2005
Posts: 23
Thanks: 0
Thanked 2 Times in 1 Post
Default

Can I make a sugestion?

I see the folder layout / domains as a single issue which shouldn't be too hard to solve.

/home/user_name/folder

Now the domains are under a different tab and you can link domains to that folder (symbollic links) quick note: I would not put these in the same directory / file system eg: /home/user_name/website.tld -> /home/user_name/folder.

A nice way for this to work imo would be for a seperate folder to have all the symbollic links. I use /etc/httpd/vhlinks/ which maps the web address to a folder.

This brings me to the virtual hosts. I think a good feature would be to use mod_vhost_alias in apache. By using virtualhost "Templates" you would reduce your memory footprint, and also remove the need to restart the webserver every time you add a domain.

I am planning on implimenting mod_vhost_alias for my own network, and am happy to submit this code back, would be interested in hearing some feedback on what everyone thinks about what i've described there.

Cheers.
Reply With Quote
  #9  
Old 5th November 2005, 09:21
Tribal-Dolphin Tribal-Dolphin is offline
Member
 
Join Date: Jul 2005
Location: Rives - Isre - FRANCE
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hy all,

It seems good but what about the compatibility with current ISPconfig layout?

For users how have partitionned with a big /var partition, they have to rebuild all the server don't they?

Maybe you have a migration script for realise this easily.
__________________
Tribal-Dolphin
www.tribal-dolphin.net
Reply With Quote
  #10  
Old 5th November 2005, 09:44
SleeperZ SleeperZ is offline
Junior Member
 
Join Date: Oct 2005
Posts: 23
Thanks: 0
Thanked 2 Times in 1 Post
 
Default

Hi Tribal,

I dont think anyone was planning on changing the actual partition you want to use. This will still be settable in the config files. But from there on in it will be based on that structure.

I do not think its a good idea to continually change this structure, that is why I believe the most flexible method should be frozen and not altered too much in future releases. I think this code should be backwards compatible somehow with the current setup, as PHP websites often have paths set etc and changing structures around would totally mess with this.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading folders.... INCOMPLETE MyLinux General 9 24th February 2006 16:31
LDAP and Shared Folders? nformosa General 1 12th September 2005 15:04
30 Default Imap Folders? adamluz Installation/Configuration 9 18th August 2005 23:45


All times are GMT +2. The time now is 18:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.