net2ftp package in ISPconfig3.1RC1

Discussion in 'Plugins/Modules/Addons' started by monteros_007, Aug 27, 2016.

  1. monteros_007

    monteros_007 New Member

    Hi,
    I tested new version and I find bug. After installation net2ftp shown error_install but package only install correctly .
    upload_2016-8-27_16-18-39.png
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Installation error means that the package returned an error code and ispconfig notes it therefore as installation error. So this is not a bug in ISPConfig, its a problem in the package.
     
  3. monteros_007

    monteros_007 New Member

    Hi,
    Ok I don't know, but actually I know :) Thanks, where I can find log error?
     
  4. ahrasis

    ahrasis Active Member

    1. What is your server combo?
    2. How do you install net2ftp?
    3. Why aren't you using version 1.0?
     
  5. oleTeacher

    oleTeacher New Member

    Know this thread is very old but desperately need to use file manger like net2ftp. Since mainly younger kids using at school, need easy way for them to edit some files.

    Think elFinder would be better but at this point settle for either.
    Anyone know of good tutorial for ISPConfig 3 and Debian Jessie for either net2ftp or elFinder?

    Tried https://www.howtoforge.com/community/threads/net2ftp-integration.42573/ and things did not go well:)
     
  6. ahrasis

    ahrasis Active Member

    I am using net2ftp on my nginx server and basically the thread you are referring is quite outdated. For instance, you do not need to edit ISPC files anymore but you just need to insert the preferred net2ftp folder name WebFTP URL (e.g. /net2ftp) in your ISPC Main Config.

    The basic guide is as follows:
    1. Create your preferred net2ftp folder name in /usr/share (or /var/www - its your choice).
    2. Create the same name in WebFTP URL in your ISPC Main Config (as said above).
    3. Download the stable 1.0 version from net2ftp site to /tmp and extract it.
    4. Move files_to_upload content to created folder.
    5. Enable it in your apache / nginx vhost for your ISPC and/or others. It should be the same as adding phpmyadmin. (Refer my sample below).
    6. Chmod net2ftp /temp/ folder to 777.
    7. Check all of your net2ftp settings to suit your need.
    8. Check it in your browser.

    My old apache config for Ubuntu 12.04. *Do modify accordingly!*
    Code:
    # netftp sample Apache configuration
    Redirect /ftp /filemanager
    Alias /filemanager /usr/share/netftp
    <Directory /usr/share/netftp>
        Options FollowSymLinks
        DirectoryIndex index.php
        # Order Deny,Allow
        # Allow from All
        <IfModule mod_php.c>
            <IfModule mod_mime.c>
                AddType application/x-httpd-php .php
            </IfModule>
            <FilesMatch ".+\.php$">
                SetHandler application/x-httpd-php
            </FilesMatch>
                    php_flag magic_quotes_gpc Off
                    php_flag track_vars On
                    php_flag register_globals Off
                    php_admin_flag allow_url_fopen Off
                    php_value include_path .
                    php_admin_value upload_tmp_dir /usr/share/net2ftp/temp
                    php_admin_value open_basedir /usr/share/net2ftp/:/etc/net2ftp/:/var/lib/net2ftp/:/usr/share/php/php-gettext/:/usr/share/javascript/
        </IfModule>
    </Directory>
    
    My current Nginx config for Ubuntu 16.04 (in ISPC vhost). *Do modify accordingly!*
    Code:
            location /filemanager {
                    root /usr/share/;
                    index index.php index.html index.htm;
                    location ~ ^/filemanager/(.+\.php)$ {
                            try_files $uri =404;
                            root /usr/share/;
                            # include /etc/nginx/fastcgi_params;
                            fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
                            fastcgi_param HTTPS $fastcgi_https; # <-- add this line fastcgi_paramHTTPS on;
                            fastcgi_index index.php;
                            fastcgi_param SCRIPT_FILENAME $request_filename;
                            include /etc/nginx/fastcgi_params;
                            fastcgi_param PATH_INFO $fastcgi_script_name; # <-- disabled if causing access problem
                            fastcgi_buffer_size 128k;
                            fastcgi_buffers 256 4k;
                            fastcgi_busy_buffers_size 256k;
                            fastcgi_temp_file_write_size 256k;
                            fastcgi_intercept_errors on;
                    }
                    location ~* ^/filemanager/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                            root /usr/share/;
                    }
            }
            location /file {
                    rewrite ^/* /filemanager last;
            }
    
    If you are using php7 and above, you need a minor fix from icmp github which basically involves three of its files. You may also use their copy of modified net2ftp if you know what you are doing.

    I think that is it. I may write a guide based on this later when I am free.
     
  7. oleTeacher

    oleTeacher New Member

    Thank you @ahrasis!
    Will review your info closer and see if I can get this working tomorrow.
    Let you know how it goes. Bet many people would benefit if you wrote a guide:)
    Thanks again.
     

Share This Page