Support

Admin Tools

#34488 Joomla 4 log en tmp folders questions

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by jjst135 on Saturday, 06 February 2021 13:28 CST

jjst135

Hi! Were are trying to get familiar with the new Joom version. I have tw questions if I may:

1) Has the default logs folder for Joomla 4 changed from under the public html (root) to below the administrator folder(administrator/logs)? If so would you advise to move the logs folder when we updates sites from J3 to J4?

2) We get a warning in J4: "The PHP temporary folder is not set." This is true, 'upload_tmp_dir' is set to 'no value. We have set the 'path to temp folder' in the J4 configuration to /home/'******/domains/**********/public_html/tmp. This folder is writable. We use this configuration on all sites on the same server in Joomla 3 and we have no warnings like this in J3. We could just ignore it, but why is it there? Any thought?

Thanks!

 

nicholas
Akeeba Staff
Manager

1. The default logs folder changed a while ago. Off the top of my head, I think it was Joomla 3.8 or 3.7. It was indeed moved into the administrator folder. It's a good idea changing it to that location as it no longer conflicts withe some hosts' access log analysers — that was the reason it was moved.

2. Again, this is a message that has existed in Joomla 3 and previous versions. The PHP temporary folder is required for any kind of uploads to work reliably. If it's not set PHP tries to use the default system temporary directory. This may or may not work, depending on other configuration parameters (notably: open_basedir), which user / group it runs under (which can be affected by how PHP and your web server are set up), permissions and so on. In most cases you'd set that folder in a .user.ini (PHP settings override file) which would explain why you don't remember seeing it in your other sites. It's probably something you addressed years ago and completely forgot about.

None of these are new in Joomla 4. You are bumping into them very likely because you apply much more scrutiny and because you might just as well not remember fixing them in Joomla 3 a few years ago.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jjst135

Thanks Nicholas for your explanation on both issues. 

Logs: I have missed that change in J3. Since all our sites are on the same server (our own managed server) and we have not had any issues with the logs folder  in the public root we probably could leave it as is is. Or maybe change them in one go some day. Thanks for explaining why this has changed.

PHP: I will have a closer look at this on how this is set up on our server. We never had any issues with uploads, so I expect no trouble. But maybe setting the the tmp folder in a per use ini would be best and also would eliminate the warning. Thanks for explaining this as well.

 

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!