HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   ISPConfig 3 Priority Support (http://www.howtoforge.com/forums/forumdisplay.php?f=35)
-   -   Problem creating new sites (http://www.howtoforge.com/forums/showthread.php?t=61872)

edworcs 17th May 2013 16:35

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

till 17th May 2013 16:41

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.

edworcs 17th May 2013 17:25

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


All times are GMT +2. The time now is 02:01.

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