Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th October 2006, 15:23
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default Wanna change Symlinks: www.mydomain.com

I would like to change the symlinks
Quote:
Symlink: /var/www/www.mydomain.com => /var/www/web1/
to the domain whithout the hostname (www) for a better handling.
Quote:
Symlink: /var/www/mydomain.com => /var/www/web1/
Can we change it and how can we do it?
Reply With Quote
Sponsored Links
  #2  
Old 11th October 2006, 11:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

The symlink is always identical with the host + domain of the website.

If you want to change it, you must change the code in the file /root/ispconfig/scripts/lib/config.lib.php

But be aware that this may break other functions in ISPConfig like the statistics.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 11th October 2006, 11:58
tom tom is offline
Senior Member
 
Join Date: Apr 2006
Posts: 492
Thanks: 8
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by till
The symlink is always identical with the host + domain of the website.

If you want to change it, you must change the code in the file /root/ispconfig/scripts/lib/config.lib.php

// symbolischen Link erzeugen
Code:
 if(!is_link($web_path_realname)) $mod->log->phpcaselog(@symlink($web_path, $web_path_realname), "ln -s $web_path $web_path_realname", $this->FILE, __LINE__);
I found that in /root/ispconfig/scripts/lib/config.lib.php and I suppose I have to modify this part "ln -s $web_path $web_path_realname" - right?

Last edited by tom; 11th October 2006 at 12:41.
Reply With Quote
  #4  
Old 11th October 2006, 13:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by tom
I found that in /root/ispconfig/scripts/lib/config.lib.php and I suppose I have to modify this part "ln -s $web_path $web_path_realname" - right?
Yes, right.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
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
Leting users change the email password? edge Server Operation 6 21st April 2008 01:21
I need to change the master domain minskog Installation/Configuration 5 7th July 2006 11:08
Server name change stops webmail working shajazzi Installation/Configuration 3 16th May 2006 16:00
Change document root ftp from / to web - how? tom Installation/Configuration 11 23rd April 2006 00:49
how to change server name lexcomputer Installation/Configuration 1 12th October 2005 10:01


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


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