Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th March 2010, 06:36
billcouper81 billcouper81 is offline
Junior Member
 
Join Date: Dec 2009
Posts: 29
Thanks: 2
Thanked 4 Times in 3 Posts
Default Howto Create Multiple Symlinks by Default

I have searched this forum and google but I can't find anything on this...

When making a new "site" ISPConfig will automatically create a sym-link in /var/www/domainname.com

I am using roundcube webmail and it is located in /var/www/roundcube
How am I to get ISPConfig to automatically create a symlink in the client web folder?
/var/www/domainname.com/web/webmail -> /var/www/roundcube

Normally I just ssh to server and create the link manually, which is OK if I am doing the setup of a new website, but if another of staff is doing they will always forget or skip this step.. can i make it auto?

I tried adding extra to the "Website Symlinks" in server config, and seperated them with , or ; but it just breaks it completely (not even the normal one gets made so I set it back to default setting)
Reply With Quote
Sponsored Links
  #2  
Old 17th March 2010, 08:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,170 Times in 4,054 Posts
Default

You can e.g. write a plugin for this and bind it to the same events then the apache plugin. Take a look at the apache plugin for details and there are also some threads in the dev forum on how to write plugins.

We do not offer such a function in ispconfig as it does not work reliably. It breaks when you use high security settings or suphp or php-fcgi as it is done on hosting systems.

Quote:
I tried adding extra to the "Website Symlinks" in server config, and seperated them with , or ; but it just breaks it completely (not even the normal one gets made so I set it back to default setting)
This field is only for symlinks pointing to the website and not for syminks in the website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 17th March 2010, 16:38
billcouper81 billcouper81 is offline
Junior Member
 
Join Date: Dec 2009
Posts: 29
Thanks: 2
Thanked 4 Times in 3 Posts
Default

i have no clue about apache plugins

can i suggest to implement such a feature, in the distant future? to be able to comma seperate multiple symlink directives in the "Website Symlinks" field?

this could help noob sys admin like myself, i am still learning linux and have a loooong way to go (if there is such thing as a finish line)
Reply With Quote
  #4  
Old 17th March 2010, 16:53
dclardy dclardy is offline
Senior Member
 
Join Date: Sep 2009
Location: Dallas, TX
Posts: 347
Thanks: 10
Thanked 47 Times in 28 Posts
Default

If you are adding it for every site, why not put a just create an alias in apache.

Code:
vi /etc/apache2/conf.d/apache2-doc
Code:
Alias /webmail /var/www/roundcube/

<Directory "/var/www/roundcube/">
Options Indexes FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
AddDefaultCharset off
</Directory>
Then just restart apache, and all your sites will automatically end up at that when they go to domain.com/webmail
Reply With Quote
  #5  
Old 17th March 2010, 19:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,170 Times in 4,054 Posts
Default

Quote:
can i suggest to implement such a feature, in the distant future? to be able to comma seperate multiple symlink directives in the "Website Symlinks" field?
As I explained above, this field is for something completely different.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 18th March 2010, 08:01
billcouper81 billcouper81 is offline
Junior Member
 
Join Date: Dec 2009
Posts: 29
Thanks: 2
Thanked 4 Times in 3 Posts
 
Default

thanks dclardy
i tried your suggestion and indeed it does work as intended.. now i don't need to make sym links in each sites web folder.. thankyou


thanks till
sorry i didn't realise, i am a big nooby
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
Cannot send or receive mail farbrorc Installation/Configuration 6 24th January 2010 11:56
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
Default Mail scan settings for new users timehost Installation/Configuration 3 26th October 2007 12:05
How to create multiple chroot (jailed) users accounts in batch gregor_gede Suggest HOWTO 15 14th September 2006 06:42
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs pontifex HOWTO-Related Questions 2 26th October 2005 17:54


All times are GMT +2. The time now is 03:17.


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