Skip to content
CODE THE PIXEL
Joomla!

Identify Server Temp & Log Path Joomla!

Asyraf Wahi Anuar Updated 2 min read

Identify Server Temp & Log Path for Joomla!

This tutorial may be outdated

It was last reviewed 4 years ago. Some steps may differ in newer versions.

Tech stack

  • Joomla!

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:

mypath.phpPHP
<?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:

HTML
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.

Did this tutorial help?

247 readers found this helpful

Comments

No comments yet. Questions about this tutorial are welcome here: the answer helps the next reader too.

Leave a comment

Markdown works: `code`, ``` blocks, **bold**, links.

First comments are reviewed before they appear.

Joomla!

Upgrade from Joomla 4 to Joomla 5: A Step-by-Step Tutorial

If you're already on Joomla 4.4, upgrading to Joomla 5 is a straightforward process, not a full migration. This guide walks you through the essential steps to ensure a smooth transition.

3 min read

CakePHP

CakePHP 4 Log User Authentication Using Component

This tutorial will discuss how to create a user activities log using the CakePHP component. The basic activities that will be logged are the authentication method which includes the login and logout details.

3 min read

CakePHP

CakePHP 4 ActivityLogger plugin

Activity logging is one of the very useful features in web applications since it can provide a track of activities in the web content. CakePHP Activity Logger Plugin enables the developer or administrator to log the activities and changes to the web content.

3 min read