Support

Admin Tools

#11614 admin cache dirs and files are not cleared by maintenance/clear cach/administrator because of 99 "no owner" rights

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 nicholas on Monday, 19 March 2012 06:08 CDT

user60273
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? yes
Have I searched the tickets before posting? yes
Have I read the documentation before posting (which pages?)? yes
Joomla! version: 2.5.3
PHP version: 5.3.10
MySQL version: 5.1.61
Host: (optional, but it helps us help you)
Admin Tools version: 2.2.1

Description of my issue:
When I click site/maintenance/clear-cache/administrator following maps with files stay and cannot be removed (ownership is 99 "no ownership"):
_system, com_modules, com_plugins
Changing permissions is not possible. When I remove these maps and files directely on the server, they are recreated immediately.
I have a /public_html/.htaccess file and a /public_html/joom25x/.htaccess file in the map of the site. These htaccess-files are different.
Please advice.
Thank you.

nicholas
Akeeba Staff
Manager
Do you get an error stating that these can not be removed, or do you deduct that information because these directories exist after running the cleanup?

In the latter case, Admin Tools did remove those cache directories, but they are created afresh by Joomla! during the next page load. This is part of the normal operation of Joomla!. The only way to have Joomla! not create them is to turn off caching in your Global Configuration, but this may have an adverse effect in your site's performance.

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!

user60273
I did deduct that because directories exist after running cleanup and because these maps and files are the only ones on my site with owner 99.
If this is normal, then you are right. You can then close this ticket and thank you for very fast reply.

PS. when I do a restore using kickstart, all maps and files are 99 owned.
Site dit not work. Had to restore it by using alternative in cpanel.
Best regards

nicholas
Akeeba Staff
Manager
User with ID 99 seems to be the "nobody" user account on your system. Please note that "nobody" is a username. Unlike what you said, it doesn't mean "no owner". There is always a special user called "nobody" and a group called "nogroup". These are a user and a group which get denied any administrative privilege. It's the user and group under which most services –including Apache, your web server– run. Since you have not enabled Joomla!'s FTP feature in your site's Global Configuration, the cache files/directories are created by writing directly to them. Joomla! runs inside PHP, PHP runs inside Apache, therefore all three run under user 99 ("nobody"), ergo the ownership of the files & directories is user 99.

Kickstart works on the same way. By default, it uses direct file writes. Kickstart runs inside PHP, PHP runs inside Apache, ergo all three run under user 99. Writing directly to files causes all extracted files/directories to be owned by user 99. And that's exactly why there is the "Use FTP" extraction method. Please read the documentation for more information. While you're at it, read Akeeba Backup User's Guide "Security Information" chapter. You may have to read it a few times to let that information sink in. In fact, you ought to read that chapter. This is web server administration 101, you really need to know all of that stuff.

See? It all makes sense now.

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!

user60273
I'm using joomla since the very beginning. But your explenation is the best and complete ever regarding map ownerships.
Thank you very much.
I will certainly try to use your backup-pro the way it should.
For your information and to my surprise, your 2 programs did install perfectely from the first time. Certainely worth its money.

PS. I'm (always)using Joomla!'s FTP feature and this works fine.

Last question: can you tell me what exactely has to be in the .htaccess file?
The homepage is located in www.mysite.be/joom25x/
And where to put this file: root of mysite of root of subdirectory?

nicholas
Akeeba Staff
Manager
You're welcome! I'm glad I could explain that - this topic seems to be the bain of the existence of many a web site owners :)

Regarding the .htaccess file, the easy explanation is the best. A typical .htaccess file can be produced by renaming the htaccess.txt file which ships with Joomla! to .htaccess and leaving it in your site's root. If you are interested in security, you can use Admin Tools' .htaccess Maker to create a .htaccess file which will lock down your site as much as possible. Please, please read the documentation before and while using the .htaccess Maker. Applying it will certainly break something (setting it up is a matter of trial and error) and you have to be familiar with the documentation's instructions to resolve any issues. If you follow the doc instructions it's very easy and shouldn't take more than 30 minutes.

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!

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!