#1  
Old 17th May 2013, 17:35
edworcs edworcs is offline
Junior Member
 
Join Date: Sep 2010
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
Default Problem creating new sites

Hi,

Non standard / unusual configuration:
  • Centos 5.8
  • DRBD
  • Using /usr/sbin/drbdlinks

We upgraded from ISPConfig 3.0.3 to 3.0.5.2.

We can't create any new sites on the server.

Shortened debug says:


Code:
17.05.2013-13:57 - DEBUG - Action aborted, target is a symlink: /var/www/clients/client2/web157
17.05.2013-13:57 - DEBUG - Removing vhost file: /etc/httpd/conf/sites-available/foobar.deleteme.jp.vhost
17.05.2013-13:57 - DEBUG - Removing website: /var/www/clients/client2/web157
17.05.2013-13:57 - DEBUG - Removing symlink: /var/www/foobar.deleteme.jp
The "Action aborted, target is a symlink" seems to be the problem here?

My guess is this is because /var/www is part of the DRBD setup? Its actual true path is /data/var/www

If we compare the /server/lib/classes/system.inc.php between version 3.0.3 and 3.0.5.2 we can see multiple new instances of:

Code:
$allow_symlink = false
Do we need to edit the system.inc.php to $allow_symlink = true, or is there a better solution?

Thanks,

Ed
Reply With Quote
Sponsored Links
  #2  
Old 17th May 2013, 17:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,736
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
Default

Quote:
Do we need to edit the system.inc.php to $allow_symlink = true, or is there a better solution?
No,this would allow your clients or someone who hacked a site to attack your server.

Quote:
My guess is this is because /var/www is part of the DRBD setup? Its actual true path is /data/var/www
The solution is to delete the symlink /var/www and replace it with a bind mount in /etc/fstab, similimar to the bind mounts that are added for the log directories in ispconfig 3.0.5.x.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 17th May 2013, 18:25
edworcs edworcs is offline
Junior Member
 
Join Date: Sep 2010
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

Hi Till,

Many thanks for the speedy reply. Much appreciated.

It looks like I need to add something like this is /etc/fstab

Code:
/var/www /data/var/www    none    bind,nobootwait    0 0
and then modify /etc/drbdlinks.conf to remove

Code:
link('/var/www')
and then add

Code:
link('/var/www', '/data/var/www')
I'll get on and research this. Not used Bind Mounts before!

Thanks again,

Ed
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
MySQL Error Nolan Installation/Configuration 12 16th February 2011 03:15
mail.err warnings and some mail unable to receive HellMind General 4 8th October 2010 20:57
Creating sites with specific user as owner smet Installation/Configuration 1 25th April 2010 00:44
ISPConfig 2.2.14 released till General 48 20th July 2007 00:46
problem for accessing created sites ericli Server Operation 1 26th November 2005 10:47


All times are GMT +2. The time now is 22:26.


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