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 29th November 2009, 20:30
cubitus cubitus is offline
Junior Member
 
Join Date: Nov 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot connect to ftp after having moved var/www

Hi,

I have a really strange behaviour.

I cannot connect with FTP to my server. The ftp_user table seams ok :
Code:
6  	riud  	riud  	   	1  	5  	zoroweb  	$1$KSHuIly\$GU52WEJmEtmuOjdX9C8iu1  	-1  	y  	web5  	client5  	/srv/d_vidy/www/clients/client5/web5  	-1  	-1  	-1
I've set the log of pur_ftp to verbose (after having browsed a lot this forum) and the log look like

Code:
Nov 29 19:10:43 vidy pure-ftpd: (?@zzz) [INFO] New connection from zzz
Nov 29 19:10:43 vidy pure-ftpd: (?@zzz) [DEBUG] Command [user] [zoroweb]
Nov 29 19:10:43 vidy pure-ftpd: (?@zzz) [DEBUG] Command [pass] [<*>]
Nov 29 19:10:48 vidy pure-ftpd: (?@zzz) [INFO] New connection from zzz
Nov 29 19:10:48 vidy pure-ftpd: (?@zzz) [DEBUG] Command [user] [zoroweb]
Nov 29 19:10:48 vidy pure-ftpd: (?@zzz) [DEBUG] Command [pass] [<*>]
but the log of filezilla give an error " Could not connect to server"

Code:
Status:	Resolving address of vidy.xxxxx.com
Status:	Connecting to xx.xx.xx.xx:21...
Status:	Connection established, waiting for welcome message...
Response:	220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:	220-You are user number 1 of 50 allowed.
Response:	220-Local time is now 19:10. Server port: 21.
Response:	220-This is a private system - No anonymous login
Response:	220-IPv6 connections are also welcome on this server.
Response:	220 You will be disconnected after 15 minutes of inactivity.
Command:	USER zoroweb
Response:	331 User zoroweb OK. Password required
Command:	PASS *******
Error:	Could not connect to server
Status:	Waiting to retry...
Status:	Resolving address of vidy.xxxxx.com
Status:	Connecting to xx.xx.xx.xx:21...
Status:	Connection established, waiting for welcome message...
Response:	220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:	220-You are user number 1 of 50 allowed.
Response:	220-Local time is now 19:10. Server port: 21.
Response:	220-This is a private system - No anonymous login
Response:	220-IPv6 connections are also welcome on this server.
Response:	220 You will be disconnected after 15 minutes of inactivity.
Command:	USER zoroweb
Response:	331 User zoroweb OK. Password required
Command:	PASS *******
Error:	Could not connect to server
Ok, I have to admit that it works just after having finished the installation of ispconfig. I just move the folder var/www to an other disk and manage to change basedir, path and symlinks value in ispconfig. Since I did it, it doesn't seams to work

I have no clue what's append. Do you have any idea what I should dig in ?

Thanks for your answer or any help you can provide
Reply With Quote
Sponsored Links
  #2  
Old 30th November 2009, 07:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
Default

Might be a permission problem of the new directories Please check that /srv and /srv/d_vidy have the exact same owner and permissions then /var and /var/www
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 30th November 2009, 13:49
cubitus cubitus is offline
Junior Member
 
Join Date: Nov 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi till,

Not sure what were permissions on /var/www as I removed this folder and create a symbolic link that point to /srv/d_vidy/www.

Next are the owner/permissions currently set on the relocated www folder.

/srv : drwxr-xr-x 3 root root
/srv/d_vidy : drwxrwxr-x 9 root admin
/srv/d_vidy/www : drwxrwxr-x 5 www-data www-data
/srv/d_vidy/www/clients : drwx------ 5 www-data www-data
/srv/d_vidy/www/clients/client5 : drwxr-xr-x 3 root root
/srv/d_vidy/www/clients/client5/web5 : drwxr-x--x 6 web5 client5

Are these owner/persmissions correct ?

I did try to connect with FTP with a wrong password and I get the following entry in messages logfile

Code:
Nov 30 12:39:27 vidy pure-ftpd: (?@zzzz) [INFO] New connection from zzzz
Nov 30 12:39:27 vidy pure-ftpd: (?@zzzz) [WARNING] Authentication failed for user [zoroweb]
Nov 30 12:39:33 vidy pure-ftpd: (?@zzzz) [INFO] Logout.
So the authentication process is working right. But why when I give the correct password the ftp server responds with "Error: Could not connect to server" ?

Any other log files to check ?

Thanks for your help
Reply With Quote
  #4  
Old 2nd December 2009, 09:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
 
Default

Enable verbose logging in pure-ftpd and then check if the log contains more infor if you try to login again.
__________________
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
ispconfig 3 cant receive emails lishaw1968 Installation/Configuration 25 19th August 2013 10:37
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 13:58
Mail not working epicuniversal General 5 13th June 2009 08:24
proFTPd passive mode problems bisbell Server Operation 8 6th August 2008 21:12
Question about Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Debian Etch ikkem HOWTO-Related Questions 30 26th February 2008 19:38


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


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