Applicable to:
- Plesk for Windows
Symptoms
When loading a .php / .asp page in a web browser, it fails to load with on of the following error messages:
PLESK_INFO: 404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
PLESK_INFO: HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration.
If the page is a script, add a handler.
If the file should be downloaded, add a MIME map.
Most likely causes:
It is possible that a handler mapping is missing. By default, the static file handler processes all content.
The feature you are trying to use may not be installed.
The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.)
If ASP.NET is not installed.
Cause
Handler mapping for PHP / ASP is not configured.
Resolution
-
Connect to your Plesk server via RDP.
-
Start Internet Information Services (IIS) Manager at Windows Start > All Programs > Windows Administrative Tools.
-
In IIS Manager, expand SERVERNAME > Sites > example.com > Handler Mappings:
-
Click Add Module Mapping... and fill in the fields:
-
Request path:
PLESK_INFO: *.php
-
Module:
PLESK_INFO: FastCgiModule
-
Executable:
a. Click on the icon and navigate to
%plesk_dir%Additional\PleskPHPXX
folder, where XX is a PHP version used by domain, e.g. PleskPHP8.3. It can be obtained in Plesk at Domains > example.com > PHP Settings.b. Switch from
(*.dll)
to(*.exe)
.c. Choose
php-cgi.exe
and click Open.Example:
PLESK_INFO: "C:\Program Files (x86)\Plesk\Additional\PleskPHP83\php-cgi.exe"
-
Name:
PLESK_INFO: PHP-php
-
-
Click Request Restrictions...:
5.1. On the Mapping tab, check Invoke handler only if request is mapped to and select File or folder.
5.2. On the Verbs tab, select One of the following verbs and specify GET,HEAD,POST:
-
On the Access tab, select Script.
-
Click OK > OK > Yes.
-
Connect to your Plesk server via RDP.
-
Start Internet Information Services (IIS) Manager at Windows Start > All Programs > Windows Administrative Tools.
-
In IIS Manager, expand SERVERNAME > Sites > example.com > Handler Mappings:
-
Click the Add Script Mapping... and fill in the fields:
-
Request path:
PLESK_INFO: *.asp
-
Executable:
PLESK_INFO: %windir%\system32\inetsrv\asp.dll -
Name:
PLESK_INFO: ASPClassic
-
-
Click Request Restrictions...:
5.1. On the Mapping tab, check Invoke handler only if request is mapped to and select File or folder.
5.2. On the Verbs tab, select One of the following verbs and specify GET,HEAD,POST:
5.3. On the Access tab, select Script.
-
Click OK > OK > Yes.
Comments
0 comments
Please sign in to leave a comment.