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 7th January 2012, 18:58
BlackChart BlackChart is offline
Junior Member
 
Join Date: Jan 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default WEB and FTP on seperate servers

I've installed ISPConfig 3 in a multiserver environment.
All files for web-servers are located at a dedicated storage array controlled by OpenFiler...

Layout as follows:
storage.mydomain.com - Storage (OpenFiler)
mail.mydomain.com - mail, mysql, ftp (Main ISPConfig server)
web01.mydomain.com - Web server (Slave ISPConfig server)
web02.mydomain.com - Web server (mirror of web01)
vps.mydomain.com - OpenVZ server

Problem is (i think!) that FTP and web-servers are NOT physically the same server.

I can't login to FTP, logs only gives this (with debugging enabled):

Code:
Jan  7 18:41:02 mail pure-ftpd: (?@192.168.1.2) [INFO] New connection from 192.168.1.2
Jan  7 18:41:02 mail pure-ftpd: (?@192.168.1.2) [DEBUG] Command [user] [blackchart1]
Jan  7 18:41:02 mail pure-ftpd: (?@192.168.1.2) [DEBUG] Command [pass] [<*>]
Jan  7 18:41:02 mail pure-ftpd: (?@192.168.1.2) [INFO] PAM_RHOST enabled. Getting the peer address
Jan  7 18:41:08 mail pure-ftpd: (?@192.168.1.2) [WARNING] Authentication failed for user [blackchart1]
Jan  7 18:41:08 mail pure-ftpd: (?@192.168.1.2) [INFO] Logout.
Any idea of how to get this working?
The idea of seperated web and FTP server was not to have FTP taking rescources from web-servers...
Reply With Quote
Sponsored Links
  #2  
Old 9th January 2012, 10:24
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,485
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

Web and FTP have to be on the same server, as the FTP directories are the web directories. It does not make sense to separate them, as you wont be able to upload any files into your website if FTP is on a different system.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 9th January 2012, 11:13
BlackChart BlackChart is offline
Junior Member
 
Join Date: Jan 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

SAN is the secret word here

The ONLY server with more than 40 gigs of own space is the MySQL/Mail server which was intended to run FTP as well...

I've attached an image showing the current layout..
Attached Images
 
Reply With Quote
  #4  
Old 9th January 2012, 11:37
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,485
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

The FTP server(s) have to be on the web server(s), not the mail server in a ISPConfig setup.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 9th January 2012, 11:43
BlackChart BlackChart is offline
Junior Member
 
Join Date: Jan 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay..

As I understand I only have to install the FTP server on one of the web-servers?!
Apache2 is a mirror of Apache1 and would eventually be load-balanced with a pfSense firewall..

Maybe pfSense even can load-balance FTP connections?! Have to investigate further
Reply With Quote
  #6  
Old 9th January 2012, 11:44
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,485
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

Quote:
As I understand I only have to install the FTP server on one of the web-servers?!
Apache2 is a mirror of Apache1 and would eventually be load-balanced with a pfSense firewall..
Yes, that should work.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 9th January 2012, 12:36
BlackChart BlackChart is offline
Junior Member
 
Join Date: Jan 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hmmm...

Moved FTP-server to Apache1.
Now I can login but directory list are empty and I can't create new files / dirs...

Still debug log gives nothing to work with (PureFTPd seems pretty sparse in logging, even with debug enabled).

From FileZilla:
Code:
Command:	MLSD
Response:	150 Accepted data connection
Response:	226-Sorry, we were unable to read [.]
Response:	226-Options: -a -l 
Response:	226 0 matches total
PureFTPd Debug log:
Code:
[DEBUG] Command [opts] [UTF8 ON]
[DEBUG] Command [pwd] []
[DEBUG] Command [type] [I]
[DEBUG] Command [pasv] []
[DEBUG] Command [mlsd] []
Reply With Quote
  #8  
Old 9th January 2012, 13:05
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,485
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

Which ISPConfig version do you use? If you use 3.0.4.1 then I recommend to update to the current 3.0.4.2 RC1 as there is a file permission buf that might cause this:

http://www.howtoforge.com/forums/showthread.php?t=55647

Then create a new website and try if this site works. If not, post the output of

ls -la /var/www/domain.tld/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 9th January 2012, 13:22
BlackChart BlackChart is offline
Junior Member
 
Join Date: Jan 2012
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Still no luck

Code:
root@web01:/mnt# ls -la /var/www/t3nettet.dk/
totalt 28
drwxr-x--x+ 6 web13 client3 82  9 jan 13:16 .
drwxr-s---+ 3 root      501 36  9 jan 13:16 ..
drwxr-x--x+ 2 web13 client3  6  9 jan 13:16 cgi-bin
-rwxr-xr-x+ 1 root  root    40  9 jan 13:16 .htpasswd_stats
lrwxrwxrwx  1 root      501 36  9 jan 13:16 log -> /var/log/ispconfig/httpd/t3nettet.dk
drwxr-x--x+ 2 web13 client3  6  9 jan 13:16 ssl
drwxrwxrwx+ 2 web13 client3  6  9 jan 13:16 tmp
drwx--x---+ 4 web13 client3 98  9 jan 13:16 web
Reply With Quote
  #10  
Old 9th January 2012, 13:26
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,485
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
 
Default

The folder permissions are fine. Just a guess, do you have a firewall activated? If yes, try to deactivate it and/or try to force your FTP client to use a active mode connection. Most FTP Clients switch to passive mode after the initial login and when your firewall blocks the passive port range of the FTP server, then you get a "blank" result.

If shutting down the firewall fixes the problem, then define a pssive port range in pure-ftpd and then open these ports in the firewall:

http://www.faqforge.com/linux/contro...-ubuntu-linux/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
ispconfig3 web / mysql on different servers does not work captnnuss Installation/Configuration 8 1st August 2009 10:48
Confused with ISPC3 web and ftp quotas... ignasigarcia General 1 13th June 2009 08:21
WEB UI FTP not working gimhan90 Installation/Configuration 2 16th March 2006 08:03
FTP 101 the basics koegies Installation/Configuration 7 17th November 2005 15:55


All times are GMT +2. The time now is 15:53.


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