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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th December 2011, 01:39
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default Location of symbolic links ..

Hello all,

When creating a web domain(?) or website, I get the following items placed in the directory /var/www. I am using the function: sites_web_domain_add

Quote:
lrwxrwxrwx 1 root root 34 Dec 3 19:16 M1380310.faafaa.com -> /var/www/clients/client418/web289/
lrwxrwxrwx 1 root root 34 Dec 3 19:31 M5764465.faafaa.com -> /var/www/clients/client420/web291/
lrwxrwxrwx 1 root root 34 Dec 3 19:47 M9970397.faafaa.com -> /var/www/clients/client422/web293/
lrwxrwxrwx 1 root root 34 Dec 3 20:43 M6410217.faafaa.com -> /var/www/clients/client427/web298/
lrwxrwxrwx 1 root root 34 Dec 3 20:57 M3904419.faafaa.com -> /var/www/clients/client429/web300/
lrwxrwxrwx 1 root root 34 Dec 3 21:07 M674439.faafaa.com -> /var/www/clients/client431/web302/
lrwxrwxrwx 1 root root 34 Dec 3 21:15 M4050598.faafaa.com -> /var/www/clients/client433/web304/
lrwxrwxrwx 1 root root 34 Dec 3 23:20 M5602722.faafaa.com -> /var/www/clients/client435/web306/
lrwxrwxrwx 1 root root 34 Dec 3 23:23 M1076050.faafaa.com -> /var/www/clients/client437/web308/
lrwxrwxrwx 1 root root 34 Dec 3 23:36 M4868469.faafaa.com -> /var/www/clients/client439/web310/
lrwxrwxrwx 1 root root 34 Dec 3 23:55 M6580505.faafaa.com -> /var/www/clients/client441/web312/
lrwxrwxrwx 1 root root 34 Dec 4 00:30 faafaa.com -> /var/www/clients/client442/web313/
lrwxrwxrwx 1 root root 34 Dec 4 00:30 M5883484.faafaa.com -> /var/www/clients/client443/web314/
What items can I "tweak" when using sites_web_domain_add so that it does not place the symbolic links (currently in /var/www) into another area/directory? In other words, I dont want the symbolic link for M5883484.faafaa.com to be in /var/www but in another directory?

Also, what is the SAFE way to remove these? I did a remove of this once (sometime ago) and it brought the whole nameserver down - nothing would work at all.

TIA

Last edited by dgmufasa; 5th December 2011 at 01:42.
Reply With Quote
Sponsored Links
  #2  
Old 5th December 2011, 09:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,381
Thanks: 833
Thanked 5,484 Times in 4,316 Posts
Default

Quote:
What items can I "tweak" when using sites_web_domain_add so that it does not place the symbolic links (currently in /var/www) into another area/directory? In other words, I dont want the symbolic link for M5883484.faafaa.com to be in /var/www but in another directory?
You can use any directory. See ISPConfig settings under System > Server Config > Web.

Quote:
I did a remove of this once (sometime ago) and it brought the whole nameserver down
Juts delete them, they are optional and just used for easy shell navigatioon of the administrator user. These links are not related to the naemserver in any way, so your nameserver problem was a coincidence and not related to removing the symlinks.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 5th December 2011, 19:07
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Thanks for the tip
Reply With Quote
  #4  
Old 12th December 2011, 04:03
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default one more thing ...

When making the change, it does not seem to be reflected in the .vhost files. For example, for faafaa.com, the symbolic links go into the right directory:
/var/www/installed_sites and not /var/www/
but the file: faafaa.com.vhost remains unchanged.

For example, in faafaa.com.vhost, I get:

Quote:
<Directory /var/www/faafaa.com>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
which does not work until I change it (and all other references of faafaa.com to something like : /var/www/installed_sites/faafaa.com

Quote:
<Directory /var/www/installed_sites/faafaa.com>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
I am using the function: sites_web_domain_add of the ISPConfig API. Where can I make the change so that the correct directories are created/used in the .vhosts files?
Reply With Quote
  #5  
Old 12th December 2011, 10:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,381
Thanks: 833
Thanked 5,484 Times in 4,316 Posts
Default

You can set or change every path in the ispconfig vhost template. A link /var/www/faafaa.com is required by ispconfig,if you remove it, you will have toi create your own vhost template that does not rely on this link.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 12th December 2011, 14:08
dgmufasa dgmufasa is offline
Member
 
Join Date: Oct 2011
Posts: 86
Thanks: 5
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till View Post
You can set or change every path in the ispconfig vhost template. A link /var/www/faafaa.com is required by ispconfig,if you remove it, you will have toi create your own vhost template that does not rely on this link.
Thanks for the response.

Where is the template?
Reply With Quote
  #7  
Old 12th December 2011, 15:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,381
Thanks: 833
Thanked 5,484 Times in 4,316 Posts
 
Default

All config file templates are in /usr/local/ispconfig/server/conf and modified versions should be saved to conf-custom
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
;extension=php_curl.dll kwickcut HOWTO-Related Questions 5 5th April 2011 14:30
Symbolic links beckteck Server Operation 1 5th February 2011 12:53
Vhosts...conf not synced to changes crypted General 50 24th April 2010 00:54
Images not served by apache over a symbolic link folder hhhhhh Server Operation 0 27th January 2009 04:01
Cron - PHP: Call to undefined function: gzinflate() safoo Server Operation 12 26th January 2007 17:49


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


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