Knowledgebase
How to enable parent paths
Posted by zz-James Moir on 21 June 2016 04:05 PM

Issue

Your script requires parent paths or you receive the following error when using ASP.

Active Server Pages, ASP 0131
Disallowed Parent Path
The Include file '../<filename.ext>' cannot contain '..' to indicate the parent directory.
/<path>/<filename.ext>, line <number>

Cause

This error occurs because parent paths are disabled for the website or application and relative parent paths are used in include statements, as the example shows below:

<!--#include file="../<filename.ext>"-->


Solution

Parent Paths are turned off by default but can be enabled from within the Plesk Control Panel by following the steps below.

  1. Login to the Plesk Server Administrator.
  2. Select the domain name you wish to change the permissions on.
  3. Click on the 'Web Directories' icon
  4. Click the 'Preferences' icon
  5. Tick 'Allow to use parent paths' to enable parent paths