Problems when I update settings

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
chuckwagon
Posts: 5
Joined: Thu Apr 26, 2007 6:00 pm

Problems when I update settings

Post by chuckwagon »

I have been using the previous version for months and now I love the new features but I want to do a seperate install and customize it and then migrate over but still having issues - see below


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

BUT im using IIS 6.0 and all my permissions are fine - EXCEPT I cannot get this ONE file to have the correct permissions.....IM not sure what Im doing wrong on this.

I even tryed to upload to a site, change the CHMOD there and download it back and that didnt work.....

Also get this error at the bottom of my page if this is any consultation:

PHP Notice: Undefined index: s_secimg_use in D:\helpdesk2\admin_settings_save.php on line 68 PHP Notice: Undefined index: s_custom_place in D:\helpdesk2\admin_settings_save.php on line 99


Thanks for any help!
The wind will blow and I will still be here scratching my head trying to figure out this stuff....
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I have almost 0 experience with IIS, but if the script can't write to the file then it doesn't seem to have permission to do it. CHMOD doesn't work on Windows servers, you need to be able to set permissions elsewhere.

Here's a quote from an e-mail I got from beta tester:
From here I am not sure which settings worked because I was frustrated but Windows users will need to go into the NTFS file settings (Security Tab) and give the users listed at least read, write, and modify access. If I had to guess on which account, it would be the “Interactive” account but I did all of them listed…
I'm not sure which account PHP scripts run under (I found IUSR account on Google, see below), but this account needs to have Read, Write and Modify rights to the hesk_settings.inc.php file.


I just googled a little and here are two more hints I found:
1. Give IUSR account full control to the settings file
2. If your PHP is run as CGI, try running it as ISAPI


But like said, if PHP can't write to the file then it MUST be a permissions problem, it's not something a different PHP code can solve.

If everything else fails there you can still try to manually edit settings inside the file. Not that fancy, but an option nevertheless.

Oh, and the PHP notice should be gone if you have Debug mode set to off and is normal.
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
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Did some more reading, seems like there's a bug with Windows/PHP that can return file setting as writable when in fact it's read-only. Upload this file to the hesk folder, open in your browser and see what it says:
http://www.phpjunkyard.com/extras/windows_writable.zip
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
chuckwagon
Posts: 5
Joined: Thu Apr 26, 2007 6:00 pm

Figured out the issue

Post by chuckwagon »

For some reason within IIS6, PHP and MYSql when you turn Debugging ON, the messages go away - weird that the opposite happens - fixed that...

PERMISSIONS:


IN IIS6, it inherits its permissions from windows file system, I had to give my users: WEBMAIL\Users write and modify access - This wasnt the case with your previous version BUT you didnt have the settings file to write to within the admin panel which is nice....

Took me a while but I figured it out.

Thanks for responding
The wind will blow and I will still be here scratching my head trying to figure out this stuff....
chuckwagon
Posts: 5
Joined: Thu Apr 26, 2007 6:00 pm

Post by chuckwagon »

Ran the file - This is what it says

Settings file IS writable
The wind will blow and I will still be here scratching my head trying to figure out this stuff....
chuckwagon
Posts: 5
Joined: Thu Apr 26, 2007 6:00 pm

Also......

Post by chuckwagon »

How do you install GD Library so I can get the SecIMG working?
IIS6, PHP 4.4.6
The wind will blow and I will still be here scratching my head trying to figure out this stuff....
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

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

Post by Klemen »

So it works now?
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
chuckwagon
Posts: 5
Joined: Thu Apr 26, 2007 6:00 pm

Post by chuckwagon »

Now it works perfectly!!!!

What a day!
The wind will blow and I will still be here scratching my head trying to figure out this stuff....
Post Reply