0

Im trying to install magento 2 as a web app on the azure platform

My issue is when i do it complains that it needs the php_xsl extension to complete the installation

I have found a few guides on the net on how to enable this by adding a key and value in the app settings and uploading the .dll to a bin folder on the server.

but no matter what i do with this i cant get this extension working to install magento

I have tried moving this folder to above the root and into other folders, adding a line in the user.ini

The dll is for the correct version of php

4

2 回答 2

0

我在 Azure Web Apps 上有一个测试项目,似乎 Azure Web Apps 环境包含扩展 dll 文件php_xsl.dll,但没有在php.ini.

要在 Azure Web Apps 上启用扩展,您可以尝试以下步骤:

  1. 使用PHP_INI_SCAN_DIR键和值向您的 Web 应用程序添加应用程序设置d:\home\site\wwwroot\ini
  2. 创建一个名为的ini文件d:\home\site\wwwroot\ini(您可以简单地ini在应用程序的根目录中创建一个名为的文件夹)extensions.ini
  3. extensions.ini使用您在文件中使用的相同语法将配置设置添加到php.ini文件中。例如: extension = php_xsl.dll
  4. 重新启动您的 Web App 以加载更改,您可以使用它phpinfo()来检查扩展。

或者您可以在http://php.net/manual/en/xsl.examples-collection.php创建两个源示例文件,然后在http://de2.php.net/manual/en/使用测试代码片段xsltprocessor.transformtoxml.php来测试扩展安装。

有关详细信息,请参阅https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-configure/#how-to-enable-extensions-in-the-default-php-runtime

于 2016-03-07T02:35:04.703 回答
0

检查您的网站是在 32 位还是 64 位上运行,并根据它获取正确版本的 dll。还要检查 /LogFiles/php_errors.log。您将看到您的应用程序是否抛出任何与扩展相关的错误。

最后,您可以尝试使用 ini 文件夹添加扩展。

于 2016-03-05T03:55:27.933 回答