• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Website returning "File not found." message instead of serving index.php content

gennolo

Basic Pleskian
After upgrading a Centos 7 VM to latest Plesk Obsidian,
a couple of websites started returning an nginx "File not found." message when browsing certain subdirectories
that should serve an "index.php" file (like mydomain.com/mysite/myfolder ).

error_log shows :
AH01071: Got error 'Primary script unknown\n'
at each web request.

When browsing
mydomain.com/mysite/myfolder/index.php (including index.php)
page is working OK

After some investigation, it looks like it has something to do with this .htaccess rule in the folder :
RewriteRule .? %{ENV:BASE}/index.php [L]
which was ok before, and for some reason is ignored now.

Domain configuration is set to FPM served by Apache / PHP 7.1 with Plesk standard settings..
I already tried a "plesk repair web" and checked domain permissions, tried to switch PHP versions etc..
Any help will be really appreciated :)
 
See if this works for you:


It worked fine for me, disabled wp-toolkit
 
Back
Top