Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th February 2008, 18:26
allgaeu allgaeu is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default replace [...]webX/web to [...]webX/htdocs ?

Hello,

just installed ISPConfig on a box, everything works fine but as i`m goin to migrate some web`s from vhcs to ISPConfig it would be great to have the directories actually look like this:

/var/www/virtual/webX/htdocs
instead of
/var/www/virtual/webX/web

is there a way to get this beaviour without hacking writeconf.php to replace web by htdocs (or just create a symlink after the web-folder was created...) ?

Thanks,
Alex
Reply With Quote
Sponsored Links
  #2  
Old 13th February 2008, 11:33
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,653 Times in 4,462 Posts
Default

You can not change the directory layout without changing the ispconfig code in many places. If you want to create a symlink automatically, you should have a look at the function make_vhost or make_docroot in the file /root/ispconfig/scripts/lib/config.lib.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th February 2008, 19:38
allgaeu allgaeu is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks,
creating the symlink now works fine.

I also found that this file might be the right place to apply some other changes like open_basedir restrictions for php, logifle format and directories, adjusting linebreaks in Vhst_ispconfig.conf, custom logfiles per domain etc.

Is there a meachnism that re/overwrites manual changes in the apache-configuration file from a cache/working diretory or the database on each creation of a vhost like vhcs does at ISPConfig, too ?
(btw, this mechanism sucks ...)

Anyway, thanks a lot for the hint,
Alex
Reply With Quote
  #4  
Old 14th February 2008, 12:27
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,653 Times in 4,462 Posts
Default

The apache config files are written from this function when a website is changed.

Quote:
(btw, this mechanism sucks ...)
ISPConfig is open source. Feel free to write a better one
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 14th February 2008, 12:51
allgaeu allgaeu is offline
Junior Member
 
Join Date: Feb 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
The apache config files are written from this function when a website is changed.
ups, this is what i suspected

Quote:
ISPConfig is open source. Feel free to write a better one
Sure, not an issue...
I just tried to avoid too much hacking to be able to update - but that`s obviously done now

Did you ever think about using single files per domain/vhost together with more fine-grained templates where only values affected by ISPConfig are actually changed for future versions ?

Guess that's not such a big deal but would allow to customize without modifications being overwritten on every change in the web frontend

Alex
Reply With Quote
  #6  
Old 15th February 2008, 18:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
 
Default

Quote:
Originally Posted by allgaeu
Did you ever think about using single files per domain/vhost together with more fine-grained templates where only values affected by ISPConfig are actually changed for future versions ?

Guess that's not such a big deal but would allow to customize without modifications being overwritten on every change in the web frontend

Alex
ISPConfig v3 will go in that direction.
__________________
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
replace backport kernel provell Kernel Questions 2 22nd January 2007 20:37
How to replace values in mysql? (because of Server migration) Pasco Server Operation 1 22nd December 2006 18:11
Replace Proftpd with Pure-ftpd? gzero General 1 23rd November 2006 11:49
how to replace mysql 4 with mysql 5 ruskicar Server Operation 7 17th July 2006 16:14
Replace Hard Drive dpn48312 HOWTO-Related Questions 2 29th December 2005 12:17


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


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