PHP扩展无法在Windows Azure上运行 [英] PHP Extension not working on Windows Azure

查看:54
本文介绍了PHP扩展无法在Windows Azure上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚建立了Windows Azure网站,但是我已经无法使其正常运行了.我有一个PHP网站,可在Windows 7 + MSSQL 2008的IIS上本地运行.

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.

所需的扩展名是pdo_xsl.dll,我已使用FTP将其上传到wwwroot \ bin文件夹.

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

接下来,我在此站点的配置"选项卡中添加了应用程序设置"字符串: PHP_EXTENSIONS = bin \ php_xsl.dll .

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

尽管PHP INFO指出:

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 

我也使用URL方法:

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

似乎Windows Azure现在将index.php视为目录而不是文件.当我在整个脚本中都使用这种方法时,它确实可以在IIS7上运行,我会说它可以在IIS for Azure上运行...

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...

推荐答案

我已经自行解决了此问题.实际上,解决方案非常简单...

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

在应用设置"中添加以下内容:左侧为PHP_EXTENSIONS.bin/php_xsl.dll在右侧.PHP_EXTENSIONS = bin/php_xsl.dll

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.

请注意,XSL dll文件不适用于任何PHP版本.当前版本仅适用于5.4,并且对于每个php版本,您都可以找到另一个dll文件.据我目前所知,5.5没有xsl dll.就像pdo_sqlsrv.dll一样.

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.

这篇关于PHP扩展无法在Windows Azure上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆