How to use Laravel storage on Azure Web App - php

I'm trying to host my project using Azure Web App. I created storage link
console output , but I still can't access my files. How can I fix it? Files appear in public folder if check from Kudu.

Thanks for asking question! If I have understood right you want to have a Laravel app running on Azure App Service. If so, you may wish to investigate this article which deploys an app to App Service on Windows and to this article if deploying to App Service on Linux.

Related

Mapped Azure File Share not accessible from PHP on Windows Azure VM

I have a Windows Azure VM running IIS/PHP. I have mapped an Azure file share to the VM. PHP always returns false when running is_dir('//server/share'). How can I map the Azure file share so that PHP can see it?
I was able to get PHP to see the mapped drive by adding the Azure storage account as an admin user on the server and using that account to connect as under basic settings for the web site under IIS.
See: Access mapped drive by IIS running asp.net mvc web application

How to host Codeigniter app on Azure?

I wanted to ask you to help me (with some tutorial link or something), what i want to do is to upload php Codeigniter application on azure?
Also in my application, I got upload feature so I should make it work too (don't know if it's more complex becasue of that).
I was using wamp during developing, now I need to push it on server.
Generally, deploy a CI application to Azure Web Apps is simple, you can simply create an Azure Web Apps on Azure portal, then step in the manage page of your Azure Web Apps, click All settings=>deployment source=>chose source=>Local Git Repository to set the git deployment setting of your Azure Web Apps service.
Then you can find the Git clone url under the essential tab.
Additionally, Azure App Service can run php composer.phar install when you run git push, but it's not enabled by default. To enable it, you need to install the Composer extension for your web app.
Here is a CI template on Azure sample, you can refer to https://github.com/Azure-Samples/app-service-web-php-get-started for any hits.
And here is a video https://youtu.be/bBb_Hi2Odqc, you can refer to. It manages on the classic portal, but still works today.
Deploying Codeigniter is very easy, all you need to make sure is placing the project directory correctly.
Just upload the project folder to the hosting either by SSH or FTP.
Modify the .htaccess file accordingly.
Once all the above is set up, including uploading all the files to host, don't forget to update config.php database.php and route.php with new hosting parameters.
To make your upload feature work correctly you just need to give proper/required write access to the upload folder of the application.
And that's all you need to do while deploying Codeigniter application.

Use laravel on azure webapp

My project is developed with larval, then i am trying to use azure for web server.
I am copying folder laravel in C:\inetpub\wwwroot\laravel5. Next I run php artisan serve.
Then I test on http://localhost:8000/index (test on remote websever). It's ok.
But if I access my url for example http://bobdict.cloudapp.net/index, it say page not found.
What is the problem?
I am a newbie for this, sorry.
It seems you are using IIS to host your PHP application on Azure VM.
As the entrance of laravel application locates in public folder in the root directory of the application. You can test to browse http://bobdict.cloudapp.net/public/index to test whether you have deploy laravel application successfully. Then to config URL rewrite for friendly URL pattern. You can create the web.config manually in your root directory of your application.
You can refer to http://blog.qbotx.com/basic-laravel-5-on-microsoft-azure-part-1/ for the content of web.config.
in azure portal configure docroot to
wwwroot/laravel5/public

Developing PHP-MySQL application on Azure

I am new in Azure. I want to develop a web application on Azure. i am a bit confused about one issue. Should i develop the application locally and then deploy it to Azure ? or should I develop the app directly on Azure ? Could anyone please guide me on this issue ?
As #David Makogon said, you can either develop applications on local then deploy it to Azure, or you can directly develop your applications on Azure. They are all workable on Azure, that depends on you.
Generally, you need to create services on Azure, i.e. Web Apps to host PHP applications and ClearDB (MySQL services on Azure) to store your MySQL data. To create the PHP + MySQL sites services on Azure, you can see steps on How to create server on azure and host php,mysql site on that on stack overflow.
If you have an application on local, you can deploy to Azure via GIT or FTP. You can refer to Create a PHP-MySQL web app in Azure App Service and deploy using Git and Create a PHP-MySQL web app in Azure App Service and deploy using FTP on official site for deploying your local application on Azure Web Apps.
Also you can leverage WebMatrix directly remoting to applications on Web Apps and develop your applications.

PHP in Azure cloud service

Can any one suggest what is the configuration need to be done to run a simple php file in the Azure cloud service.
I am able to view my simple php file in Azure Web Site, But i cant view the same file in Azure Cloud service.
Can some one provide me some suggestions?
When you say "I am able to view my simple php file in Azure Web Site, But i cant view the same file in Azure Cloud service.", I believe you mean you can browse your PHP site in Windows Azure Websites however not with Windows Azure Service configured as something.cloudapp.net. Isn't it?
As you asked for suggestions here are some steps you can use to troubleshoot your problem:
When you access your PHP file i.e. servicename.cloudapp.net/phpinfo.php does it shows file not found error or it returns error related with PHP runtime? This is because you would need to put together PHP runtime as well as all the PHP files in your package before deploying it. If you miss any of important content, your site will not run. So you must be sure that all the contents specific to your application are in your Package which you deployed to Windows Azure cloud service.
To verify you have all the contents in your Package, you can rename cspkg to zip and then unzip it. After that you can rename cssx file to zip again and unzip it to see if all the contents are there.
You can enabled RDP access to your Azure VM and log into to check for consistency
Also for Azure Cloud Service you use this documentation: http://azurephp.interoperabilitybridges.com/articles/packaging-applications

Categories