DirectAdmin 安装后,默认的初始密码会直接显示在屏幕上,但很多人容易忘掉,或者不知道保存在哪里去了。怎么办?admin账号的密码和mysql的管理员账号和密 码,可在 /usr/local/directadmin/scripts/setup.txt 里找到。

当然也可以用最简单的办法修改admin的密码,那就是ssh进去你的服务器,敲下:

passwd admin

连续输入两次你想要重新设置的admin密码,然后service directadmin restart,重启directadmin服务,就ok了,实在不行,再重启一次服务器。

但是有时候admin无法登陆https://ip:2222管理directadmin,怎么办呢?无法登陆directadmin的时候,需要查看日志,是否权限设置错误,或无法读取配置文件所导致.

一般来说,主要文件为以下几个:

  1. /usr/local/directadmin/data/templates/proftpd.conf
  2. /usr/local/directadmin/data/templates/directadmin.conf
  3. /usr/local/directadmin/data
  4. /usr/local/directadmin/data/admin
  5. /usr/local/directadmin/data/tickets
  6. /usr/local/directadmin/data/users
  7. /home/tmp #这个tmp权限不对,也会导致容量大小显示错误
  8. /usr/local/directadmin/data/sessions
  9. /etc/virtual
  10. /var/spool/virtual
  11. /usr/local/directadmin/data/admin/ips
  12. /usr/local/directadmin/data/admin/packages
  13. /usr/local/directadmin/data/admin/packages.list
  14. /usr/local/directadmin/data/admin/login.hist #权限
  15. /usr/local/directadmin/data/admin/next_ticket.number #权限
  16. /usr/local/directadmin/data/admin/services.status #权限
  17. /usr/local/directadmin/data/admin/ip.list #权限
  18. /usr/local/directadmin/data/users/admin/ip.list #权限

如果排除密码的问题,directadmin无法登陆,以下方法可以解决.

cd /usr/local/directadmin/data/users
mkdir admin
chown diradmin:diradmin admin
chmod 711 admin
cd /usr/local/directadmin
./directadmin i

./data/admin/login.hist written successfully
./data/admin/next_ticket.number already exists
*** Unable to write ./data/admin/services.status : Unable to stat ./data/admin/services.status.temp for filesize after write<br>
ConfigFile::removeFile(./data/admin/services.status) filename does not match<br>

tickets.list written successfully
exiting due to previous errors

首页

No Comments Now!

Be the first to comment on this entry.

留下评论

姓名(必填)
Mail (必填),(will not be published)
站点(recommended)

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URLs must be fully qualified (eg: http://www.hexiaoqun.com),and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.