douang2297 2013-09-23 14:34
浏览 51
已采纳

PHP扩展无法在Windows Azure上运行

I have just set up a Windows Azure website and I'm already having trouble making it work. I have a PHP-website which works local on IIS for Windows 7 + MSSQL 2008.

The extension needed is pdo_xsl.dll and I have uploaded it using FTP to the wwwroot\bin folder.

Next, I have added the 'app settings'-string: PHP_EXTENSIONS = bin\php_xsl.dll in the Configuration tab for this site.

Then I saved and restarted the website but still got this error:

PHP Fatal error:  Class 'XSLTprocessor' not found

Although the PHP INFO says:

xsl
XSL                                         enabled
libxslt Version                             1.1.27
libxslt compiled against libxml Version     2.7.8
EXSLT                                       enabled
libexslt Version                            0.8.16 

I also use the URL method:

http://website.com/index.php/module/action/value/

It seems that Windows Azure is now seeing index.php as a directory instead of a file. As I'm using this method all over this script and it does work on IIS7 I would say it would work on IIS for Azure...

  • 写回答

1条回答 默认 最新

  • dqxafj6830 2014-03-03 11:30
    关注

    I have already solved this problem on my own. The solution is quite simpel actually...

    In 'App Settings' add this: PHP_EXTENSIONS on the left side. bin/php_xsl.dll on the right side. PHP_EXTENSIONS = bin/php_xsl.dll

    So it needs the forward slash instead of the backslash.

    Please notice that the XSL dll files are not working on any PHP version. The current version is only working on 5.4 and for every php version you can find another dll-file. 5.5 does not have it's xsl dll as far as I know for now. Just as pdo_sqlsrv.dll btw.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥15 绘制多分类任务的roc曲线时只画出了一类的roc,其它的auc显示为nan
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?