Microsoft Azure网站上的PHP Websockets扩展 [英] PHP Websockets extension on Microsoft Azure website

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

问题描述

我想在Microsoft Azure上托管的PHP网站上使用Web套接字.

I want to use web sockets on my PHP website hosted on Microsoft Azure.

为此,我需要使用websockets扩展名php_sockets.dll.我将php_sockets.dll添加到了我的wwwroot/bin文件夹中.我按照以下步骤编辑了应用程序设置:

For this I need to use the websockets extension php_sockets.dll. I added the php_sockets.dll to my wwwroot/bin folder. I edited the app settings as followed:

但是在日志中出现以下错误:无法加载动态库'C:\ DWASFiles \ Sites \ mywebsite \ VirtualDirectory0 \ site \ wwwroot \ bin \ php_sockets.dll'-找不到指定的模块.

But I get the following error in de log: Unable to load dynamic library 'C:\DWASFiles\Sites\mywebsite\VirtualDirectory0\site\wwwroot\bin\php_sockets.dll' - The specified module could not be found.

Azure是否阻止了它?

Is Azure blocking it?

推荐答案

它对我有用!这里有一些事情要记住:

It worked for me! Here are some things to keep in mind:

  1. 确保您要从适用于Windows的PHP 下载 php_sockets.dll >网站
  2. 确保您下载了正确的版本(例如,我在Azure网站上运行的是PHP 5.4,因此我从上面列出的页面下载了PHP 5.4.40 ZIP文件).
  3. 确保您下载了 VC9 x86非线程安全程序包.
  4. 正如您在问题中提到的,在 wwwroot 文件夹中创建一个名为 bin 的文件夹,并将DLL放置在此文件夹中.
  5. 遵循Azure文档中的步骤:
  1. Make sure you are downloading the php_sockets.dll from the PHP for Windows site
  2. Make sure you download the proper version (for example, I'm running PHP 5.4 on my Azure Website, so I downloaded the PHP 5.4.40 ZIP file form the page listed above).
  3. Make sure you download the VC9 x86 Non Thread Safe package.
  4. As you mentioned in your question, create a folder titled bin in the wwwroot folder and place the DLL in this folder.
  5. Follow the steps in the Azure documentation: Configure PHP in web apps)

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

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