Web-FTP not working

Discussion in 'Installation/Configuration' started by gzs, May 20, 2007.

  1. gzs

    gzs New Member

    Hi,

    After accessing web-ftp I can see the tree but when clicking on one of the maps (cgi-bin, log, phptmp, ssl, user, web) I do not get to see the contents of the map.

    I can access ftp through both FileZilla and the local ftp client (using the domain name and just localhost as the hostname).

    My output of: netstat -tap | grep ftp
    tcp 0 0 *:ftp *:* LISTEN 4148/proftpd: (acce

    I am using ISPConfig Version: 2.2.12 (just a clean install, no upgraded version) on Debian etch.

    Uploading a file brings me this message: "FTP: Failed to write Array/.htaccess"

    LOG Files (and yes, I will see what I can do about that error.ico file message, is this a know issue or am I missing something?):
    SERVERNAME:/var/www/web12/user# tail /root/ispconfig/httpd/logs/access_log
    xx.xx.xxx.xxx - - [12/May/2007:19:30:56 +0200] "GET /isp_file/frame_start.php? HTTP/1.1" 302 5
    xx.xx.xxx.xxx - - [12/May/2007:19:30:56 +0200] "GET /isp_file/legende.php? HTTP/1.1" 200 373
    xx.xx.xxx.xxx - - [12/May/2007:19:30:56 +0200] "GET /isp_file/vorladen.php? HTTP/1.1" 200 1128
    xx.xx.xxx.xxx - - [12/May/2007:19:30:56 +0200] "GET /isp_file/placeholder.php? HTTP/1.1" 200 309
    xx.xx.xxx.xxx - - [12/May/2007:19:30:56 +0200] "GET /isp_file/edit/ordner.php?&ordner=root&web_id=8 HTTP/1.1" 200 8973
    xx.xx.xxx.xxx - - [12/May/2007:19:31:00 +0200] "GET /isp_file/edit/ordner_edit.php?web_id=8&ed=new HTTP/1.1" 200 4924
    xx.xx.xxx.xxx - - [12/May/2007:19:31:04 +0200] "POST /isp_file/edit/ordner_save.php HTTP/1.1" 302 5
    xx.xx.xxx.xxx - - [12/May/2007:19:31:04 +0200] "GET /isp_file/edit/ordner.php?ordner=root:web&web_id=8 HTTP/1.1" 200 3082
    xx.xx.xxx.xxx - - [12/May/2007:19:31:05 +0200] "GET /isp_file/edit/file_upload.php?web_id=8 HTTP/1.1" 200 4281
    xx.xx.xxx.xxx - - [12/May/2007:19:31:17 +0200] "POST /isp_file/edit/upload_save.php HTTP/1.1" 200 1870

    SERVERNAME:/var/www/web12/user# tail /root/ispconfig/httpd/logs/error_log
    [Sat May 12 17:56:06 2007] [error] [client xx.xx.xxx.xxx] File does not exist: /home/admispconfig/ispconfig/web/themes/original/img/error.ico
    [Sat May 12 17:56:58 2007] [error] [client xx.xx.xxx.xxx] File does not exist: /home/admispconfig/ispconfig/web/themes/original/img/error.ico
    [Sat May 12 17:57:22 2007] [error] [client xx.xx.xxx.xxx] File does not exist: /home/admispconfig/ispconfig/web/themes/original/img/error.ico
    [Sat May 12 17:57:54 2007] [error] [client xx.xx.xxx.xxx] File does not exist: /home/admispconfig/ispconfig/web/themes/original/img/error.ico
    [Sat May 12 17:58:04 2007] [error] [client xx.xx.xxx.xxx] File does not exist: /home/admispconfig/ispconfig/web/themes/original/img/error.ico
    [Sat May 12 17:58:35 2007] [error] [client xx.xx.xxx.xxx] File does not exist: /home/admispconfig/ispconfig/web/themes/original/img/error.ico
    [Sat May 12 17:59:58 2007] [error] [client xx.xx.xxx.xxx] File does not exist: /home/admispconfig/ispconfig/web/themes/original/img/error.ico
    [Sat May 12 18:00:36 2007] [error] [client xx.xx.xxx.xxx] File does not exist: /home/admispconfig/ispconfig/web/themes/original/img/error.ico
    [Sat May 12 18:43:35 2007] [error] [client xx.xx.xxx.xxx] File does not exist: /home/admispconfig/ispconfig/web/themes/original/img/error.ico
    [Sat May 12 18:44:04 2007] [error] [client xx.xx.xxx.xxx] File does not exist: /home/admispconfig/ispconfig/web/themes/original/img/error.ico

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check the permissions of the files on your site the error "Uploading a file brings me this message: "FTP: Failed to write Array/.htaccess" may appear when the FTP user has no permissions to write the file.
     
  3. gzs

    gzs New Member

    Thx Till,

    I found this one for instance:
    -rw-rw-r-- 1 www-data web2 124 2007-05-20 04:00 /var/www/web2/web/stats/.htaccess

    I can only see the .htaccess files in de /stats/ folders. Is this the correct one to look at?

    User running ProFTP
    ps aux | grep proftpd
    nobody 23241 0.0 0.3 10108 1532 ? Ss May19 0:00 proftpd: (accepting connections)
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    To which directory did you try to upload a file?
     
  5. gzs

    gzs New Member

    Hi Till,

    I tried to do this in the web folder.

    Thx
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Can you post the output of
    Code:
    ls -la /var/www/web2/web
    ls -la /var/www/web2
    ls -la /var/www
    ls -la /var
    ?
     
  7. gzs

    gzs New Member

    ls -la /var/www/web2/web
    total 60
    drwxrwxr-x 10 www-data web2 4096 2007-05-10 04:00 .
    drwxr-xr-x 8 www-data web2 4096 2007-05-10 04:00 ..
    drwxr-xr-x 2 www-data web2 4096 2007-05-09 05:02 contact
    drwxrwxr-x 2 www-data web2 4096 2007-05-09 04:58 error
    drwxr-xr-x 2 www-data web2 4096 2007-05-09 05:02 File
    drwxr-xr-x 4 www-data web2 4096 2007-05-20 01:44 Image
    drwxr-xr-x 4 www-data web2 4096 2007-05-09 05:02 images
    -rw-r--r-- 1 www-data web2 2918 2007-05-09 05:02 index.php
    drwxr-xr-x 2 www-data web2 4096 2007-05-09 05:02 modules
    -rw-r--r-- 1 www-data web2 2984 2007-05-09 05:02 nona_CSSv02.css
    -rw-r--r-- 1 www-data web2 1087 2007-05-09 05:02 redirect.php
    -rw-r--r-- 1 www-data web2 1246 2007-05-09 05:02 show_content.php
    -rw-r--r-- 1 www-data web2 3294 2007-05-09 05:02 site_vars.inc
    drwxr-xr-x 2 www-data web2 4096 2007-05-10 04:00 stats
    drwxr-xr-x 2 www-data web2 4096 2007-05-09 05:02 webstats

    ls -la /var/www/web2
    total 36
    drwxr-xr-x 8 www-data web2 4096 2007-05-10 04:00 .
    drwxr-xr-x 18 root root 4096 2007-05-22 03:28 ..
    drwxrwxr-x 2 www-data web2 4096 2007-05-09 04:58 cgi-bin
    -rw-rw-r-- 1 www-data web2 41 2007-05-22 04:00 .htpasswd
    drwxr-xr-x 3 www-data web2 4096 2007-05-10 00:30 log
    drwxrwxrwx 2 www-data web2 4096 2007-05-09 04:58 phptmp
    drwxr-xr-x 2 www-data web2 4096 2007-05-09 04:58 ssl
    drwxr-xr-x 2 www-data web2 4096 2007-05-09 04:58 user
    drwxrwxr-x 10 www-data web2 4096 2007-05-10 04:00 web

    ls -la /var/www
    total 72
    drwxr-xr-x 18 root root 4096 2007-05-22 03:28 .
    drwxr-xr-x 14 root root 4096 2007-03-06 22:49 ..
    drwxr-xr-x 3 root root 4096 2007-04-10 16:35 apache2-default
    lrwxrwxrwx 1 www-data web15 14 2007-05-13 01:54 xxxx.xxx.nl -> /var/www/web15
    lrwxrwxrwx 1 www-data web10 14 2007-05-12 00:29 xxxx.xxx.nl -> /var/www/web10
    lrwxrwxrwx 1 www-data web13 14 2007-05-12 20:02 xxxx.xxxx.nl -> /var/www/web13
    lrwxrwxrwx 1 www-data web18 14 2007-05-22 03:28 xxxx.xxxx.net -> /var/www/web18
    drwxr-xr-x 3 root root 4096 2007-05-10 00:30 localhost
    drwxr-xr-x 2 root root 4096 2007-05-09 03:22 sharedip
    drwxr-xr-x 8 web10_xxxxx web10 4096 2007-05-12 16:04 web10
    drwxr-xr-x 9 web12_xxxxx web12 4096 2007-05-22 04:04 web12
    drwxr-xr-x 8 www-data web13 4096 2007-05-13 04:00 web13
    drwxr-xr-x 8 web15_xxxxx web15 4096 2007-05-15 20:30 web15
    drwxr-xr-x 8 web16_xxxxx web16 4096 2007-05-15 04:00 web16
    drwxr-xr-x 8 www-data web18 4096 2007-05-22 04:00 web18
    drwxr-xr-x 8 www-data web2 4096 2007-05-10 04:00 web2
    drwxr-xr-x 8 web3_xxxxxx web3 4096 2007-05-22 12:45 web3
    drwxr-xr-x 8 www-data web4 4096 2007-05-10 04:00 web4
    drwxr-xr-x 8 www-data web5 4096 2007-05-10 04:00 web5
    drwxr-xr-x 8 web6_xxxxxx web6 4096 2007-05-12 16:23 web6
    drwxr-xr-x 8 www-data web7 4096 2007-05-10 04:00 web7
    drwxr-xr-x 8 web8_xxxxxx web8 4096 2007-05-12 19:24 web8
    lrwxrwxrwx 1 www-data web7 13 2007-05-09 05:16 www.xxxxx.nl -> /var/www/web7
    lrwxrwxrwx 1 www-data web6 13 2007-05-09 05:13 www.xxxxxx.nl -> /var/www/web6
    lrwxrwxrwx 1 www-data web12 14 2007-05-12 16:02 www.xxxxx.net -> /var/www/web12
    lrwxrwxrwx 1 www-data web5 13 2007-05-09 05:11 www.xxxx.nl -> /var/www/web5
    lrwxrwxrwx 1 www-data web8 13 2007-05-11 00:37 www.xxxxx.nl -> /var/www/web8
    lrwxrwxrwx 1 www-data web2 13 2007-05-09 04:58 www.xxxxxx.com -> /var/www/web2
    lrwxrwxrwx 1 www-data web3 13 2007-05-09 05:04 www.xxxxxx.nl -> /var/www/web3
    lrwxrwxrwx 1 www-data web4 13 2007-05-09 05:07 www.xxxxxx.nl -> /var/www/web4
    lrwxrwxrwx 1 www-data web16 14 2007-05-15 01:09 www.xxxxxx.com -> /var/www/web16


    ls -la /var
    total 56
    drwxr-xr-x 14 root root 4096 2007-03-06 22:49 .
    drwxr-xr-x 21 root root 4096 2007-04-10 16:35 ..
    drwxr-xr-x 2 root root 4096 2007-05-22 06:26 backups
    drwxr-xr-x 11 root root 4096 2007-05-11 01:44 cache
    drwxr-xr-x 38 root root 4096 2007-05-12 19:42 lib
    drwxrwsr-x 2 root staff 4096 2004-12-15 23:55 local
    drwxrwxrwt 3 root root 4096 2007-05-22 02:25 lock
    drwxr-xr-x 16 root root 4096 2007-05-22 06:26 log
    drwxrwsr-t 2 root mail 4096 2007-05-22 11:43 mail
    drwxr-xr-x 2 root root 4096 2007-01-29 17:51 opt
    drwxr-xr-x 16 root root 4096 2007-05-22 12:18 run
    drwxr-xr-x 7 root root 4096 2007-04-24 01:47 spool
    drwxrwxrwt 3 root root 4096 2007-05-09 03:40 tmp
    drwxr-xr-x 18 root root 4096 2007-05-22 03:28 www
     
  8. falko

    falko Super Moderator Howtoforge Staff

    The web folder is owned by the user www-data, so that you can't upload to it if you log in as web2_someuser. You must make one of your users the admin of that web site, and then you can upload.
     
  9. gzs

    gzs New Member

    Thanks Falko

    The problem occurs when logging in as an admin user. I have no clue what can be causing this problem. Do you have an example of your permission settings?

    Thx
     
  10. falko

    falko Super Moderator Howtoforge Staff

    So you've created an admin for web2? Then the web folder should be owned by that user (e.g. web2_admin), not www-data. Did you change the owner of the web folder manually?
    You can change the owner like this:
    Code:
    chown web2_admin /var/www/web2/web
    (replace web2_admin with the correct username).
     

Share This Page