如何在Azure网站上使用pear?

时间:2015-01-18 23:06:31

标签: azure pear

相关问题: Azure websites & MediaWiki: how to enable emails sending

我正在尝试用PEAR发送邮件。 错误消息在 http://modeldoc.azurewebsites.net/wiki/index.php?title=Special:RequestAccount

D:\ home \ site \ wwwroot \ wiki \ includes \ mail \ UserMailer.php第268行的例外:未安装PEAR邮件包

我做了什么(在本地linux机器上)

php go-pear.phar.php 

这创建了一个文件夹 wiki / pear,包含子文件夹 维基/梨/股, wiki / pear / bin等。

我在wiki中添加了.user.ini,其值为

display_errors = On
upload_max_filesize = 10M
include_path=".;D:\home\site\wwwroot\wiki\pear\share\pear\PEAR"

我推动了改变,即     git add。     git commit -m"添加梨路径"     git push

但它没有用。我也在.user.ini中尝试了不同的路径

1 个答案:

答案 0 :(得分:1)

从包含路径中删除\PEAR

包含路径必须是System.php所在的路径 - 请参阅http://pear.php.net/manual/en/installation.checking.php