PHP only via nginx

Most of our Plesk servers use Nginx and Apache 2.4 to provide web services.  Some servers may have a different web server and that would be listed in your plan's details or its name. 

If you want to use only nginx for website requests, do the following:

  1. In Plesk, go to "Apache and Nginx" icon on the Websites and Domains -> the domain -> list of icons
  2. On the Apache and Nginx Settings page, change the following settings:
    1. Nginx Settings:
      1. Proxy mode to off
  3. On the apache and nginx settings page, click "OK" at the bottom of the page
  4. On the Websites and domains page in Plesk, find "PHP settings" for the domain and click it
  5. On the PHP Settings page, change the following settings:
    1. Select "FPM Application served by nginx"
    2. PHP version if the one selected does not match the one you need
    3. Any other php settings
      1. It is recommended to have the "opcache" to on
  6. Click "OK" on the php settings page to save and then wait a few minutes for the changes to load

NOTE: It is presumed that the site will use a default index file for the main page and no other location blocks are required.  If your application requires additional location blocks or other nginx settings, please contact support.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Force HTTPS - Plesk

To force visitors to use https when visiting your site, do the following: Login to the Plesk...

Setup Let's Encrypt

Using https for websites is important for not only keeping information safe from prying eyes but...

Install Wordpress

Installing Wordpress within Plesk is as easy as clicking a few buttons,  Lets get started by...