Joomla site — unwritable logs and tmp folder when hosting on Windows Azure Web Sites


When hosting Joomla 2.5 site on Windows Azure Web Sites (WAWS), you are not able to install plug-ins which is an exciting feature of Joomla. It turned out the problem is due to unwritable temp folder.

In the site Administration page, click “Site” -> “System Information” -> “Directory Permissions”, you should see follow result.




The problem is Joomla uses hard coded absolute Unix style path in the code. Here is the workaround.


1. Using FTP to download /site/wwwroot/configuration.php from your WAWS site to your local machine.


2. Open it using a text editor, find follows:

public $tmp_path = '/tmp';

public $log_path = '/var/logs';


3. change to:

public $tmp_path = 'C:\DWASFiles\Sites\YourSiteName\VirtualDirectory0\site\wwwroot\tmp';

public $log_path = ''C:\DWASFiles\Sites\YourSiteName\VirtualDirectory0\site\wwwroot\var\logs';


Instead of using absolute physical path, it is suggested to use relative path and maps it to full physical directory. ASP and ASP.Net provides follow function to avoid such problem.



See you next time!


Comments (2)

  1. ubiratan says:

    po cara deu certinho procurei procurei em fim encontrei muito obrigado…

  2. Jim Budde says:

    So glad I finally found this post to resolve the Joomla update and permission problem. For others, you can also updates these settings via the following joomla admin page System -> Global Configuration and then pick the System and Server tabs to update the tmp and log paths.

    If you get tempted to look at environment settings using kudu tools, you might be tempted to enter the following path instead, C:\DWASFiles\Sites\#1lYourSiteName\VirtualDirectory0\site\wwwroot\tmp. Don’t bother, stick with the path described in the original article.

Skip to main content