hi,
im a newbie developer.. i developer a website in php n hosted it..

when im trying to access it i get an error..

You do not have permission to view this directory or page due to the access control list (ACL) that is configured for this resource on the Web server.

HTTP Error 401.3 - Unauthorized: Access is denied due to an ACL set on the requested resource.
Internet Information Services (IIS)

Dani AI

Generated

As hinted, a 401.3 from IIS almost always means the web server process does not have the required NTFS permissions to read the site files. Because cannot access the IIS host, the fastest route is to send a short, clear checklist to the hosting support and ask them to verify each item.

  • Confirm which Windows identity the site runs as (Application Pool identity like IIS AppPool\<AppPoolName>, IUSR, or a custom account).
  • Ensure that identity has Read + Execute (and Read) on the site folder and all files. Prefer granting rights to the app-pool principal or the IIS_IUSRS group rather than giving broad “Everyone” permissions.
  • If file ownership or inheritance is broken (files uploaded by FTP under a different account), reset inheritance or set ownership to the proper user.
  • Check web.config for <authorization> rules that might deny anonymous users, and verify IIS Authentication settings (Anonymous should be enabled for a public PHP site).
  • Ask the host to check IIS logs for 401.3 entries and Windows Security/ System event logs; enabling Failed Request Tracing (FREB) will show which account was denied.

Provide this copy-paste block to the host so they can run it (adjust the path and pool name):

icacls "C:\path\to\site" /grant "IIS AppPool\YourAppPoolName":(OI)(CI)RX /T
--or--
icacls "C:\path\to\site" /grant IUSR:(OI)(CI)RX /T

For a quick local test, ask them to place a plain test.txt and a tiny test.php (<?php phpinfo(); ?>) in the site root to see whether static files or the PHP pipeline are affected. Microsoft documents this error and the NTFS cause here: .

Recommended Answers

All 3 Replies

check with your IIS settings

hi network18..

im running the program on my domain,

i cant check the IIS setting of my domain..

only my hosting company can do that..

is there another way i cud solve it ?

The folder which contains the website pages also needs to be allowed to the IUSR_ account as well - this can be done by right clicking on the folder and selecting properties - then click on the Security tab and work from there.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.