AsiaTech: Microsoft APGC Internet Developer Support Team

We focus on various troubleshooting plan and solution on IIS web platform and distributed applications

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

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

Rate This
  • Comments 1

 

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.

Server.MapPath

http://msdn.microsoft.com/en-us/library/ms524632(v=VS.90).aspx

 

See you next time!

Wei

Leave a Comment
  • Please add 2 and 3 and type the answer here:
  • Post
  • po cara deu certinho procurei procurei em fim encontrei muito obrigado...

Page 1 of 1 (1 items)