Problem creating new sites

Discussion in 'ISPConfig 3 Priority Support' started by edworcs, May 17, 2013.

  1. edworcs

    edworcs New Member HowtoForge Supporter


    Non standard / unusual configuration:

    • Centos 5.8
    • DRBD
    • Using /usr/sbin/drbdlinks

    We upgraded from ISPConfig 3.0.3 to

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

    Shortened debug says:

    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/
    17.05.2013-13:57 - DEBUG - Removing website: /var/www/clients/client2/web157
    17.05.2013-13:57 - DEBUG - Removing symlink: /var/www/
    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/ between version 3.0.3 and we can see multiple new instances of:

    $allow_symlink = false
    Do we need to edit the to $allow_symlink = true, or is there a better solution?


  2. till

    till Super Moderator Staff Member ISPConfig Developer

    No,this would allow your clients or someone who hacked a site to attack your server.

    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.
  3. edworcs

    edworcs New Member HowtoForge Supporter

    Hi Till,

    Many thanks for the speedy reply. Much appreciated.

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

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

    and then add

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

    Thanks again,


Share This Page