Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in Azure by (45.3k points)

Can I write to file system on Azure Web Site? for example, updating or installing plugins/themes in Wordpress from the dashboard. AFAIK, it is not possible on Heroku so what about Azure Web Sites?

1 Answer

0 votes
by (16.8k points)

Yes, it is possible to write on the file system of an Azure Website. But, your write permissions are always limited to the root folder of your application. 

So, if you are using ASP.NET, then you should be able to write anywhere within your Server.MapPath("~/from_here_on")

Which means that, you should be able to perform read/write/delete operations on your files which are located in your root folder of your application and below. 

In case you are using PHP, then the root folder can be obtained from $_SERVER['DOCUMENT_ROOT'] environment variable.

And a web application may not need any more of the privileges. 

Of course then, you won't be able to write on the operating system folders.

Browse Categories

...