I'm a PHP newbie and I'm getting the following error when viewing a form that I created in PHP.
[text]PHP Warning: require_once(C:\Sites\www\custom\templates): failed to open stream: Permission denied in C:\Sites\www\custom\templates\info_request.php on line 3
PHP Fatal error: require_once(): Failed opening required '' (include_path='.;c:\php\includes') in C:\Sites\www\custom\templates\info_request.php on line 3[/text]
I'm on a Windows 2008 Server R1 (64bit) running IIS 7 and PHP through Fast CGI and MySQL server 5.1. Except for this issue PHP is running fine on the server. I'm running PHPMyAdmin and a couple other PHP apps just fine. I confirmed that I have permissions set correctly (have even run php files at the directory and file level under full control to test)
Appreciate any suggestions on how to troubleshoot this issue.
Error: Failed to open stream: Permission denied
Moderator: General Moderators
-
mossberg45
- Forum Newbie
- Posts: 2
- Joined: Sat May 08, 2010 9:36 pm
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Error: Failed to open stream: Permission denied
Have you checked the permissions on the file C:\Sites\www\custom\templates\info_request.php not just the directory?
(#10850)
-
mossberg45
- Forum Newbie
- Posts: 2
- Joined: Sat May 08, 2010 9:36 pm
Re: Error: Failed to open stream: Permission denied
Hi Christopher,
Thanks for responding to my question/issue.
Yes, the IUSR account has Full control in IIS 7 at both the directory level and file level. I've check every file that is called along with the php file (there is a separate config file and javascript file as well) and I've set all to full control.
Based on my knowledge of IIS 7, I'm assuming that it is the IUSR account that runs the scripts. Am I right or wrong on that one?
Thanks for responding to my question/issue.
Yes, the IUSR account has Full control in IIS 7 at both the directory level and file level. I've check every file that is called along with the php file (there is a separate config file and javascript file as well) and I've set all to full control.
Based on my knowledge of IIS 7, I'm assuming that it is the IUSR account that runs the scripts. Am I right or wrong on that one?