Ispconfig and Proftpd

Discussion in 'Installation/Configuration' started by M10, Jan 9, 2010.

  1. M10

    M10 New Member

    just followed "perfect server" tutorial. i have suse 11.2. at first, i could create users/sites and i could access their web-ftp accounts. somewhere along the line, proftpd stopped working from my web browser or from a ftp client, but it still worked on web-ftp via ispconfig. i decided to uninstall and re-install proftpd. now i can access ftp via ftp client or web browser, but cannot access client's web-ftp. the only way web-ftp will work is if i login as admin (which is user on system).

    i have given users ftp access. where should i start looking?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Any errors in your logs? Did you switch off AppArmor?
     
  3. M10

    M10 New Member

    no errors in proftpd.log, apparmor and firewall are off.

    this is what is see in /var/messages/

    Jan 8 05:17:45 server proftpd[10111]: server.localhost.com (pool-173-78-17-102.tampfl.fios.verizon.net[173.78.17.102]) - USER admin: Login successful.
    Jan 8 05:20:50 server proftpd[10171]: localhost (localhost[127.0.0.1]) - FTP session opened.
    Jan 8 05:20:50 server proftpd[10171]: localhost (localhost[127.0.0.1]) - FTP session closed.
    Jan 8 05:21:03 server proftpd[10367]: localhost (localhost[127.0.0.1]) - FTP session opened.
    Jan 8 05:21:03 server proftpd[10367]: localhost (localhost[127.0.0.1]) - FTP session closed.
    Jan 8 05:21:11 server proftpd[10378]: localhost (localhost[127.0.0.1]) - FTP session opened.
    Jan 8 05:21:11 server proftpd[10378]: localhost (localhost[127.0.0.1]) - FTP session closed.
    Jan 8 05:21:28 server proftpd[10541]: localhost (localhost[127.0.0.1]) - FTP session opened.
    Jan 8 05:21:28 server proftpd[10541]: localhost (localhost[127.0.0.1]) - FTP session closed.

    why is opening and closing so rapidly?

    couple other questions....

    i have a couple of things in /var/log:
    messages-20100103.bz2
    warn-20100103.bz2

    i scanned one and there were about a billion "Possible Breakin-In Attempt" warnings on my ssh account.

    Can i just delete those?

    i'm actually going to implement the "perfect server" setup on a diff computer. this one was just a guinea pig to see how things went. i'm pretty sure i messed up when i was playing with proftpd.conf early on.

    also, i just followed the guide for setting up DNS w/ godaddy. i have a couple nameserver domains now pointing back to my computer. but when i type in my other domain name (the one for the site) it brings me to the "IP Shared" page. any ideas? do i have to wait the full 48 hours before looking for problems?
     
    Last edited: Jan 10, 2010
  4. falko

    falko Super Moderator ISPConfig Developer

    This is ISPConfig's monitoring module which is trying to find out if ProFTPd is still running. nothing to worry about. :)

    What's the output of
    Code:
    ifconfig
    , and what's in your Vhosts_ispconfig.conf?
     
  5. M10

    M10 New Member

    eth0 Link encap:Ethernet HWaddr 00:E0:18:9C:57:23
    inet addr:192.168.0.119 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::2e0:18ff:fe9c:5723/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:48640 errors:0 dropped:0 overruns:0 frame:0
    TX packets:21839 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:5068103 (4.8 Mb) TX bytes:12984982 (12.3 Mb)
    Interrupt:17

    eth0:0 Link encap:Ethernet HWaddr 00:E0:18:9C:57:23
    inet addr:127.0.0.2 Bcast:127.0.0.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Interrupt:17

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:1829 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1829 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:125608 (122.6 Kb) TX bytes:125608 (122.6 Kb)
    ______________________________________________________________________

    <VirtualHost 192.168.0.119:80>
    ServerName localhost
    ServerAdmin [email protected]
    DocumentRoot /var/www/sharedip
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.mytechdoctor.com:80
    ######################################
    #
    #
    <VirtualHost 127.0.0.2:80>
    ServerName www.mytechdoctor.com:80
    ServerAdmin [email protected]
    DocumentRoot /srv/www/web25/web
    ServerAlias mytechdoctor.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /srv/www/web25/log/error.log
    Alias /stats "/srv/www/web25/web/webalizer"
    Alias /error/ "/srv/www/web25/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web25/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web25/user/$1/web/$3
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    #
     
  6. M10

    M10 New Member

    <VirtualHost 192.168.0.119:80>
    ServerName localhost
    ServerAdmin [email protected]
    DocumentRoot /var/www/sharedip
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.mytechdoctor.com:80
    ######################################
    #
    #
    <VirtualHost 127.0.0.2:80>
    ServerName www.mytechdoctor.com:80
    ServerAdmin [email protected]
    DocumentRoot /srv/www/web25/web
    ServerAlias mytechdoctor.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /srv/www/web25/log/error.log
    Alias /stats "/srv/www/web25/web/webalizer"
    Alias /error/ "/srv/www/web25/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web25/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web25/user/$1/web/$3
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    #
    ________________________________________________________________

    eth0 Link encap:Ethernet HWaddr 00:E0:18:9C:57:23
    inet addr:192.168.0.119 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::2e0:18ff:fe9c:5723/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:50484 errors:0 dropped:0 overruns:0 frame:0
    TX packets:22714 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:5263536 (5.0 Mb) TX bytes:13366656 (12.7 Mb)
    Interrupt:17

    eth0:0 Link encap:Ethernet HWaddr 00:E0:18:9C:57:23
    inet addr:127.0.0.2 Bcast:127.0.0.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Interrupt:17

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:1829 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1829 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:125608 (122.6 Kb) TX bytes:125608 (122.6 Kb)
     
  7. falko

    falko Super Moderator ISPConfig Developer

    You are using 127.0.0.2 for your vhosts - you must use 192.168.0.119 instead.
     
  8. M10

    M10 New Member

    thanks will give it a try
     
  9. M10

    M10 New Member

    Forbidden

    You don't have permission to access / on this server.

    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.2.13 (Linux/SUSE) Server at www.mytechdoctor.com Port 80

    now i get this error...any ideas?
     
  10. falko

    falko Super Moderator ISPConfig Developer

    What's in your Vhosts_ispconfig.conf now?
     
  11. M10

    M10 New Member

    ###################################
    #
    # ISPConfig vHost Configuration File
    # Version 1.0
    #
    ###################################
    #

    <VirtualHost 192.168.0.119:80>
    ServerName localhost
    ServerAdmin [email protected]
    DocumentRoot /var/www/sharedip
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.mytechdoctor.com:80
    ######################################
    #
    #
    <VirtualHost 192.168.0.119:80>
    ServerName www.mytechdoctor.com:80
    ServerAdmin [email protected]
    DocumentRoot /srv/www/web25/web
    ServerAlias mytechdoctor.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /srv/www/web25/log/error.log
    Alias /stats "/srv/www/web25/web/webalizer"
    Alias /error/ "/srv/www/web25/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web25/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web25/user/$1/web/$3
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    #
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    #
    #
    52,1 Bot
     
  12. M10

    M10 New Member

    der :eek:

    didn't have correct permissions set to /srv/www
     

Share This Page