Identify Server Temp & Log Path Joomla!

Usually when developer install Joomla! in localhost, the temp folder path is set to: C:\xampp\htdocs\webFolder/tmp and log path is set to C:\xampp\htdocs\webFolder\administrator/logs. Once the website is live (uploaded to online hosting), the directory path for tmp and log folder need to be modified manually to suit with the hosting folder structure.

Most of the Joomla! developer especially the beginner users, will started to facing this issues whenever they got notification to update extension in Joomla! Control Panel page but it produce an error when they click to update the extension. This happen because of the tmp folder is not setup properly. Joomla! used to download and extract the update package in tmp folder before it move the necessary file to specific extension folder.

The simplest method to identify the folder path in web hosting environment is by creating a file known as mypath.php in your root folder and access it through your domain eg: codethepixel.com/mypath.php and inside mypath.php contain these coding:

<?php print 'My Current path is ' . dirname(__FILE__); ?>


It will print your file path and update your configuration for tmp path at Joomla! Global Configuration page. Usually it should look like this:

Temp Folder: /home/xxx/public_html/webFolder/tmp
Log Folder: /home/xxx/public_html/webFolder/administrator/logs


Once you configure the temporary folder path correct, the update can be done without any issues.