Ftp Upload problems

Discussion in 'Installation/Configuration' started by RTHREE, Apr 2, 2007.

  1. RTHREE

    RTHREE New Member

    Hi,

    i have some problems with upload to my ispconfig box. I'm running on a Fedora core 5 64bit machine with proftp on it.

    When i upload files then is first a failure and the seconde a done:

    ! Upload failed on ipaddresoftheserver (/web/test.html). (upload not allowed)
    ~ Upload complete on domainnameofserver (/web/test.html).

    Second problem:

    when i upload some htm, html, php files like this:
    <html>
    <head>
    <title>Test</test>
    </head>
    <body>
    Dit is een test
    </body>
    </html>

    and i open it on the server i'm seeing this:

    html>
    <head>
    <title>Test</test>
    </head>
    <body>
    Dit is een test
    </body>
    </html>
     
  2. falko

    falko Super Moderator

    Any errors in your logs? Have you tried both active and passive transfers in your FTP client?
    Is SELinux disabled?
     
  3. RTHREE

    RTHREE New Member

    No errors in log, and i tried both passive and active ftp connections.

    SeLinux is disabled at boot.
     
  4. till

    till Super Moderator

    Please post your proftpd.conf file, comments stripped.
     
  5. RTHREE

    RTHREE New Member

    # This is the ProFTPD configuration file
    # $Id: proftpd.conf,v 1.1 2004/02/26 17:54:30 thias Exp $

    ServerName "ProFTPD server"
    ServerIdent on "FTP Server ready."
    ServerAdmin root@localhost
    ServerType standalone
    #ServerType inetd
    DefaultServer on
    AccessGrantMsg "User %u logged in."
    #DisplayConnect /etc/ftpissue
    #DisplayLogin /etc/ftpmotd
    #DisplayGoAway /etc/ftpgoaway
    DeferWelcome off

    # Use this to excude users from the chroot
    DefaultRoot ~ !adm

    # Use pam to authenticate (default) and be authoritative
    AuthPAMConfig proftpd
    AuthOrder mod_auth_pam.c* mod_auth_unix.c

    # Do not perform ident nor DNS lookups (hangs when the port is filtered)
    IdentLookups off
    UseReverseDNS off

    # Port 21 is the standard FTP port.
    Port 21

    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    Umask 022

    # Default to show dot files in directory listings
    ListOptions "-a"

    # See Configuration.html for these (here are the default values)
    #MultilineRFC2228 off
    #RootLogin off
    #LoginPasswordPrompt on
    #MaxLoginAttempts 3
    #MaxClientsPerHost none
    #AllowForeignAddress off # For FXP

    # Allow to resume not only the downloads but the uploads too
    AllowRetrieveRestart on
    AllowStoreRestart on

    # To prevent DoS attacks, set the maximum number of child processes
    # to 30. If you need to allow more than 30 concurrent connections
    # at once, simply increase this value. Note that this ONLY works
    # in standalone mode, in inetd mode you should use an inetd server
    # that allows you to limit maximum number of processes per service
    # (such as xinetd)
    MaxInstances 20

    # Set the user and group that the server normally runs at.
    User nobody
    Group nobody

    # Disable sendfile by default since it breaks displaying the download speeds in
    # ftptop and ftpwho
    UseSendfile no

    # This is where we want to put the pid file
    ScoreboardFile /var/run/proftpd.score

    # Normally, we want users to do a few things.
    <Global>
    AllowOverwrite yes
    <Limit ALL SITE_CHMOD>
    AllowAll
    </Limit>
    </Global>

    # Define the log formats
    LogFormat default "%h %l %u %t \"%r\" %s %b"
    LogFormat auth "%v [%P] %h %t \"%r\" %s"

    # TLS
    # Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html
    #TLSEngine on
    #TLSRequired on
    #TLSRSACertificateFile /etc/pki/tls/certs/proftpd.pem
    #TLSRSACertificateKeyFile /etc/pki/tls/certs/proftpd.pem
    #TLSCipherSuite ALL:!ADH:!DES
    #TLSOptions NoCertRequest
    #TLSVerifyClient off
    ##TLSRenegotiate ctrl 3600 data 512000 required off timeout 300
    #TLSLog /var/log/proftpd/tls.log

    # SQL authentication Dynamic Shared Object (DSO) loading
    # See README.DSO and howto/DSO.html for more details.
    #<IfModule mod_dso.c>
    # LoadModule mod_sql.c
    # LoadModule mod_sql_mysql.c
    # LoadModule mod_sql_postgres.c
    #</IfModule>

    # A basic anonymous configuration, with an upload directory.
    #<Anonymous ~ftp>
    # User ftp
    # Group ftp
    # AccessGrantMsg "Anonymous login ok, restrictions apply."
    #
    # # We want clients to be able to login with "anonymous" as well as "ftp"
    # UserAlias anonymous ftp
    #
    # # Limit the maximum number of anonymous logins
    # MaxClients 10 "Sorry, max %m users -- try again later"
    #
    # # Put the user into /pub right after login
    # #DefaultChdir /pub
    #
    # # We want 'welcome.msg' displayed at login, '.message' displayed in
    # # each newly chdired directory and tell users to read README* files.
    # DisplayLogin /welcome.msg
    # DisplayFirstChdir .message
    # DisplayReadme README*
    #
    # # Some more cosmetic and not vital stuff
    # DirFakeUser on ftp
    # DirFakeGroup on ftp
    #
    # # Limit WRITE everywhere in the anonymous chroot
    # <Limit WRITE SITE_CHMOD>
    # DenyAll
    # </Limit>
    #
    # # An upload directory that allows storing files but not retrieving
    # # or creating directories.
    # <Directory uploads/*>
    # AllowOverwrite no
    # <Limit READ>
    # DenyAll
    # </Limit>
    #
    # <Limit STOR>
    # AllowAll
    # </Limit>
    # </Directory>
    #
    # # Don't write anonymous accesses to the system wtmp file (good idea!)
    # WtmpLog off
    #
    # # Logging for the anonymous transfers
    # ExtendedLog /var/log/proftpd/access.log WRITE,READ default
    # ExtendedLog /var/log/proftpd/auth.log AUTH auth
    #
    #</Anonymous>


    DefaultRoot ~

    Include /etc/proftpd_ispconfig.conf
     
  6. falko

    falko Super Moderator

    To which directory (absolute path) do you try to upload? As what user?
    What's the output of
    Code:
    ls -la /path/to/upload_directory
    ?
     
  7. RTHREE

    RTHREE New Member

    we have the problem with all users

    this is done with web45_demo

    dir is like /var/www/demo.domain.nl/web

    this are a couple of files.

    -rw-r--r-- 1 web45_demo web45 1838 Apr 5 20:35 index.htm
    -rw-r--r-- 1 web45_demo web45 1838 Apr 3 22:10 index.html
    -rw-r--r-- 1 web45_demo web45 1838 Mar 28 20:52 indexnw.htm
    -rw-r--r-- 1 web45_demo web45 1653 Mar 28 20:52 index-old.htm
     
  8. unreal4u

    unreal4u New Member

    isn't that not some kind of apache problem ?
     
  9. falko

    falko Super Moderator

    I need the whole ls -la output...
     
  10. RTHREE

    RTHREE New Member

    total 780
    drwxrwxr-x 29 web45_demo web45 4096 Apr 7 18:52 .
    drwxr-xr-x 9 web45_demo web45 4096 Apr 3 04:01 ..
    -rw-r--r-- 1 web45_demo web45 13144 Mar 28 20:52 actie-rb.htm
    -rw-r--r-- 1 web45_demo web45 998 Mar 28 20:52 acties-totaalframe.htm
    -rw-r--r-- 1 web45_demo web45 12502 Mar 28 20:52 actie-vakantie.htm
    -rw-r--r-- 1 web45_demo web45 8610 Mar 28 20:52 adresgegevens.htm
    -rw-r--r-- 1 web45_demo web45 1667 Mar 28 20:52 antikopie.js
    -rw-r--r-- 1 web45_demo web45 9236 Mar 28 20:52 autoverzekering.htm drwxr-xr-x 3 web45_demo web45 4096 Mar 28 20:52 beginpagina-blad_bestanden
    -rw-r--r-- 1 web45_demo web45 12945 Apr 2 13:49 beginpagina-blad.htm drwxr-xr-x 3 web45_demo web45 4096 Mar 28 20:52 beginpagina-inhoudbijkop3_bestanden
    -rw-r--r-- 1 web45_demo web45 8209 Apr 2 13:48 beginpagina-inhoudbijkop3.htm
    -rw-r--r-- 1 web45_demo web45 8088 Mar 28 20:52 beginpagina-inhoud.htm
    -rw-r--r-- 1 web45_demo web45 2145 Mar 28 20:52 beginpagina-kop2.htm drwxr-xr-x 3 web45_demo web45 4096 Mar 28 20:52 beginpagina-kop3_bestanden
    -rw-r--r-- 1 web45_demo web45 5245 Mar 28 20:52 beginpagina-kop3.htm
    -rw-r--r-- 1 web45_demo web45 1548 Mar 28 20:52 beginpagina-kop.htm
    -rw-r--r-- 1 web45_demo web45 5125 Mar 28 20:52 beginpaginas.htm drwxr-xr-x 3 web45_demo web45 4096 Mar 28 20:52 _borders
    -rw-r--r-- 1 web45_demo web45 10798 Mar 28 20:52 bromfietsen.htm
    -rw-r--r-- 1 web45_demo web45 5127 Mar 28 20:52 bromfietsverzekeraar.htm
    -rw-r--r-- 1 web45_demo web45 5053 Mar 28 20:52 bromfietsverzekering.htm
    -rw-r--r-- 1 web45_demo web45 2812 Apr 6 18:48 contactformulier.php
    -rw-r--r-- 1 web45_demo web45 6006 Apr 4 20:31 contactformulier-test.php
    -rw-r--r-- 1 web45_demo web45 1292 Apr 7 17:18 contactformuliertje.php
    -rw-r--r-- 1 web45_demo web45 14023 Mar 28 20:52 contact.htm
    -rw-r--r-- 1 web45_demo web45 22403 Mar 28 20:52 contact-old.htm
    -rw-r--r-- 1 web45_demo web45 14103 Mar 28 20:52 contact-temp.htm
    -rw-r--r-- 1 web45_demo web45 6612 Mar 28 20:52 demedewerkers.htm
    -rw-r--r-- 1 web45_demo web45 13230 Mar 28 20:52 demedewerkers-old1.htm
    -rw-r--r-- 1 web45_demo web45 11506 Mar 28 20:52 demedewerkers-old.htm drwxr-xr-x 3 web45_demo web45 4096 Mar 28 20:52 _derived
    -rw-r--r-- 1 web45_demo web45 114 Mar 28 20:52 desktop.ini
    -rw-r--r-- 1 web45_demo web45 5017 Mar 28 20:52 disclaimer.htm
    -rw-r--r-- 1 web45_demo web45 3267 Mar 28 20:52 disclaimer-website.htm
    drwxr-xr-x 2 root root 4096 Mar 14 13:28 error
    drwxr-xr-x 5 web45_demo web45 4096 Apr 7 18:52 formulieren drwxr-xr-x 3 web45_demo web45 4096 Apr 7 11:45 formulieren-nw drwxr-xr-x 3 web45_demo web45 4096 Apr 2 18:32 fotos drwxr-xr-x 2 web45_demo web45 4096 Mar 28 12:35 _fpclass
    -rw-r--r-- 1 web45_demo web45 1007 Mar 28 20:52 garagebedrijf.htm
    -rw-r--r-- 1 web45_demo web45 45007 Mar 28 20:52 Gidi.htm
    -rw-r--r-- 1 web45_demo web45 34906 Mar 28 20:52 ha-ass-kleur.jpg
    -rw-r--r-- 1 web45_demo web45 8776 Mar 28 20:52 hartholt.htm drwxr-xr-x 3 web45_demo web45 4096 Mar 28 20:52 images
    -rw-r--r-- 1 web45_demo web45 4808 Mar 28 20:52 index-first.htm
    -rw-r--r-- 1 web45_demo web45 1838 Apr 5 20:35 index.htm
    -rw-r--r-- 1 web45_demo web45 1838 Apr 3 22:10 index.html
    -rw-r--r-- 1 web45_demo web45 1838 Mar 28 20:52 indexnw.htm
    -rw-r--r-- 1 web45_demo web45 1653 Mar 28 20:52 index-old.htm
    -rw-r--r-- 1 web45_demo web45 7317 Mar 28 20:52 kwaliteit.htm drwxr-xr-x 5 web45_demo web45 4096 Mar 28 20:52 leven
    -rw-r--r-- 1 web45_demo web45 14376 Apr 3 19:15 links.htm
    -rw-r--r-- 1 web45_demo web45 38894 Mar 28 20:52 logo-opening.JPG
    -rw-r--r-- 1 web45_demo web45 2121 Mar 28 20:52 medewerkersfoto-Anja.htm
    -rw-r--r-- 1 web45_demo web45 1779 Mar 28 20:52 medewerkersfoto-cees.htm
    -rw-r--r-- 1 web45_demo web45 1894 Mar 28 20:52 medewerkersfoto-Gerrit.htm
    -rw-r--r-- 1 web45_demo web45 835 Mar 28 20:52 medewerkersfoto.htm
    -rw-r--r-- 1 web45_demo web45 1876 Mar 28 20:52 medewerkersfoto-Janny.htm
    -rw-r--r-- 1 web45_demo web45 2095 Mar 28 20:52 medewerkersfoto-marc.htm
    -rw-r--r-- 1 web45_demo web45 2356 Mar 28 20:52 medewerkersfoto-wichert.htm
    -rw-r--r-- 1 web45_demo web45 6204 Mar 28 20:52 medewerkers.htm
    -rw-r--r-- 1 web45_demo web45 7939 Mar 28 20:52 Nbva.htm
    -rw-r--r-- 1 web45_demo web45 2276 Mar 28 20:52 nieuwepagina.htm drwxr-xr-x 7 web45_demo web45 4096 Mar 28 20:52 nieuws-actueel
    -rw-r--r-- 1 root root 0 Apr 7 18:52 output.txt
    drwxr-xr-x 3 web45_demo web45 12288 Mar 28 20:52 _overlay drwxr-xr-x 3 web45_demo web45 4096 Mar 28 12:35 photogallery drwxr-xr-x 3 web45_demo web45 4096 Apr 7 14:22 php-formulieren
    -rw-r--r-- 1 web45_demo web45 7154 Mar 28 20:52 polisonline.htm drwxr-xr-x 3 web45_demo web45 4096 Mar 28 20:52 _private
    -rw-r--r-- 1 web45_demo web45 15828 Apr 7 18:04 sitemap-formulieren.htm
    -rw-r--r-- 1 web45_demo web45 41080 Apr 2 19:00 sitemap.htm drwxr-xr-x 2 web45_demo web45 4096 Apr 2 04:00 stats drwxr-xr-x 5 web45_demo web45 4096 Mar 28 20:52 sub-bedrijven drwxr-xr-x 25 web45_demo web45 4096 Apr 2 13:14 sub-onlineberekenen drwxr-xr-x 6 web45_demo web45 4096 Mar 28 20:54 sub-particulier
    -rw-r--r-- 1 web45_demo web45 79 Apr 2 13:59 test.html
    drwxr-xr-x 28 web45_demo web45 4096 Mar 28 20:52 _themes
    -rw-r--r-- 1 web45_demo web45 12288 Mar 28 20:52 Thumbs.db
    -rw-r--r-- 1 web45_demo web45 378 Apr 7 18:19 verwerk.php
    drwxr-xr-x 7 web45_demo web45 4096 Mar 28 20:52 verzekeraar
    -rw-r--r-- 1 web45_demo web45 8984 Mar 28 20:52 Verzekeringen.htm drwxr-xr-x 4 web45_demo web45 4096 Mar 28 20:52 voordelig
    -rw-r--r-- 1 web45_demo web45 7423 Mar 28 20:52 voordelig.htm drwxr-xr-x 2 web45_demo web45 4096 Mar 28 20:55 _vti_cnf drwxr-xr-x 3 web45_demo web45 4096 Mar 28 20:55 _vti_pvt
    -rw-r--r-- 1 web45_demo web45 9475 Mar 28 20:52 waarom_verzekeren.htm drwxr-xr-x 2 web45_demo web45 4096 Mar 28 12:35 webalizer
    -rw-r--r-- 1 web45_demo web45 13024 Mar 28 20:52 webverzekeraar.htm
    -rw-r--r-- 1 web45_demo web45 7776 Mar 28 20:52 wiezijnwij.htm
    -rw-r--r-- 1 web45_demo web45 623 Apr 7 18:15 z-contact.htm
     
  11. falko

    falko Super Moderator

    Looks ok.

    Are you sure that you're using the correct IP address to connect to your server, and that the domain is pointing to the correct server?
     
  12. RTHREE

    RTHREE New Member

    yes Falko,

    ipaddress and domains are fine.

    Do someone already solved this problem? :confused:
     

Share This Page