[PHP] [Web应用程序] [Linux] Linux的Web应用程序扩展 [英] [PHP] [Web Apps] [Linux] extensions to Web Apps for Linux

查看:96
本文介绍了[PHP] [Web应用程序] [Linux] Linux的Web应用程序扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了一些文章,这些文章描述了为Windows Web Apps添加.dll文件以添加默认情况下不包括的PHP扩展的功能,并且很好奇Linux方面是否可以选择. /p>

现在,Linux PHP 7.0相当简陋,没有添加任何缓存扩展.我希望使用Azure Redis进行网站缓存,但是,由于默认映像中没有PHP扩展名,因此我需要添加该扩展名.我知道有能力 来启动自定义Web App容器,但是,我希望保留由Web App for Linux中提供的预构建映像提供的管理端.

如果无法像Windows中那样添加新扩展名,并且需要使用Web App for Containers,我很好奇,如果我基于您的PHP映像构建基础,Azure仍将管理对Apache/PHP/etc的修补...我的自定义容器?

谢谢!

解决方案

 

自定义泊坞窗为您提供了更多控制权在docker映像本身上,并且可以在需要时以及使用新模块或扩展名对其进行修改 这些变化.检出使用 建议的方法正在使用使用CMS解决方案时,请使用Web App for Containers自定义图像.

 

此外,如本文所述 文档 ,只要需要,它将自动执行Linux OS修补程序并 为您实现负载平衡.

 

此外,请查看常见问题解答: "您是否支持Composer作为PHP应用程序的依赖项管理器?"

是.在Git部署期间,Kudu应该检测到您正在部署PHP应用程序(由于存在composer.lock文件), 然后Kudu将为您触发作曲家的安装.

------------------------------------------------- --------------------------------------------------

请点击标记为答案"在对您有帮助的帖子上,这可能会对其他社区成员有所帮助.


I've found articles describing the ability to add .dll files for Web Apps for Windows to add PHP extensions that aren't included by default and was curious if there's an option for the Linux side of things.

Right now the Linux PHP 7.0 is rather bare-bones with no caching extensions added. I was hoping to use Azure Redis for site caching, but, since there's no PHP extension for it in your default images I'm needing to add that extension. I know there's the ability to spin up custom Web App Containers, but, I was hoping to keep the managed side provided by the pre built images offered in Web App for Linux.

If it's not possible to add new extensions like in Windows and it's required to use Web App for Containers, I'm curious if I built my base off your PHP image will Azure still manage patching Apache/PHP/etc... with my custom Container?

Thanks!

解决方案

As mentioned in this document, some features, such as virtual network integration, Azure Active Directory/third-party authentication, or Kudu site extensions, are not available yet. Once these features are available, we will update our documentation and blog about the changes.

 

Custom docker provide you more control on the docker image itself and can modify it with new modules or extensions if and when your app needs these changes. Checkout an example of using a Python Application with a Custom image.

The recommended approach is using custom images with Web App for Containers when using a CMS solution.

 

Further as mentioned in this document, whenever required, it will automatically perform Linux OS patching and load balancing for you.

 

Additionally, check the FAQ: "Do you support Composer as a dependency manager for PHP apps?"

Yes. During a Git deployment, Kudu should detect that you are deploying a PHP application (thanks to the presence of a composer.lock file), and Kudu will then trigger a composer install for you.

---------------------------------------------------------------------------------------------------

Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.


这篇关于[PHP] [Web应用程序] [Linux] Linux的Web应用程序扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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