CakePHP的3.0或GT;在Azure上? [英] Cakephp 3.0 or > on Azure?
问题描述
是否可以在Azure上Web应用程序运行蛋糕3.0或更高版本?我有一个应用程序在一个3+版本本地运行,但是当我在我的Azure的web应用程序CakePHP安装它的运行2.5.1。
Is it possible to run Cake 3.0 or higher on Azure Web Apps? I have an app running locally on a 3+ version but when I installed CakePHP on my Azure web app it's running 2.5.1.
我觉得一样,它只是一个上传所有3.0版本创建的新文件和数据库的问题,而是惊有某种写访问的新蛋糕将因此需要$ P $从运行和燃烧一吨我的时间pventing它。
I feel like it's just a matter of uploading all of the newer files and the db created for the 3.0 version but scared there is some kind of write access the new cake will need thus preventing it from running and burning a ton of my time.
我开始学习PHP 3个星期前这么叫我对于新手可能是一个侮辱newbs。
I started learning PHP 3 weeks ago so calling me a newb is probably an insult to newbs.
本文告诉回答我的大部分问题原来就这个问题。
This article tells answered most of my original questions regarding this issue.
推荐答案
是的,这是可能的部署 CakePHP的> 3.0
应用程序Azure的Web应用程序。但是,我们需要一些preactions使运行该应用程序。通常情况下,你可以尝试以下步骤:
Yes, it is possible to deploy CakePHP > 3.0
applications to Azure Web Apps. But we need to some preactions to make the application to run. Generally, you can try to following steps:
- 创建一个空的Azure的Web应用程序,并启用
作曲
扩展,并且还可以启用Visual Studio的在线
的易剧本修改和命令的运行。请参照<一个href=\"https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#enable-composer-automation-with-the-composer-extension\" rel=\"nofollow\">https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#enable-composer-automation-with-the-composer-extension更多。 - 创建一个名为
的web.config
与 http://book.cakephp.org/3.0/en/installation.html#iis7-windows-hosts 在应用程序的根目录。 - 添加在Azure上运行PHP的
inlt
扩展。添加在你的根目录下名为外部
文件夹,创建该文件夹的内容在文件ext.ini
:扩展= php_intl.dll
。添加设置应用到你的Web应用程序的关键PHP_INI_SCAN_DIR
和值D:\\家\\网站\\ wwwroot的\\分机
。你也可以做到这一步杠杆部署后Visual Studio的在线
扩展。请参阅 https://azure.microsoft.com/ EN-US /文档/文章/ web站点的PHP配置的详细信息/ 。 - 设置您的Azure的Web应用程序的开发环境,部署CakePHP的应用程序通过混帐到Azure。请参照<一个href=\"https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#set-up-the-development-environment\" rel=\"nofollow\">https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#set-up-the-development-environment了解详情。
- Create an empty Azure Web Apps, and enable
Composer
extension, and also you can enableVisual Studio Online
for easy script modifications and command running. Refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#enable-composer-automation-with-the-composer-extension for more. - Create a file named
web.config
with the content at http://book.cakephp.org/3.0/en/installation.html#iis7-windows-hosts in the root directory of your application. - Add the
inlt
extension in PHP runtime on Azure. Add a folder namedext
in your root directory, create a fileext.ini
in this folder with the content:extension=php_intl.dll
. Add an App Setting to your Web App with the keyPHP_INI_SCAN_DIR
and valued:\home\site\wwwroot\ext
. You also can do this step leverageVisual Studio Online
extension after deployment. Refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-configure/ for details. - Set up the development environment of your Azure Web Apps, deploy your CakePHP application to Azure via Git. Refer to https://azure.microsoft.com/en-us/documentation/articles/web-sites-php-mysql-deploy-use-git/#set-up-the-development-environment for details.
这篇关于CakePHP的3.0或GT;在Azure上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!