Page 1 of 1

Can't open file hesk_settings.inc.php for writing -CHMOD error ?

Posted: Thu Sep 20, 2018 3:06 pm
by batman93
Script URL:
Version of script: update 276 - 282
Hosting company: 3iX
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
I tried to update mercion 276 to 282 as I usually do.
This time I have a problem: i get a message telling me :
Can't open file hesk_settings.inc.php for writing. Please CHMOD this file to 666 (rw-rw-rw-)

I confirm that the CHMOD is 666.
So, what is wrong ?

Thanks !

Marc

Re: Can't open file hesk_settings.inc.php for writing -CHMOD error ?

Posted: Thu Sep 20, 2018 5:41 pm
by Klemen
You will need to check with your hosting company (dive into the logs) to see what's happening. If it's not a permissions issue, maybe something else is blocking access to the file?

Re: Can't open file hesk_settings.inc.php for writing -CHMOD error ?

Posted: Thu Sep 20, 2018 5:53 pm
by batman93
I checked with the hosting and it's ok on their side....

Re: Can't open file hesk_settings.inc.php for writing -CHMOD error ?

Posted: Thu Sep 20, 2018 6:00 pm
by Klemen
If you login to 2.7.6 and go to Settings, can you change and save settings?

Re: Can't open file hesk_settings.inc.php for writing -CHMOD error ?

Posted: Thu Sep 20, 2018 6:33 pm
by batman93
Good point!
No, I cannot, I have the same error message.

Can't open file hesk_settings.inc.php for writing. Please CHMOD this file to 666 (rw-rw-rw-)

Re: Can't open file hesk_settings.inc.php for writing -CHMOD error ?

Posted: Thu Sep 20, 2018 7:04 pm
by batman93
Partially solved.

The problem is, I have 2 domains on my server using PHP, one requested PHP 5.6 and the other PHP 7.1
Last week I changed both to 7.1 (I thought the latest version would be "better") and the one who wanted 5.6 - HDesk- and didn't work fully!

So now the "Settings" can be changed, but I have the same issue as I try tu upgrade...

Re: Can't open file hesk_settings.inc.php for writing -CHMOD error ?

Posted: Thu Sep 20, 2018 7:20 pm
by batman93
False alarm...

Same issue ...
NOT solved at all ...

I tried a "fresh" installation and in the installation process, once the DB parameters are correctly input, i have ... the same error message again.
Can't open file hesk_settings.inc.php for writing. Please CHMOD this file to 666 (rw-rw-rw-)

Re: Can't open file hesk_settings.inc.php for writing -CHMOD error ?

Posted: Fri Sep 21, 2018 6:19 am
by Klemen
Maybe time to check with the hosting company again? Something IS blocking write access to the hesk_settings.inc.php file, perhaps some sort of "security" software?

Re: Can't open file hesk_settings.inc.php for writing -CHMOD error ?

Posted: Fri Sep 21, 2018 1:40 pm
by batman93
I already tried ... i'll try again...

Re: Can't open file hesk_settings.inc.php for writing -CHMOD error ?

Posted: Fri Sep 21, 2018 5:17 pm
by batman93
A quick question.
The file hesk_settings.inc.php contains the database password.
Putting the Chmod at 666 makes that everyone may read it right ?
Is that normal ?

Marc

Re: Can't open file hesk_settings.inc.php for writing -CHMOD error ?

Posted: Fri Sep 21, 2018 7:07 pm
by Klemen
The DB password needs to be stored somewhere, all apps have some kind of "config" file with it stored.

Not everyone can read it, no, even at 666. To read the file contents an attacker would have to have file access to your server. If someone has file access to the server, they can read all your files anyway.

Re: Can't open file hesk_settings.inc.php for writing -CHMOD error ?

Posted: Fri Sep 21, 2018 8:41 pm
by batman93
Oh thanks !!!