Plesk

WordPress Dashboard can not be opened: You do not have permission to view this directory or page

Symptoms

Cause

The .user.ini file contains additional PHP settings.
There are wrong paths for open_basedir option that overrides the PHP settings set in Plesk.

Resolution

  1. Connect to the server via RDP

  2. Go to %plesk_vhosts%example.comhttpdocs

  3. Open the .user.ini file in any text editor

  4. Adjust the value of the open_basedir option

    Note: If it is not needed the file can be safely removed.