Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th March 2008, 06:31
Bill.A Bill.A is offline
Junior Member
 
Join Date: Mar 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual hosting with vsftpd and mysql on Debian Etch

I am not sure where I made my mistake everything went well until the final testing. I was able to log in with putty and finish the set up, I logged into phpmyadmin with my domain name and when I typed in my domain name into a browser I get the apache server default web page that says (It Works!). When I tried to log in with any of the ftp client programs I get a message like- connection refused by server or connection aborted by software in the host machine. I have tried several different ftp client programs on windows and linux workstations without any luck. I tried using port 20 and 21 but it just seems like it won't accept the testuser and password.
Reply With Quote
Sponsored Links
  #2  
Old 19th March 2008, 16:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Any errors in your logs?
What are the outputs of
Code:
netstat -tap
and
Code:
iptables -L
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 20th March 2008, 00:51
Bill.A Bill.A is offline
Junior Member
 
Join Date: Mar 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Netstat and iptables

Netstat -tap :
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdo:mysql *:* LISTEN 2230/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 1926/portmap
tcp 0 0 *:auth *:* LISTEN 2400/inetd
tcp 0 0 *:37241 *:* LISTEN 2437/rpc.statd
tcp 0 0 localhost.localdom:smtp *:* LISTEN 2384/exim4
tcp6 0 0 *:www *:* LISTEN 2483/apache2
tcp6 0 0 *:ssh *:* LISTEN 2411/sshd
tcp6 0 148 ftp1.xxxxxxxxx13.co:ssh ::ffff:192.168.0:nessus ESTABLISHED6244/0

iptables -L:
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Reply With Quote
  #4  
Old 20th March 2008, 04:36
Bill.A Bill.A is offline
Junior Member
 
Join Date: Mar 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hostname problem

I have also received error messages that my hostname could not be resolved.
My dns provider claims that this should not be a problem and I should be able to access my ftpserver without it. I am not so sure, everything looks like localhost.localdomain only.
Reply With Quote
  #5  
Old 20th March 2008, 19:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Quote:
Originally Posted by Bill.A
Netstat -tap :
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdo:mysql *:* LISTEN 2230/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 1926/portmap
tcp 0 0 *:auth *:* LISTEN 2400/inetd
tcp 0 0 *:37241 *:* LISTEN 2437/rpc.statd
tcp 0 0 localhost.localdom:smtp *:* LISTEN 2384/exim4
tcp6 0 0 *:www *:* LISTEN 2483/apache2
tcp6 0 0 *:ssh *:* LISTEN 2411/sshd
tcp6 0 148 ftp1.xxxxxxxxx13.co:ssh ::ffff:192.168.0:nessus ESTABLISHED6244/0
I don't see ftp here which means vsftpd isn't running. Please start it and try again.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 21st March 2008, 02:27
Bill.A Bill.A is offline
Junior Member
 
Join Date: Mar 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default vsftpd.conf error

I could not find my error so I completely redid my vsftpd.conf file. The ftp server now shows up on netstat -tap:
ftp1:/# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdo:mysql *:* LISTEN 2227/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 1925/portmap
tcp 0 0 *:auth *:* LISTEN 2398/inetd
tcp 0 0 *:ftp *:* LISTEN 3170/vsftpd
tcp 0 0 *:52405 *:* LISTEN 2434/rpc.statd
tcp 0 0 localhost.localdom:smtp *:* LISTEN 2385/exim4
tcp6 0 0 *:www *:* LISTEN 2480/apache2
tcp6 0 0 *:ssh *:* LISTEN 2408/sshd
tcp6 0 0 ftp1.xxxxxxxxx13.co:ssh ::ffff:192.168.0:kermit ESTABLISHED2627/0

I am now connecting up and getting login screens but I am now receiving a 530 error and a message that the server is rejecting the username and password . Testuser and the password are showing up in the phpadmin program any suggestions?
Reply With Quote
  #7  
Old 21st March 2008, 16:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
 
Default

Please compare your configuration to the one from the tutorial. Maybe you made a typo somewhere.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
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
VsFTPd with Quota and MySQL (if possible) markg85 Suggest HOWTO 2 16th August 2007 17:01
VsFTPD with MySQL - Debian Etch? Jarek Buczyński Server Operation 1 21st June 2007 09:54
Virtual Hosting With vsftpd And PostgreSQL (MYSQL ?) vlade HOWTO-Related Questions 2 12th May 2007 12:29


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


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