Stuck with the error, Plesk Access to the path is denied? We can help you.
When we access the .aspx file on the Windows server with the Plesk control panel or when the backup runs in the server, this error might occur.
As part of our Server Management Services, we assist our customers with several Plesk queries.
Today, let us see how to resolve this error in different instances.
Plesk: Access to the path is denied
Generally, this error is due to incorrect permissions. The error message is as follows:
Access to the path XXXX is denied
Moving ahead, let us see few instances where this error occurs.
While accessing .aspx file on Windows server with Plesk control panel
For instance, when we access the URL, http://example.com/testfolder/test.aspx produces the error:
Access to the path %plesk_vhosts%example.com\httpdocs\testfolder is denied
If the required system user and/or permissions do not configure properly for the directory %plesk_vhosts%example.com\httpdocs\testfolder in Plesk, it might cause this error.
In order to solve this, our Support Techs suggests following the below steps:
- Connect to the server via RDP.
- Then repair permissions for the virtual host directory for the domain (example.com).
If this does not help, set the permissions for the subfolder manually:
- Log in to Plesk.
- Go to Domains > example.com > Virtual Directory > test folder > Directory Access Permissions and ensure necessary user rights.
- If the application pool group is missing and it is not possible to add it via Plesk, add it directly on the file system using Windows functionality.
- The name of the pool group should be IWPG_<sys_user>, where <sys_user> should replace with the actual system user of the subscription.
When Plesk backup completes with warnings
We can see that the backup completes with warnings:
WARNING: (domain object ‘example.com’) [e4404190-b0b5-425e-a309-500e258cfe97]: Unable to get attributes of the file C:\Inetpub\vhosts\example.com\httpdocs\img\originais\photo.jpg: Access is denied. The file will not be archived.
In addition, the following error is seen in %plesk_dir%admin\conf\php_error.log:
psacontentfile.FileAccessException: Can not open for reading file “C:/Inetpub/vhosts\example.com\httpdocs/file.jpg”. Access to the path ‘C:\Inetpub\vhosts\example.com\httpdocs/file.jpg’ is denied.
System user of a subscription does not have access to this file:
PS Get-Acl C:\Inetpub\vhosts\example.com\httpdocs\file.jpg | Format-List Path : Microsoft.Powershell.Core\FileSystem::C:\Inetpub\vhosts\example.com\httpdocs\file.jpg Owner : WIN-TESTWM\S-1-5-21-2700000000-1230000000-1950000000-1084 Group : WIN-TESTWM\None Access : NT AUTHORITY\SYSTEM Allow FullControl Audit : <…>
OR
Website prompting for credentials when the dedicated application pool is enabled in Domains > example.com > Dedicated IIS App pool for website > Switch on. Failed requests tracing shows that there are Access is denied records for some domain’s files.
This can be due to wrong permissions
In order to solve this, our Support Techs suggest the following steps:
- Connect to the server via RDP.
- Open PowerShell.
- Then repair permissions for the subscription:
PS plesk repair –repair-webspace-security -all-filesystem-objects -webspace-name example.com
[Still, stuck with the error? We can help you fix]
Conclusion
In short, The error occurs when we access the .aspx file on the Windows server with the Plesk control panel or when the backup runs in the server.
0 Comments