【发布时间】:2021-10-11 02:15:51
【问题描述】:
编辑:pbm毕竟不是我在密码中使用了空格,所以我改变了描述
在尝试配置 xampp 时,我遇到了一个错误:fatal: unknown configuration directive 'function' on line 44 of '/opt/lampp/etc/proftpd.conf'
- 首先,我下载并安装了xampp
- 然后,我运行了命令
sudo lampp restart,它成功了 - 第三,我运行
sudo lampp security,并创建了一些密码 - 我再次尝试了命令
sudo lampp restart,但这次我收到了错误消息
/opt/lampp/etc/proftpd.conf 中的文件:
40 # daemon gets the password "xampp"
41 # commented out by xampp security
42 #UserPassword daemon 2TgxE8g184G9c
43 UserPassword daemon <?
44 function make_seed() {
45 list($usec, $sec) = explode(' ', microtime());
46 return (float) $sec + ((float) $usec * 100000);
47 }
48 srand(make_seed());
49 $random=rand();
50 $chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz./";
51 $salt=substr($chars,$random % 64,1).substr($chars,($random/64)%64,1);
52 $pass=$argv[1];
53 $crypted = crypt($pass,$salt);
54 echo $crypted."
55 ";
56 ?>
如果我评论所有这些行,xampp 启动,我可以转到网页 localhost/phpmyadmin/,我想在那里更改我的密码为一个不带单引号的新密码,但它说我不允许:
MySQL said: Documentation
#1131 - You are using MariaDB as an anonymous user and anonymous users are not allowed to modify user settings
另外,我的密码在这个文件 /opt/lampp/phpmyadmin 中是明确的:
38 /**
39 * phpMyAdmin configuration storage settings.
40 */
41
42 /* User used to manipulate with storage */
43 // $cfg['Servers'][$i]['controlhost'] = '';
44 // $cfg['Servers'][$i]['controlport'] = '';
45 $cfg['Servers'][$i]['controluser'] = 'pma';
46 # commented out by xampp security
47 #$cfg['Servers'][$i]['controlpass'] = '';
48 $cfg['Servers'][$i]['controlpass'] = 'password_here';
我不知道如何解决。
我尝试卸载所有内容并重新开始,但没有解决问题(我这样做是为了确定我做了什么)。
【问题讨论】:
-
试试resetting the password for PHPMyAdmin,并阅读this的帖子,看看为什么重新安装不是一个好/好的答案????
-
我试过你的链接,这个过程很成功(有一些小问题很容易解决),但是 pbm 仍然存在:/我会重新安装,因为我还没有创建任何东西:p
-
好的,我重新安装了,我尝试
sudo lampp restart,一切都很好,然后我运行sudo lampp security,我按照要求创建了密码,现在我得到了同样的错误:fatal: unknown configuration directive 'function' on line 44 of '/opt/lampp/etc/proftpd.conf': /你说得对,重新安装不是解决方案;)
标签: php mysql phpmyadmin