Script URL: Internal Site
Version of script: 2.2
Hosting company: Internal Site
URL of phpinfo.php: Internal Site - Copying Results in Post
URL of session_test.php: Both session test work without issue
What terms did you try when SEARCHING for a solution:
1. PHP Fatal Error Failed Opening Required hesk_settings.inc.php
2. Permission Settings IIS PHP
3. hesk_settings.inc.php
4. Permissions hesk_settings.inc.php
Write your message below:
Windows Server 2003/2008 environment. We have 2 domains wishing to use the help desk software (Domain A and Domain B). Domain A has no issue accessing the help desk site. Domain B asks for Username/Password for access to the help desk site. If Domain A credentials are used access is granted. If Domain B credentials are used Username/Password is requested but when entered the following error is displayed:
PHP Fatal error: require() [function.require]: Failed opening required './hesk_settings.inc.php' (include_path='.;C:\php\pear;c:\php\includes') in C:\Inetpub\wwwroot\hesk20\index.php on line 39
Permissions are set for Domain A at wwwroot folder for read & execute, list folder contents, & read
Permissions are set for Domain B at hesk20 folder for read & execute, list folder contents, & read
Still sounds like a permissions issue with Domain B but I cannot find anything out of place.
Thanks in advance!
PHPInfo: (REMOVED)
Cross Domain Access
Moderator: mkoch227
Re: Cross Domain Access
How about if you try adding C:\Inetpub\wwwroot\hesk20 to the include_path setting in your php.ini file?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
-
- Posts: 4
- Joined: Tue Mar 13, 2012 4:20 pm
Re: Cross Domain Access
I'll give that a try. I can't restart IIS at this time but will update with results when I can.
-
- Posts: 4
- Joined: Tue Mar 13, 2012 4:20 pm
Re: Cross Domain Access
php.ini modified to add full path as requested and IIS restarted. Verified include_path was updated via phpinfo.php tool. Still getting the "failed opening required" on ./hesk_settings.inc.php file. This only happens when trying to access HESK from Domain B with Domain B credentials. HESK can be accessed from Domain B with Domain A credentials. HESK works perfectly in Domain A.
Re: Cross Domain Access
It does look like a permission error, because if domain B couldn't find the file you would also get a PHP Warning saying "failed to open stream: No such file or directory in ...". You only get a a Fatal error "Failed opening required ..." so the file is there, but cannot be opened.
I'm afraid I can't be of much help here, as I don't have experience with setting up IIS servers. Sorry!
I'm afraid I can't be of much help here, as I don't have experience with setting up IIS servers. Sorry!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Cross Domain Access
Oh, one "dirty" hack you could try is to change HESK_PATH definitions in all files to the full server path.
Instead of you could try
Instead of
Code: Select all
define('HESK_PATH','./');
Code: Select all
define('HESK_PATH','C:\Inetpub\wwwroot\hesk20\');
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
-
- Posts: 4
- Joined: Tue Mar 13, 2012 4:20 pm
Re: Cross Domain Access
Problem solved - wwwroot folder permissions under IIS needed to have Domain B accounts added to it and given "list" access. Once that was done everything starting working cross-domain wise. Thanks for the help you could give I'm sure it pointed me in the right direction.