Title: WP ProFTPd
Author: derricksmith01
Published: <strong>May 1, 2011</strong>
Last modified: October 5, 2020

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-proftpd.svg)

# WP ProFTPd

 By [derricksmith01](https://profiles.wordpress.org/derricksmith01/)

[Download](https://downloads.wordpress.org/plugin/wp-proftpd.zip)

 * [Details](https://wordpress.org/plugins/wp-proftpd/#description)
 * [Reviews](https://wordpress.org/plugins/wp-proftpd/#reviews)
 *  [Installation](https://wordpress.org/plugins/wp-proftpd/#installation)
 * [Development](https://wordpress.org/plugins/wp-proftpd/#developers)

 [Support](https://wordpress.org/support/plugin/wp-proftpd/)

## Description

WP ProFTPd helps Authenticate ProFTPd users to FTP, SFTP, FTPS sites using the WordPress
database. This plugin creates stored procedures in the WordPress database that can
be used to query users, groups and user account information. A dashboard shows all
ProFTP logging information inside the WordPress Administration Portal.

### Features

 * Uses the WordPress database for ProFTPd authentication
 * Creates WordPress user meta to store information about access rights
 * Uses stored procedures to securely access the WordPress database
 * Creates a dashboard to show valuable authentication and FTP operations information
 * Supports FTP, SFTP, FTPS

### Requirements

 * PHP >= 5.5.0
 * WordPress >= 4.4
 * ProFTPd
 * WP Password Bcrypt

## Installation

### WP Password Bcrypt WordPress Plugin Prerequisite

 1. Download latest Bcyrpt plugin at https://github.com/roots/wp-password-bcrypt/wp-
    password-bcrypt.php.
 2. Save wp-password-bcrypt.php to /wp-content/mu-plugins – Create mu-plugins folder
    if it does not exist.

### WP ProFTPd WordPress Plugin

 1. Download the plugin and upload to you WordPress site.
 2. Install the plugin.
 3. Configure a user for FTP access on the user profile page.
 4.  * Enabled = True
     * UID = 2001
     * GID = 2001
     * Home Directory = /srv/ftp/{username}
     * Shell = /sbin/nologin

### ProFTPd

(Ubuntu Installation)
 1. cd /opt 2. sudo apt-get -y install build-essential gettext
make g++ libwrap0-dev libsasl2-dev python-dev libmysql++-dev libpam0g-dev libssl-
dev unixodbc-dev libncurses5-dev libacl1-dev libcap-dev 3. sudo wget ftp://ftp.proftpd.
org/distrib/source/proftpd-1.3.7a.tar.gz 4. sudo tar -xvf proftpd-1.3.7a.tar.gz 
5. cd proftpd-1.3.7a 6. sudo ./configure –prefix=/usr –with-includes=/usr/include/
mysql –mandir=/usr/share/man –sysconfdir=/etc/proftpd –localstatedir=/var/run –libexecdir
=/usr/lib/proftpd –enable-sendfile –enable-facl –enable-dso –enable-autoshadow –
enable-ctrls –with-modules=mod_readme:mod_sql:mod_sql_passwd:mod_exec –enable-ipv6–
enable-nls –build x86_64-linux-gnu –with-shared=mod_unique_id:mod_site_misc:mod_load:
mod_ban:mod_quotatab:mod_sql:mod_sql_mysql:mod_dynmasq:mod_quotatab_sql:mod_ratio:
mod_tls:mod_rewrite:mod_radius:mod_wrap:mod_wrap2:mod_wrap2_file:mod_wrap2_sql:mod_quotatab_file:
mod_quotatab_radius:mod_facl:mod_ctrls_admin:mod_sftp:mod_sftp_pam:mod_sftp_sql:
mod_shaper:mod_sql_passwd:mod_ifsession build_alias=x86_64-linux-gnu CFLAGS=-O2 
7. sudo make install 8. sudo groupadd -g 46 proftpd 9. sudo useradd -c proftpd -
d /srv/ftp -g proftpd -s /usr/bin/proftpdshell -u 46 proftpd 10. sudo install -v-
d -m775 -o proftpd -g proftpd /srv/ftp 11. sudo ln -v -s /bin/false /usr/bin/proftpdshell
12. sudo mkdir -p /etc/proftpd/ssl 13. sudo mkdir -p /var/log/proftpd 14. Create
file ‘proftpd’ using your favorite editor, copy script below

    ```
    #!/bin/sh

    # ProFTPD files
    FTPD_BIN=/usr/sbin/proftpd
    FTPD_CONF=/etc/proftpd/proftpd.conf
    PIDFILE=/var/run/proftpd.pid

    # If PIDFILE exists, does it point to a proftpd process?

    if [ -f $PIDFILE ]; then
        pid=`cat $PIDFILE`
    fi

    if [ ! -x $FTPD_BIN ]; then
        echo "$0: $FTPD_BIN: cannot execute"
        exit 1
    fi

    case $1 in

        start)
            if [ -n "$pid" ]; then
                echo "$0: proftpd [PID $pid] already running"
                exit
            fi

            if [ -r $FTPD_CONF ]; then
                echo "Starting proftpd..."

                $FTPD_BIN -c $FTPD_CONF

            else
                echo "$0: cannot start proftpd -- $FTPD_CONF missing"
            fi
        ;;

        stop)
            if [ -n "$pid" ]; then
                echo "Stopping proftpd..."
                kill -TERM $pid

            else
                echo "$0: proftpd not running"
                exit 1
            fi
        ;;

        restart)
            if [ -n "$pid" ]; then
            echo "Rehashing proftpd configuration"
            kill -TERM $pid

            else
                echo "$0: proftpd not running"
                xit 1
            fi
        ;;

        *)
            echo "usage: $0 {start|stop|restart}"
            exit 1
        ;;

    esac

    exit 0
    ```

 1. Edit file ‘/etc/proftpd/proftpd.conf’ using your favorite editor (FTP Type can 
    be “ftp”,”ftps”,”sftp” depending on the virtualhost configuration)
 2.     ```
            <Global>
                <IfModule mod_sql.c>
                    SQLBackend                      mysql
                    SQLAuthTypes                    bcrypt
                    SQLPasswordEngine               on
                    SQLPasswordEncoding             base64
                    SQLPasswordRounds               8
                    SQLEngine                       on
                    AuthOrder                       mod_sql.c
                    SQLConnectInfo                  {wordpress database name}@localhost {wordpress database user} "{wordpress database password}"
    
                    SQLAuthenticate                 users
                    SQLGroupInfo                    wp_proftpd_groups groupname gid members
    
                    SQLUserInfo custom:/get-user-by-name
    
                    # set min UID and GID - otherwise these are 999 each
                    SQLMinID        500
    
                    # Update count every time user logs in
                    SQLLog PASS updatecount
                    SQLNamedQuery updatecount FREEFORM "CALL wp_proftpd_update_count('%U')"
    
                    SqlLogFile /var/log/proftpd/sql.log
                    SQLLog PASS,DELE,MKD,RETR,RMD,RNFR,RNTO,STOR,APPE extendedlog
                    SQLNamedQuery extendedlog FREEFORM "CALL wp_proftpd_insert_log('%a', '%U', '%r')"
                </IfModule>
            </Global>
    
            <VirtualHost {x.x.x.x}>
                SQLNamedQuery get-user-by-name FREEFORM "CALL wp_proftpd_get_ftp_user_by_username('%U','{ftp_type}')"
            </VirtualHost>
        ```
    
 3. sudo mv proftpd /etc/init.d/proftpd
 4. sudo chmod 755 /etc/init.d/proftpd
 5. sudo ln -s /etc/init.d/proftpd /etc/init.d/proftpd_start
 6. sudo mv /etc/init.d/proftpd_start /etc/rc5.d
 7. sudo /etc/init.d/proftpd start OR sudo service proftpd start

#### Log File Locations

 1. Proftpd Service = /var/log/proftpd/proftpd.log
 2. Proftpd SQL = /var/log/proftpd/sql.log
 3. Proftpd Transfer = /var/log/proftpd/xfer.log

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“WP ProFTPd” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ derricksmith01 ](https://profiles.wordpress.org/derricksmith01/)

[Translate “WP ProFTPd” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-proftpd)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-proftpd/), check
out the [SVN repository](https://plugins.svn.wordpress.org/wp-proftpd/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/wp-proftpd/) by 
[RSS](https://plugins.trac.wordpress.org/log/wp-proftpd/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.0.0**
 *  Last updated **6 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 4.4 or higher **
 *  Tested up to **5.1.22**
 * Tags
 * [authentication](https://wordpress.org/plugins/tags/authentication/)[ftp](https://wordpress.org/plugins/tags/ftp/)
 *  [Advanced View](https://wordpress.org/plugins/wp-proftpd/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-proftpd/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-proftpd/reviews/)

## Contributors

 *   [ derricksmith01 ](https://profiles.wordpress.org/derricksmith01/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-proftpd/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://derrick-smith.com)