Support

Admin Tools

#14509 configuration.php always auto changed to 444 from 644

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 Friday, 04 January 2013 04:24 CST

user6558

Mandatory information about my setup:

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

Description of my issue:

I found that my configuration.php always auto changed to 444 from 644 even I manually change it to 644. when saving setting for configuration.php in joomla config, the saving does not work, and I have to save to 2 or 3 times to make it work. 

Is this caused by admin tools pro?

nicholas
Akeeba Staff
Manager

No, it's caused by Joomla!. IIRC, it happens only on Joomla! 1.5. Sometime around 1.6 or 1.7 (I don't remember exactly) this behaviour was considered a bug and got fixed.

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!

user6558

I am running laterest ver of joomla 2.5, and somehow having this issue. How can I fix this

replace all joomla files with new download?

nicholas
Akeeba Staff
Manager

Since this is not an issue with my software I would rather not reply. The simple reason being that I have no idea about your site and server setup and my reply could be wrong. I can only provide accurate support for the software I've built and know how it works. I think the best approach in your case would be raising this question in the official Joomla! forum.

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!

user6558

http://forum.joomla.org/viewtopic.php?p=2728827

this is not a bug,but a feature I think.

nicholas
Akeeba Staff
Manager

IMHO, it's a bug.

0444 means: owner user has read permissions, owner group has read permissions, everybody else has read permissions.

0644 means: owner user has read and write permissions, owner group has read permissions, everybody else has read permissions.

Both permissions allow EVERYBODY to read the contents of configuration.php. Depending on your server configuration this is a feature (shared craphosts) or a glaring security hole (properly set up server with isolated users). The first set of permissions doesn't allow the site owner to edit the configuration while the second allows him to do it. In other words 0444 permissions deal with no security issue whatsoever. No hacker will write to the configuration.php file (it's stupid and futile). They will instead read it so that they can get access to your database (= modify your content = profit for the hacker/spammer!) or even get access to your FTP account (= full access to your site's files = spam static HTML pages = really effin' huge profit).

So, no, 0444 permissions is not a feature. It's a bug introduced by those who think they understand web security. Secure permissions would be 0600 but only if the site was running under a dedicated user, e.g. suPHP or mod_itk was in use. Otherwise the permissions should be left alone and the site owner should decide what's the best combination. Simple and secure.

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!

user6558

Today when I login into the joomla backend, it takes so long to successully load the backend interface, and in the mean time, the mysql process cpu will jump to 100%.

when I try to run admin tool pro to optimise db table, I even got internal server error 500. Here is the error log:

[Fri Jan 04 10:29:14 2013] [warn] [client 66.249.77.173] mod_fcgid: read data timeout in 45 seconds
[Fri Jan 04 10:29:14 2013] [error] [client 66.249.77.173] Premature end of script headers: index.php
[Fri Jan 04 10:30:08 2013] [warn] [client 1.202.219.8] mod_fcgid: read data timeout in 45 seconds
[Fri Jan 04 10:30:08 2013] [error] [client 1.202.219.8] Premature end of script headers: index.php
[Fri Jan 04 10:30:09 2013] [warn] [client 202.175.116.55] mod_fcgid: read data timeout in 45 seconds, referer: http://mysite/administrator/index.php?option=com_admintools&view=cpanel
[Fri Jan 04 10:30:09 2013] [error] [client 202.175.116.55] Premature end of script headers: index.php, referer: http://mysite/administrator/index.php?option=com_admintools&view=cpanel
[Fri Jan 04 10:30:09 2013] [warn] [client 66.249.77.169] mod_fcgid: read data timeout in 45 seconds
[Fri Jan 04 10:30:09 2013] [error] [client 66.249.77.169] Premature end of script headers: index.php

It seems something wrong the the backend, and I don't know if this is related to the config permission issue. Do you know what is causing the internal server error?

nicholas
Akeeba Staff
Manager

You are getting timeout errors, most likely because your database takes an exorbitant amount of time to respond. You can either try fixing it yourself using phpMyAdmin or ask your host to run a check and optimise on your database tables. I'd recommend asking your host to do that for you.

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!

user6558

what is this error? 

 Premature end of script headers: index.php

user6558

Is this related to my new setting: disable DNS Hostname Lookup mysql?

nicholas
Akeeba Staff
Manager

Please ask your host for support with this issue. As I told you you are getting a timeout error. I can't help you with that. Only someone with administrator (root) privileges on your server and who's familiar with the server's setup can possibly help you.

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!