Article ID: 120803, created on Mar 30, 2014, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.0 for Windows
  • Plesk 11.5 for Windows


Different PHP versions are used on the same domain. One of our customers have defined PHP 5.4 version for their hosting account in our server. For any reason the customer is able to use different PHP versions on different directories. For example, if you check you can check that's PHP 5.4.* configured. But for the same website (different directory) you can check that another PHP version is used if you go to

How can this happen? I want to use only PHP 5.4 for the domain.


Different PHP version is configured in the virtual directory (for Windows only).

A virtual directory is a link to an existing physical directory that is present on the server's hard disk. Virtual directories can have a number of specific settings like custom ASP.NET configuration, access permissions, and protection with a password.

Because any virtual directory can have its own settings, including customized ASP.NET configuration, virtual directories are very useful in setting up your web applications, especially those written in ASP.NET. For example, if you have three web applications that use ASP.NET version 1.1, and you need to install one web application that uses ASP.NET version 2.0, you can create a virtual directory for the ASP.NET 2.0 application, configure ASP.NET settings for this directory so as to enable support for version 2.0, and then successfully install the required application.

Read more info in the official documentation.


Configuring PHP for Virtual Directories

To be able to use web applications that require PHP4 or PHP5, you can select the required PHP version for individual virtual directories.

To select PHP version for a virtual directory within a website go to :

Plesk -> Subscriptions -> > Websites & Domains > Virtual Directories > my_dir > PHP Settings

Here different versions can be selected for different directory of the same domain.


Search Words

virtual directory

php version problem

Different PHP versions are used on the same domain

php version

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 46a8e394d6fa13134808921036a34da8 85a92ca67f2200d36506862eaa6ed6b8 bd7fc88cf1b01f097749ae6f87272128 ed7be2b984f9c27de1d2dc349dc19c6d a766cea0c28e23e978fa78ef81918ab8

Email subscription for changes to this article
Save as PDF