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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th February 2012, 05:01
david_hitt@lionlike.com david_hitt@lionlike.com is offline
Junior Member
 
Join Date: Feb 2011
Posts: 25
Thanks: 6
Thanked 4 Times in 4 Posts
Default ISPConfig 3 Multiple Servers + NFS

I have 2 ISPConfig 3 servers that are running websites. Server2 mirrors Server1. I created an NFS share on another server because I want to share the /var/www directory so users only have to FTP once. I mounted the NFS share to /var/www in /etc/fstab on both servers, issued a cp -R -p * on my /var/www to the NFS share, then rebooted both servers. Both came up fine sharing the NFS share on /var/www. However, I'm getting 403 Access Denied error messages when accessing any of the sites. I've ensured my users in /etc/passwd match, i.e. web22 (id 1004) is the same on both systems. So I did a chmod 755 recursively on the new /var/www directory and that fixed the error. Now it seems some session issues are appearing in applications like squirrelmail. I haven't setup any load balancing whatsoever. Everything still goes to Server1, so I don't understand why it's having session issues.

Has anyone done a multiserver setup like this before? Any tips or tricks you can share would be greatly appreciated!

David
Reply With Quote
Sponsored Links
  #2  
Old 8th February 2012, 06:31
david_hitt@lionlike.com david_hitt@lionlike.com is offline
Junior Member
 
Join Date: Feb 2011
Posts: 25
Thanks: 6
Thanked 4 Times in 4 Posts
Default update

Hey all, just a quick update to provide a little more information

Server1 /var/www/example.com/web/ before the copy:

drwxr-xr-x 2 web2 client1 4096 2012-01-09 23:07 assets
drwxr-xr-x 3 web2 client1 4096 2012-01-09 23:07 downloads
drwxr-xr-x 2 web2 client1 4096 2011-10-16 15:45 error
-rwxr-xr-- 1 web2 client1 1861 2011-10-16 15:45 index.html
-rwxr-xr-- 1 web2 client1 1861 2011-10-16 15:45 index.php
drwxr-xr-x 2 root root 4096 2012-01-10 00:30 stats
drwxr-xr-x 16 web2 client1 4096 2012-01-09 23:13 webmail

My NFS is mounted to /home/data
From /var/www I issue a cp -rp * /home/data/ and this is now the output at /home/data:

drwxr-xr-x 2 web2 client1 4096 2012-01-09 23:07 assets
drwxr-xr-x 3 web2 client1 4096 2012-01-09 23:07 downloads
drwxr-xr-x 2 web2 client1 4096 2011-10-16 15:45 error
-rwxr-x--- 1 web2 client1 1861 2011-10-16 15:45 index.html
-rwxr-x--- 1 web2 client1 1861 2011-10-16 15:45 index.php
drwxr-xr-x 2 root root 4096 2012-01-10 00:30 stats
drwxr-xr-x 16 web2 client1 4096 2012-01-09 23:13 webmail

I umount my NFS volume and remount it to /var/www and restart my apache service. That's when the 403 errors start. Cannot access '/'. So I set chmod a+r on index.* and chmod a+x on index.* and it fixes those two files. Now, if I go to Server2 that already has the NFS mounted to /var/www, those chmod updates done from Server1 do not show on Server2. It still shows the two index files as:

-rwxr-x--- 1 web2 client1 1861 2011-10-16 15:45 index.html
-rwxr-x--- 1 web2 client1 1861 2011-10-16 15:45 index.php

So Server2 is giving the 403 error. I fix the perms on Server2 and it works. So after manually adjusting the perms from both servers to the NFS volume, it starts working. Certainly there has to be an easier way to do this. Now each time a file is sent by FTP through one server, the file perms have to be updated from the other server.

Any ideas? Thanks
Reply With Quote
  #3  
Old 8th February 2012, 07:04
david_hitt@lionlike.com david_hitt@lionlike.com is offline
Junior Member
 
Join Date: Feb 2011
Posts: 25
Thanks: 6
Thanked 4 Times in 4 Posts
 
Default

And yes, I've already done the following in my apache2.conf file:

EnableMMAP Off
EnableSendfile Off

As recommended by apache when storing web directories on remote filesystems.
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
Cisco, Solaris and LACP Mark_NL Technical 1 14th December 2011 09:57
Version 1.3 of the ISPConfig 3 Manual is finally available! falko General 44 2nd December 2011 12:04
Multiple Servers ahagadorn Developers' Forum 5 9th February 2010 14:38
Loads of mysql connections to dbispconfig StrikerNL General 2 5th March 2009 14:31
Control multiple servers with ISPConfig torusturtle Installation/Configuration 1 26th November 2006 00:07


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


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