VPS侦探论坛

 找回密码
 注册
查看: 10027|回复: 6

PureFTPd问题 启动不了

[复制链接]
发表于 2010-7-31 10:23:16 | 显示全部楼层 |阅读模式

我在安装完了  /root/pureftpd status 就是


登陆ftp 时


附上/usr/local/pureftpd/pureftpd-mysql.conf



  1. ############################################################################
  2. #                                                                          #
  3. # PureFTPd MySQL configuration file.                                       #
  4. # Generated by the installation wizard for the 'User manager for PureFTPd' #
  5. # See http://machiel.generaal.net for more info                            #
  6. # or read the README.MySQL for explanations of the syntax.                 #
  7. #                                                                          #
  8. ############################################################################
  9. # Optional : MySQL server name or IP. Don't define this for unix sockets.
  10. MYSQLServer     127.0.0.1
  11. # Optional : MySQL port. Don't define this if a local unix socket is used.
  12. # MYSQLPort       3306

  13. # Optional : define the location of mysql.sock if the server runs on this host.
  14. MYSQLSocket     /tmp/mysql.sock

  15. # Mandatory : user to bind the server as.
  16. MYSQLUser      ftp

  17. # Mandatory : user password. You must have a password.
  18. MYSQLPassword   tmppasswd

  19. # Mandatory : database to open.
  20. MYSQLDatabase  ftpusers

  21. # Mandatory : how passwords are stored
  22. # Valid values are : "cleartext", "crypt", "md5" and "password"
  23. # ("password" = MySQL password() function)
  24. # You can also use "any" to try "crypt", "md5" *and* "password"
  25. MYSQLCrypt      md5

  26. # In the following directives, parts of the strings are replaced at
  27. # run-time before performing queries :
  28. #
  29. # \L is replaced by the login of the user trying to authenticate.
  30. # \I is replaced by the IP address the user connected to.
  31. # \P is replaced by the port number the user connected to.
  32. # \R is replaced by the IP address the user connected from.
  33. # \D is replaced by the remote IP address, as a long decimal number.
  34. #
  35. # Very complex queries can be performed using these substitution strings,
  36. # especially for virtual hosting.

  37. # Query to execute in order to fetch the password
  38. MYSQLGetPW      SELECT Password FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")

  39. # Query to execute in order to fetch the system user name or uid
  40. MYSQLGetUID     SELECT Uid FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")

  41. # Optional : default UID - if set this overrides MYSQLGetUID
  42. #MYSQLDefaultUID 1000

  43. # Query to execute in order to fetch the system user group or gid
  44. MYSQLGetGID     SELECT Gid FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")
  45. # Optional : default GID - if set this overrides MYSQLGetGID
  46. #MYSQLDefaultGID 1000

  47. # Query to execute in order to fetch the home directory
  48. MYSQLGetDir     SELECT Dir FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")
  49. # Optional : query to get the maximal number of files
  50. # Pure-FTPd must have been compiled with virtual quotas support.
  51. # MySQLGetQTAFS  SELECT QuotaFiles FROM users WHERE User="\L"
  52. # Optional : query to get the maximal disk usage (virtual quotas)
  53. # The number should be in Megabytes.
  54. # Pure-FTPd must have been compiled with virtual quotas support.
  55. # MySQLGetQTASZ  SELECT QuotaSize FROM users WHERE User="\L"

  56. # Optional : ratios. The server has to be compiled with ratio support.
  57. # MySQLGetRatioUL SELECT ULRatio FROM users WHERE User="\L"
  58. # MySQLGetRatioDL SELECT DLRatio FROM users WHERE User="\L"

  59. # Optional : bandwidth throttling.
  60. # The server has to be compiled with throttling support.
  61. # Values are in KB/s .
  62. MySQLGetBandwidthUL SELECT ULBandwidth FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")
  63. MySQLGetBandwidthDL SELECT DLBandwidth FROM users WHERE User="\L" AND Status="1" AND (Ipaddress = "*" OR Ipaddress LIKE "\R")
  64. # Enable ~ expansion. NEVER ENABLE THIS BLINDLY UNLESS :
  65. # 1) You know what you are doing.
  66. # 2) Real and virtual users match.
  67. # MySQLForceTildeExpansion 1

  68. # If you upgraded your tables to transactionnal tables (Gemini,
  69. # BerkeleyDB, Innobase...), you can enable SQL transactions to
  70. # avoid races. Leave this commented if you are using the
  71. # traditionnal MyIsam databases or old (< 3.23.x) MySQL versions.
  72. # MySQLTransactions On

复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-7-31 11:40:41 | 显示全部楼层

回复 1# 的帖子



pureftpd 启动是没有问题,530 验证错误应该是mysql链接信息错误引起的,检查一下/usr/local/pureftpd/pureftpd-mysql.conf  和/home/wwwroot/ftp/config.php 中的mysql链接信息是否正确。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2010-9-30 22:19:26 | 显示全部楼层

麻烦军哥详细说一下如何修改


麻烦军哥详细说一下如何修改 那两个文件 在此谢谢了 永远支持军哥
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-9-30 23:38:57 | 显示全部楼层



就是把两个文件的账号登录信息设置为一样的  你百度下FTP530验证失败 有很多文章可以参考
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2010-10-8 21:38:24 | 显示全部楼层

回复 1# 4# 的帖子


非常感谢 楼上对我提出问题的关注 /usr/local/pureftpd/pureftpd-mysql.conf  和/home/wwwroot/ftp/config.php 这两个的连接信息也已经检查 网上也没有找到合适的答案 希望高人能够在次帮助我详细解答一下这个问题

军哥运维代购:http://shop63846532.taobao.com/

发表于 2010-10-12 21:31:58 | 显示全部楼层

没有人关注吗


没有人关注吗 自己先顶了
发表于 2010-12-11 02:10:45 | 显示全部楼层

支持你,这个问题我也遇到了,暂时没解答办法!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-18 03:19 , Processed in 0.028483 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表