PageRenderTime 55ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/README.md

https://github.com/palepurple/pureftp-user-admin
Markdown | 51 lines | 35 code | 16 blank | 0 comment | 0 complexity | 4408223a5e27165377444ed487cec3a6 MD5 | raw file
  1. # PureUserAdmin v 0.4.0
  2. ![PHP Composer](https://github.com/DavidGoodwin/pureftp-user-admin/workflows/PHP%20Composer/badge.svg)
  3. # TODO
  4. * Basic tests
  5. * docker-services.yml for example with pureftp + end-to-end test.
  6. # Changes since 0.3 ...
  7. * Refactor codebase
  8. * Try and remove XSS, and SQL Injection issues
  9. * Try and support multiple databases (via PDO)
  10. * Support better password hash variants
  11. # Installation
  12. (Assuming Debian or derivative)
  13. * apt-get install pure-ftpd-mysql
  14. * git clone git@github.com:DavidGoodwin/pureftp-user-admin.git /var/www/somewhere/
  15. * In /var/www/somewhere ...
  16. * wget https://getcomposer.org/composer.phar && php composer.phar install
  17. * echo "CREATE DATABASE pureftp" | mysql --defaults-extra-file=/etc/mysql/debian.cnf
  18. * echo "CREATE USER pureftp IDENTIFIED BY PASSWORD 'somepass'" | mysql --defaults-extra-file=/etc/mysql/debian.cnf
  19. * mysql --defaults-extra-file=/etc/mysql/debian.cnf pureftp < schema.sql
  20. * Edit /var/www/somewhere/config.php with your database details
  21. * Expose /var/www/somewhere/public via Apache (e.g. Alias /pureftp-admin /var/www/somewhere/public )
  22. * Configure pure-ftp
  23. * See docs/pureftp-mysql.conf.example for what you could put in /etc/pure-ftpd/db/mysql.conf
  24. * cp docs/pureftp-mysql.conf.example /etc/pure-ftpd/db/mysql.conf
  25. * echo "yes" > /etc/pure-ftpd/conf/DisplayDotFiles
  26. * echo "no" > /etc/pure-ftpd/conf/PAMAuthentication
  27. * And if you're having problems:
  28. * echo "yes" > /etc/pure-ftpd/conf/VerboseLog
  29. * /etc/init.d/pure-ftpd-mysql restart
  30. * test?
  31. # Copyright
  32. Historical note etc -
  33. Copyright (c) 2004, Michiel van Baak <mvanbaak (AT) users (DOT) sourceforge (DOT) net>
  34. Licensed under the General Public License (GPL), see COPYING file
  35. provided with this program.