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

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
batman93
Posts: 18
Joined: Thu Sep 20, 2018 3:02 pm

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

Post 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
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

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

Post 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?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
batman93
Posts: 18
Joined: Thu Sep 20, 2018 3:02 pm

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

Post by batman93 »

I checked with the hosting and it's ok on their side....
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

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

Post by Klemen »

If you login to 2.7.6 and go to Settings, can you change and save settings?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
batman93
Posts: 18
Joined: Thu Sep 20, 2018 3:02 pm

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

Post 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-)
batman93
Posts: 18
Joined: Thu Sep 20, 2018 3:02 pm

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

Post 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...
batman93
Posts: 18
Joined: Thu Sep 20, 2018 3:02 pm

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

Post 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-)
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

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

Post 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?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
batman93
Posts: 18
Joined: Thu Sep 20, 2018 3:02 pm

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

Post by batman93 »

I already tried ... i'll try again...
batman93
Posts: 18
Joined: Thu Sep 20, 2018 3:02 pm

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

Post 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
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

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

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
batman93
Posts: 18
Joined: Thu Sep 20, 2018 3:02 pm

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

Post by batman93 »

Oh thanks !!!
Post Reply