- 论坛徽章:
- 0
|
我想实现PureFTPd+Mysql+PHP_Manager,PureFTPd+Mysql都配置成功了
按照文档把pureftpd_php_manager复制到/var/www下,文件夹名为pureftpadmin
但是访问http://127.0.0.1/ftpadmin 报如下错误
Forbidden
You don't have permission to access /ftpadmin on this server.
应该是权限的问题,但不知道出在哪里
/etc/httpd/conf.d/pureftpdadmin.conf配置如下:
Alias /ftpadmin /var/www/pureftpadmin
<Location /ftpadmin>
Order deny,allow
#Deny from all
Allow from all
#Allow from 127.0.0.1
#Allow from ::1
#Allow from 192.168.8.0/24
#Allow from 192.168.9.0/24
</Location>
/var/www/pureftpadmin/config.php配置如下
// Your exactly located mysql config file for pureftpd
$PUREFTP_CONFIG_FILE = '/usr/local/pureftpd/etc/pureftpd-mysql.conf';
// The location where all the Forms directed to. (Mayby no change needed
)
$SELF_URL = 'index.php';
// The location of your pure-ftpdwho binary (set this to chmod 4711)
$FTP_WHO = '/usr/local/pureftpd/sbin/pure
-ftpwho';
$DefaultUser = ""; # Default User Logon
$DefaultPass = ""; # Default User Password
$DefaultUid = "wwwrun"; # Default User ID ( must be a re
al user acct )
$DefaultGid = "wwwadm"; # Default Group ID ( must be a real gr
oup acct )
$DefaultDir = ""; # Default User Dir ( use /./
at the end to chroot )
$DefaultUL = "0"; # Default Upload Thr
ottle ( 0 disables it )
$DefaultDL = "0"; # Default Download T
hrottle ( 0 disables it )
$Defaultip = "*"; # Default IP restric
tions ( * = any IP )
$DefaultQS = "0"; # Default Quota Size ( 0 d
isables it )
$Defaultcmt = ""; # Default Comment fo
r user
// UA
$DefaultQF = "0"; # Default Quota Files ( 0 disabl
es it )
$PWC = "55"; # Vorsatz fuerr Crypt Password
并且chown –R root.root /var/www/pureftpadmin |
|