</> Code The Pixel

Identify Server Temp & Log Path Joomla!

Asyraf Wahi Anuar - May 05, 2018

Estimated reading time: 1 minute, 13 seconds

When a web developer installs Joomla! in localhost, the temp folder path is set to C:\xampp\htdocs\webFolder\tmp and the log path is set to C:\xampp\htdocs\webFolder\administrator\logs. Once the website is live (uploaded to the live webserver), the directory path for tmp and log folder need to be modified manually to suit the hosting folder structure.

Some web developers or website administrators, start to face upload/update issues whenever they got a notification to update the extension on Joomla Control Panel page but it produces an error when they click to update the extension. This happens because the tmp folder is not set up properly. Joomla! used to download and extract the update package in tmp folder before it moves the necessary file to a specific extension folder.

The simplest method to identify the folder path in a web hosting environment is by creating a file known as mypath.php in your root folder and accessing 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.


Cite this article (APA 6th Edition)

Popular
CakePHP 4 Print PDF Using CakePDF
May, 17 2020
CakePHP 4 Authentication Using Auth...
May, 14 2020
CakePHP 4 Sending Email
February, 01 2022
CakePHP 4 jQuery Date Time Picker
October, 01 2018
CakePHP 4 Export To CSV
May, 29 2020
CakePHP 4 Authentication Using...
May, 11 2020
CakePHP 4 Find, Sort & Count
June, 02 2020
Share
Sharing Link
Click the icon to share