Changeset 2393973
- Timestamp:
- 10/05/2020 11:21:02 PM (6 years ago)
- File:
-
- 1 edited
-
wp-proftpd/trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-proftpd/trunk/readme.txt
r2393830 r2393973 32 32 == Installation == 33 33 34 ###WP Password Bcrypt Wordpress Plugin Prerequisite 35 36 1. Download latest Bcyrpt plugin at https://github.com/roots/wp-password-bcrypt/wp-password-bcrypt.php. 37 2. 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 34 41 1. Download the plugin and upload to you WordPress site. 35 42 2. Install the plugin. 36 43 3. 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) 53 1. cd /opt 54 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 55 3. sudo wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.7a.tar.gz 56 4. sudo tar -xvf proftpd-1.3.7a.tar.gz 57 5. cd proftpd-1.3.7a 58 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 59 7. sudo make install 60 8. sudo groupadd -g 46 proftpd 61 9. sudo useradd -c proftpd -d /srv/ftp -g proftpd -s /usr/bin/proftpdshell -u 46 proftpd 62 10. sudo install -v -d -m775 -o proftpd -g proftpd /srv/ftp 63 11. sudo ln -v -s /bin/false /usr/bin/proftpdshell 64 12. sudo mkdir -p /etc/proftpd/ssl 65 13. sudo mkdir -p /var/log/proftpd 66 14. Create file 'proftpd' using your favorite editor, copy script below 67 ``` 68 #!/bin/sh 69 70 # ProFTPD files 71 FTPD_BIN=/usr/sbin/proftpd 72 FTPD_CONF=/etc/proftpd/proftpd.conf 73 PIDFILE=/var/run/proftpd.pid 74 75 # If PIDFILE exists, does it point to a proftpd process? 76 77 if [ -f $PIDFILE ]; then 78 pid=`cat $PIDFILE` 79 fi 80 81 if [ ! -x $FTPD_BIN ]; then 82 echo "$0: $FTPD_BIN: cannot execute" 83 exit 1 84 fi 85 86 case $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 131 esac 132 133 exit 0 134 ``` 135 15. sudo mv proftpd /etc/init.d/proftpd 136 16. sudo chmod 755 /etc/init.d/proftpd 137 17. sudo ln -s /etc/init.d/proftpd /etc/init.d/proftpd_start 138 18. sudo mv /etc/init.d/proftpd_start /etc/rc5.d 139 19. sudo /etc/init.d/proftpd start OR sudo service proftpd start 140 141 #### Log File Locations 142 143 1. Proftpd Service = /var/log/proftpd/proftpd.log 144 2. Proftpd SQL = /var/log/proftpd/sql.log 145 3. Proftpd Transfer = /var/log/proftpd/xfer.log 146
Note: See TracChangeset
for help on using the changeset viewer.