下方为我Google到的解决方案,大致如下:
- 打开install.php
- 找到含有(‘ ‘, ‘addslashes call_user_func …. ini_get mail mkdir …’)的行。(你可以搜索“addslashes call_user_func”,找到便是了)
- 删去之间的“mail”,注意要保留空格,成这样:”ini_get mkdir”,而不是“ini_getmkdir”,连起来你就玩不下去了
转移自dokuwiki
详细:wiki/install_mail.txt · 最后更改: 2017/02/17 13:23 (外部编辑)
分割线以上 CC BY-SA 4.0
以下文本来源于Alper Yazar的博客,作者权利保留。
Install Dokuwiki Without Mail Support
Dokuwiki is great. But it requires mail() PHP function for registration or subscriptions. However, depending on your needs you don’t have to use mail feature of dokuwiki. For single user, or registration closed typed wikis mailing is not essential. You may want to install Dokuwiki on a server where mail() function is not available. Some hosting providers may disable mail() function. When you try to install Dokuwiki, it gives you an error something like that:
PHP function mail is not available.
install.php doesn’t allow you to install Dokuwiki. To fix this problem, ( for 2014-09-29b “Hrun”)
- Open your install.php
- Locate check_function around line 554.
- Find mail in explode(‘ ‘, ‘addslashes call_user_func …. ini_get mail mkdir …’);
- Delete mail from that text. (Put a space between ini_get and mkdir, not ini_getmkdir !)
- Save your install.php
- Now, install your Dokuwiki
Don’t forget that Dokuwiki still is not able to send mails. This steps just allow us to skip checking mailing feature on installation.