By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,918 Members | 1,816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,918 IT Pros & Developers. It's quick & easy.

failed to open stream: HTTP request failed! HTTP/1.1 401 AccessDenied in

P: n/a
Hi guys

I got a problem
On my IIS server I changed the password for the Internet Guest Account
'IUSR_Machine' and suddenly the PHP part of the intranet stopped
working. - '... failed to open stream: HTTP request failed! HTTP/1.1
401 Access Denied in ...'
My PHP script is very simple:

<?php
$menu_lines = file('C:\WWWdocs\NewIntra\htdocs\page.asp');
echo $menu_lines[3];
$menu_lines = file('http://mese010/intranet/page.asp'); // here is
the error
echo $menu_lines[3];
?>

The output is:
session("dbcotel") = 0
Warning: file(http://mese010/intranet/page.asp): failed to open
stream: HTTP request failed! HTTP/1.1 401 Access Denied in C:\WWWdocs
\tzy.php on line 4

If I open IE with http://mese010/intranet/page.asp I can browse the
page that PHP cannot open
There is something related with the permissions/rights, but I stuck
and cannot solve it.

Any help is appreciated

regards
Yakimo
Aug 4 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi,

Some things to try: You may need to go into IIS and update the
passwords in the virtual directories since you changed the password in
the User Manager. If you have "Allow IIS to Control Password," try
enabling it. Other things would be checking that the anon account has
full permissions to that area and that the account is enabled and not
blocked.

IIS6 Anonymous Access:

http://www.microsoft.com/technet/pro....mspx?mfr=true

Regards,

John Peters

On Aug 4, 12:12 pm, tyaki...@gmail.com wrote:
Hi guys

I got a problem
On my IIS server I changed the password for the Internet Guest Account
'IUSR_Machine' and suddenly the PHP part of the intranet stopped
working. - '... failed to open stream: HTTP request failed! HTTP/1.1
401 Access Denied in ...'
My PHP script is very simple:

<?php
$menu_lines = file('C:\WWWdocs\NewIntra\htdocs\page.asp');
echo $menu_lines[3];
$menu_lines = file('http://mese010/intranet/page.asp');// here is
the error
echo $menu_lines[3];
?>

The output is:
session("dbcotel") = 0
Warning: file(http://mese010/intranet/page.asp):failed to open
stream: HTTP request failed! HTTP/1.1 401 Access Denied in C:\WWWdocs
\tzy.php on line 4

If I open IE withhttp://mese010/intranet/page.asp I can browse the
page that PHP cannot open
There is something related with the permissions/rights, but I stuck
and cannot solve it.

Any help is appreciated

regards
Yakimo
Aug 4 '08 #2

P: n/a
On Aug 4, 7:33*pm, petersprc <peters...@gmail.comwrote:
Hi,

Some things to try: You may need to go into IIS and update the
passwords in the virtual directories since you changed the password in
the User Manager. If you have "Allow IIS to Control Password," try
enabling it. Other things would be checking that the anon account has
full permissions to that area and that the account is enabled and not
blocked.

IIS6 Anonymous Access:

http://www.microsoft.com/technet/pro...ver2003/Librar...

Regards,

John Peters

On Aug 4, 12:12 pm, tyaki...@gmail.com wrote:
Hi guys
I got a problem
On my IIS server I changed the password for the Internet Guest Account
'IUSR_Machine' and suddenly the PHP part of the intranet stopped
working. - '... failed to open stream: HTTP request failed! HTTP/1.1
401 Access Denied in ...'
My PHP script is very simple:
<?php
*$menu_lines = file('C:\WWWdocs\NewIntra\htdocs\page.asp');
*echo $menu_lines[3];
*$menu_lines = file('http://mese010/intranet/page.asp');//here is
the error
*echo $menu_lines[3];
?>
The output is:
session("dbcotel") = 0
Warning: file(http://mese010/intranet/page.asp):failedto open
stream: HTTP request failed! HTTP/1.1 401 Access Denied in C:\WWWdocs
\tzy.php on line 4
If I open IE withhttp://mese010/intranet/page.aspI can browse the
page that PHP cannot open
There is something related with the permissions/rights, but I stuck
and cannot solve it.
Any help is appreciated
regards
Yakimo- Hide quoted text -

- Show quoted text -
Thanks for your reply John Peters
Actually I don't have anonymous access, so I don' have "Allow IIS to
Control Password,"
In my case it is "Integrated windows authentication"

I also have in PHP.INI
allow_url_fopen = On

BTW nothing has changed in PHP - the only thing I changed was that
IUSR account password
Can you tell me how I can see which is the user for my PHP page?
$menu_lines = file('http://mese010/intranet/page.asp');

The strange thing is that if I access the file thru windows path - no
problems,
but if I access via URL - then I cannot

Regards
Yakimo
Aug 4 '08 #3

P: n/a
yakimo wrote:
On Aug 4, 7:33 pm, petersprc <peters...@gmail.comwrote:
>Hi,

Some things to try: You may need to go into IIS and update the
passwords in the virtual directories since you changed the password in
the User Manager. If you have "Allow IIS to Control Password," try
enabling it. Other things would be checking that the anon account has
full permissions to that area and that the account is enabled and not
blocked.

IIS6 Anonymous Access:

http://www.microsoft.com/technet/pro...ver2003/Librar...

Regards,

John Peters

On Aug 4, 12:12 pm, tyaki...@gmail.com wrote:
>>Hi guys
I got a problem
On my IIS server I changed the password for the Internet Guest Account
'IUSR_Machine' and suddenly the PHP part of the intranet stopped
working. - '... failed to open stream: HTTP request failed! HTTP/1.1
401 Access Denied in ...'
My PHP script is very simple:
<?php
$menu_lines = file('C:\WWWdocs\NewIntra\htdocs\page.asp');
echo $menu_lines[3];
$menu_lines = file('http://mese010/intranet/page.asp');//here is
the error
echo $menu_lines[3];
?>
The output is:
session("dbcotel") = 0
Warning: file(http://mese010/intranet/page.asp):failedto open
stream: HTTP request failed! HTTP/1.1 401 Access Denied in C:\WWWdocs
\tzy.php on line 4
If I open IE withhttp://mese010/intranet/page.aspI can browse the
page that PHP cannot open
There is something related with the permissions/rights, but I stuck
and cannot solve it.
Any help is appreciated
regards
Yakimo- Hide quoted text -
- Show quoted text -

Thanks for your reply John Peters
Actually I don't have anonymous access, so I don' have "Allow IIS to
Control Password,"
In my case it is "Integrated windows authentication"

I also have in PHP.INI
allow_url_fopen = On

BTW nothing has changed in PHP - the only thing I changed was that
IUSR account password
Can you tell me how I can see which is the user for my PHP page?
$menu_lines = file('http://mese010/intranet/page.asp');

The strange thing is that if I access the file thru windows path - no
problems,
but if I access via URL - then I cannot

Regards
Yakimo
When you're accessing it through the windows path, you're accessing it
as your current user. When you do it via URL, you're using the IIS user.

I'd suggest you try one of the IIS newsgroups - you're problem is
Windows security, not PHP.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Aug 4 '08 #4

P: n/a
On Aug 4, 10:17*pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
yakimo wrote:
On Aug 4, 7:33 pm, petersprc <peters...@gmail.comwrote:
Hi,
Some things to try: You may need to go into IIS and update the
passwords in the virtual directories since you changed the password in
the User Manager. If you have "Allow IIS to Control Password," try
enabling it. Other things would be checking that the anon account has
full permissions to that area and that the account is enabled and not
blocked.
IIS6 Anonymous Access:
>http://www.microsoft.com/technet/pro...ver2003/Librar....
Regards,
John Peters
On Aug 4, 12:12 pm, tyaki...@gmail.com wrote:
>Hi guys
I got a problem
On my IIS server I changed the password for the Internet Guest Account
'IUSR_Machine' and suddenly the PHP part of the intranet stopped
working. - '... failed to open stream: HTTP request failed! HTTP/1.1
401 Access Denied in ...'
My PHP script is very simple:
<?php
*$menu_lines = file('C:\WWWdocs\NewIntra\htdocs\page.asp');
*echo $menu_lines[3];
*$menu_lines = file('http://mese010/intranet/page.asp');//hereis
the error
*echo $menu_lines[3];
?>
The output is:
session("dbcotel") = 0
Warning: file(http://mese010/intranet/page.asp):failedtoopen
stream: HTTP request failed! HTTP/1.1 401 Access Denied in C:\WWWdocs
\tzy.php on line 4
If I open IE withhttp://mese010/intranet/page.aspIcan browse the
page that PHP cannot open
There is something related with the permissions/rights, but I stuck
and cannot solve it.
Any help is appreciated
regards
Yakimo- Hide quoted text -
- Show quoted text -
Thanks for your reply John Peters
Actually I don't have anonymous access, so I don' have *"Allow IIS to
Control Password,"
In my case it is "Integrated windows authentication"
I also have in PHP.INI
allow_url_fopen = On
BTW nothing has changed in PHP - the only thing I changed was that
IUSR account password
Can you tell me how I can see which is the user for my PHP page?
$menu_lines = file('http://mese010/intranet/page.asp');
The strange thing is that if I access the file thru windows path - no
problems,
but if I access via URL - then I cannot
Regards
Yakimo

When you're accessing it through the windows path, you're accessing it
as your current user. *When you do it via URL, you're using the IIS user.

I'd suggest you try one of the IIS newsgroups - you're problem is
Windows security, not PHP.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================- Hide quoted text -

- Show quoted text -
Thanks Jerry
You are right, but I was thinking that somebody could have met that -
PHP under IIS with anonymous off
Integrated WIndows auth. on

Regards,
Yakimo
Aug 4 '08 #5

P: n/a
yakimo wrote:
On Aug 4, 10:17 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>yakimo wrote:
>>On Aug 4, 7:33 pm, petersprc <peters...@gmail.comwrote:
Hi,
Some things to try: You may need to go into IIS and update the
passwords in the virtual directories since you changed the password in
the User Manager. If you have "Allow IIS to Control Password," try
enabling it. Other things would be checking that the anon account has
full permissions to that area and that the account is enabled and not
blocked.
IIS6 Anonymous Access:
http://www.microsoft.com/technet/pro...ver2003/Librar...
Regards,
John Peters
On Aug 4, 12:12 pm, tyaki...@gmail.com wrote:
Hi guys
I got a problem
On my IIS server I changed the password for the Internet Guest Account
'IUSR_Machine' and suddenly the PHP part of the intranet stopped
working. - '... failed to open stream: HTTP request failed! HTTP/1.1
401 Access Denied in ...'
My PHP script is very simple:
<?php
$menu_lines = file('C:\WWWdocs\NewIntra\htdocs\page.asp');
echo $menu_lines[3];
$menu_lines = file('http://mese010/intranet/page.asp');//hereis
the error
echo $menu_lines[3];
?>
The output is:
session("dbcotel") = 0
Warning: file(http://mese010/intranet/page.asp):failedtoopen
stream: HTTP request failed! HTTP/1.1 401 Access Denied in C:\WWWdocs
\tzy.php on line 4
If I open IE withhttp://mese010/intranet/page.aspIcan browse the
page that PHP cannot open
There is something related with the permissions/rights, but I stuck
and cannot solve it.
Any help is appreciated
regards
Yakimo- Hide quoted text -
- Show quoted text -
Thanks for your reply John Peters
Actually I don't have anonymous access, so I don' have "Allow IIS to
Control Password,"
In my case it is "Integrated windows authentication"
I also have in PHP.INI
allow_url_fopen = On
BTW nothing has changed in PHP - the only thing I changed was that
IUSR account password
Can you tell me how I can see which is the user for my PHP page?
$menu_lines = file('http://mese010/intranet/page.asp');
The strange thing is that if I access the file thru windows path - no
problems,
but if I access via URL - then I cannot
Regards
Yakimo
When you're accessing it through the windows path, you're accessing it
as your current user. When you do it via URL, you're using the IIS user.

I'd suggest you try one of the IIS newsgroups - you're problem is
Windows security, not PHP.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================- Hide quoted text -

- Show quoted text -

Thanks Jerry
You are right, but I was thinking that somebody could have met that -
PHP under IIS with anonymous off
Integrated WIndows auth. on

Regards,
Yakimo
I doubt there are many here using IIS. A few, but most are apache, and
I suspect most of those are on linux.

Those who are running IIS probably keep it as the default for local
testing or are running on shared servers and cannot change it.

It's why I suggested an IIS newsgroup - they're all using IIS there :-)

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Aug 4 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.