Plugin Directory

Changeset 2393973


Ignore:
Timestamp:
10/05/2020 11:21:02 PM (6 years ago)
Author:
derricksmith01
Message:

Update Installation Instructions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-proftpd/trunk/readme.txt

    r2393830 r2393973  
    3232== Installation ==
    3333
     34###WP Password Bcrypt Wordpress Plugin Prerequisite
     35
     361. Download latest Bcyrpt plugin at https://github.com/roots/wp-password-bcrypt/wp-password-bcrypt.php.
     372. Save wp-password-bcrypt.php to /wp-content/mu-plugins - Create mu-plugins folder if it does not exist.
     38
     39###WP ProFTPd Wordpress Plugin
     40
    34411. Download the plugin and upload to you WordPress site.
    35422. Install the plugin.
    36433. Configure a user for FTP access.
     44
     45   * UID = 2001
     46   * GID = 2001
     47   * Hom Directory = /srv/ftp/{username}
     48   * Shell = /sbin/nologin
     49
     50###ProFTPd
     51
     52(Ubuntu Installation)
     531. cd /opt
     542. 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
     553. sudo wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.7a.tar.gz
     564. sudo tar -xvf proftpd-1.3.7a.tar.gz
     575. cd proftpd-1.3.7a
     586. 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
     597. sudo make install
     608. sudo groupadd -g 46 proftpd
     619. sudo useradd -c proftpd -d /srv/ftp -g proftpd -s /usr/bin/proftpdshell -u 46 proftpd
     6210. sudo install -v -d -m775 -o proftpd -g proftpd /srv/ftp
     6311. sudo ln -v -s /bin/false /usr/bin/proftpdshell
     6412. sudo mkdir -p /etc/proftpd/ssl
     6513. sudo mkdir -p /var/log/proftpd
     6614. Create file 'proftpd' using your favorite editor, copy script below
     67```
     68#!/bin/sh
     69
     70# ProFTPD files
     71FTPD_BIN=/usr/sbin/proftpd
     72FTPD_CONF=/etc/proftpd/proftpd.conf
     73PIDFILE=/var/run/proftpd.pid
     74
     75# If PIDFILE exists, does it point to a proftpd process?
     76
     77if [ -f $PIDFILE ]; then
     78  pid=`cat $PIDFILE`
     79fi
     80
     81if [ ! -x $FTPD_BIN ]; then
     82  echo "$0: $FTPD_BIN: cannot execute"
     83  exit 1
     84fi
     85
     86case $1 in
     87
     88  start)
     89    if [ -n "$pid" ]; then
     90      echo "$0: proftpd [PID $pid] already running"
     91      exit
     92    fi
     93
     94    if [ -r $FTPD_CONF ]; then
     95      echo "Starting proftpd..."
     96
     97      $FTPD_BIN -c $FTPD_CONF
     98
     99    else
     100      echo "$0: cannot start proftpd -- $FTPD_CONF missing"
     101    fi
     102    ;;
     103
     104  stop)
     105    if [ -n "$pid" ]; then
     106      echo "Stopping proftpd..."
     107      kill -TERM $pid
     108
     109    else
     110      echo "$0: proftpd not running"
     111      exit 1
     112    fi
     113    ;;
     114
     115  restart)
     116    if [ -n "$pid" ]; then
     117      echo "Rehashing proftpd configuration"
     118      kill -TERM $pid
     119
     120    else
     121      echo "$0: proftpd not running"
     122      exit 1
     123    fi
     124    ;;
     125
     126  *)
     127    echo "usage: $0 {start|stop|restart}"
     128    exit 1
     129    ;;
     130
     131esac
     132
     133exit 0
     134```
     13515. sudo mv proftpd /etc/init.d/proftpd
     13616. sudo chmod 755 /etc/init.d/proftpd
     13717. sudo ln -s /etc/init.d/proftpd /etc/init.d/proftpd_start
     13818. sudo mv /etc/init.d/proftpd_start /etc/rc5.d
     13919. sudo /etc/init.d/proftpd start OR sudo service proftpd start
     140
     141#### Log File Locations
     142
     1431. Proftpd Service = /var/log/proftpd/proftpd.log
     1442. Proftpd SQL = /var/log/proftpd/sql.log
     1453. Proftpd Transfer = /var/log/proftpd/xfer.log
     146
Note: See TracChangeset for help on using the changeset viewer.