• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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 No Option to change PHP version

mano

New Pleskian
Server operating system version
Ubuntu 22.04.4 LTS
Plesk version and microupdate number
18.0.60 Update #1
Very new here to Plesk,
Trying to change the PHP version to a previous version and unable to do so on a site with Laravel as the first site. On the wordpress icon on the sidebar a padlock is visible when clicked states Premium feature required.
The below is what is shown on the php associated to the Laravel instance. Do I need to activate the Premium feature to have the option to select php version ?.
Dont wish to pay and then find out its not the case.
Thanks
 

Attachments

  • Screenshot 2024-05-30 at 17.20.43.png
    Screenshot 2024-05-30 at 17.20.43.png
    206.3 KB · Views: 6
You should be able to change the PHP version for the domain by accessing the PHP settings by clicking on the PHP icon (shown) in the screen shot. If there are no other PHP versions to selected, make sure other PHP versions are installed:

If there are already other PHP versions make sure these are available to the subscription/webspace:
 
You should be able to change the PHP version for the domain by accessing the PHP settings by clicking on the PHP icon (shown) in the screen shot. If there are no other PHP versions to selected, make sure other PHP versions are installed:

If there are already other PHP versions make sure these are available to the subscription/webspace:
Hi Kasper@Plesk,
Followed and tried the above guidelines as below.. php's installed are 7.4, 8.1, 8.2, 8.3 before I started. I did reach out to the VPS providers support organisation, who responded to reach out to Plesk as, its beyond their know-how. (I appreciate the honesty).

root@charming-elion:~# plesk bin php_handler --list
id: display name: full version: version: type: cgi-bin: php-cli: php.ini: custom: status:
plesk-php74-cgi 7.4.33 7.4.33 7.4 cgi /opt/plesk/php/7.4/bin/php-cgi /opt/plesk/php/7.4/bin/php /opt/plesk/php/7.4/etc/php.ini true disabled
plesk-php74-fastcgi 7.4.33 7.4.33 7.4 fastcgi /opt/plesk/php/7.4/bin/php-cgi /opt/plesk/php/7.4/bin/php /opt/plesk/php/7.4/etc/php.ini true enabled
plesk-php74-fpm 7.4.33 7.4.33 7.4 fpm /opt/plesk/php/7.4/sbin/php-fpm /opt/plesk/php/7.4/bin/php /opt/plesk/php/7.4/etc/php.ini true enabled
plesk-php74-fpm-dedicated 7.4.33 7.4.33 7.4 fpm /opt/plesk/php/7.4/sbin/php-fpm /opt/plesk/php/7.4/bin/php /opt/plesk/php/7.4/etc/php.ini true enabled
plesk-php81-cgi 8.1.28 8.1.28 8.1 cgi /opt/plesk/php/8.1/bin/php-cgi /opt/plesk/php/8.1/bin/php /opt/plesk/php/8.1/etc/php.ini true disabled
plesk-php81-fastcgi 8.1.28 8.1.28 8.1 fastcgi /opt/plesk/php/8.1/bin/php-cgi /opt/plesk/php/8.1/bin/php /opt/plesk/php/8.1/etc/php.ini true enabled
plesk-php81-fpm 8.1.28 8.1.28 8.1 fpm /opt/plesk/php/8.1/sbin/php-fpm /opt/plesk/php/8.1/bin/php /opt/plesk/php/8.1/etc/php.ini true enabled
plesk-php81-fpm-dedicated 8.1.28 8.1.28 8.1 fpm /opt/plesk/php/8.1/sbin/php-fpm /opt/plesk/php/8.1/bin/php /opt/plesk/php/8.1/etc/php.ini true enabled
plesk-php82-cgi 8.2.19 8.2.19 8.2 cgi /opt/plesk/php/8.2/bin/php-cgi /opt/plesk/php/8.2/bin/php /opt/plesk/php/8.2/etc/php.ini true disabled
plesk-php82-fastcgi 8.2.19 8.2.19 8.2 fastcgi /opt/plesk/php/8.2/bin/php-cgi /opt/plesk/php/8.2/bin/php /opt/plesk/php/8.2/etc/php.ini true enabled
plesk-php82-fpm 8.2.19 8.2.19 8.2 fpm /opt/plesk/php/8.2/sbin/php-fpm /opt/plesk/php/8.2/bin/php /opt/plesk/php/8.2/etc/php.ini true enabled
plesk-php82-fpm-dedicated 8.2.19 8.2.19 8.2 fpm /opt/plesk/php/8.2/sbin/php-fpm /opt/plesk/php/8.2/bin/php /opt/plesk/php/8.2/etc/php.ini true enabled
plesk-php83-cgi 8.3.7 8.3.7 8.3 cgi /opt/plesk/php/8.3/bin/php-cgi /opt/plesk/php/8.3/bin/php /opt/plesk/php/8.3/etc/php.ini true disabled
plesk-php83-fastcgi 8.3.7 8.3.7 8.3 fastcgi /opt/plesk/php/8.3/bin/php-cgi /opt/plesk/php/8.3/bin/php /opt/plesk/php/8.3/etc/php.ini true enabled
plesk-php83-fpm 8.3.7 8.3.7 8.3 fpm /opt/plesk/php/8.3/sbin/php-fpm /opt/plesk/php/8.3/bin/php /opt/plesk/php/8.3/etc/php.ini true enabled
plesk-php83-fpm-dedicated 8.3.7 8.3.7 8.3 fpm /opt/plesk/php/8.3/sbin/php-fpm /opt/plesk/php/8.3/bin/php /opt/plesk/php/8.3/etc/php.ini true enabled
==
Then:

How to set another default PHP version for new subscriptions in Plesk?​

root@charming-elion:~# plesk bin service_plan -u "Unlimited" -php_handler_id plesk-php74-fpm
The hosting plan 'Unlimited' was successfully updated.

Tried this first - to see if the php version changed on the Websites & Domains > PHP Settings - (no change from the initial 8.2.19 Version_

Then Tried below as well.

root@charming-elion:~# plesk bin service_plan -u "Unlimited" -php_handler_id plesk-php81-fpm
The hosting plan 'Unlimited' was successfully updated.
root@charming-elion:~# plesk bin service_plan -u "Unlimited" -php_handler_id plesk-php82-fpm
The hosting plan 'Unlimited' was successfully updated.
root@charming-elion:~# plesk bin service_plan -u "Unlimited" -php_handler_id plesk-php83-fpm
The hosting plan 'Unlimited' was successfully updated.
==
No luck..

Is this because my plesk is a web admin version, which is limiting the flexibility needed?.

Thanks
 

Attachments

  • Screenshot 2024-05-31 at 08.31.54.png
    Screenshot 2024-05-31 at 08.31.54.png
    61.3 KB · Views: 6
  • Screenshot 2024-05-31 at 08.46.31.png
    Screenshot 2024-05-31 at 08.46.31.png
    102.7 KB · Views: 6
Last edited by a moderator:
The second screenshot makes me believe that the "PHP version and handler management" permission isn't enabled for the Service Plan or the subscription.

Run this command to see which service plan is used for the domain. Replace example.com with your actual domain.
Code:
plesk bin subscription --info example.com | grep "service plan"
Which will output something like: The domain is subscribed to the service plan "Default Domain" of Administrator. Meaning that the used service plan is named Default Domain (could be named something else too, like Unlimited for example.

Next use command bellow to adjust the service plan and enable "PHP version and handler management". Replace the Default Domain with the actual service plan name from the previous step.
Code:
plesk bin service_plan -u "Default Domain" -manage_php_version true

Lastly use this command to sync to service plan with the domain. Replace example.com with your actual domain.
Code:
plesk bin subscription --sync-subscription example.com

ps. I've removed your licence key number from your post. It's best to keep it private.
 
Hi Kasper@Plesk

Tried the above as below:

root@charming-elion:~# plesk bin subscription --info test.test.org | grep "service plan"
The domain is subscribed to the service plan "Admin Simple" of Me Me.
root@charming-elion:~# plesk bin service_plan -u "Admin Simple" -manage_php_version true
The hosting plan 'Admin Simple' was successfully updated.
root@charming-elion:~# plesk bin subscription --sync-subscription test.test.org
Subscription test.ofaal.org was synchronized with the associated service plans.

Also tried with different browser as well.

could it be the "Admin Simple" assigned by the VPS provider, is causing the issue ?
 
could it be the "Admin Simple" assigned by the VPS provider, is causing the issue ?
Probably. But you should be able to change the Service Plan settings anyway.

What's the output of the following command:
Code:
plesk bin service_plan --info "Admin Simple"
 
Probably. But you should be able to change the Service Plan settings anyway.

What's the output of the following command:
Code:
plesk bin service_plan --info "Admin Simple"
Code:
root@charming-elion:~# plesk bin service_plan --info "Admin Simple"

General
================================================
Service plan name                               Admin Simple
Owner's name                                    Me ME (admin)

Mail
================================================
What to do with mail sent to non-existent users Reject
Webmail                                         roundcube
Mail autodiscover                               true

Limits
================================================
Domains                                         Unlimited
Subdomains                                      Unlimited
Domain aliases                                  Unlimited
Disk space                                      Unlimited
Notify when disk space usage reaches             Unlimited
Traffic                                         Unlimited
Notify when traffic usage reaches                Unlimited
Web users                                       Unlimited
Additional FTP accounts                         Unlimited
Databases                                       Unlimited
Mailboxes                                       Unlimited
Maximum number of mail accounts                 Unlimited
Mailbox size                                    Unlimited
Mailing lists                                   Unlimited
Expiration date                                 Unlimited
WordPress Websites                              Unlimited
WordPress Backups                               Unlimited
WordPress websites with Smart Update            Unlimited
Rank Tracker crawls                             Unlimited
Overuse policy                                  normal

Log Rotation
================================================
Log rotation status                             On
Log rotation condition                          by size: 10240 KB
Maximum number of log files                     10
Compress log files                              true
Send processed log files to email

Settings
================================================
Mail                                            true
Mailing lists                                   false
Retain web and traffic statistics               3 Months

DNS
================================================
Type of domain DNS zone                         master

Physical hosting
================================================
Status of websites in suspended subscriptions   suspended
Hard disk quota                                 Unlimited
SSL/TLS support                                 true
Permanent SEO-safe 301 redirect from HTTP to HTTPStrue
Allow web users to use scripts                  true
SSI support                                     false
PHP support                                     true
run PHP as                                      plesk-php82-fpm
PHP safe mode                                   false
PHP served by nginx                             false
CGI support                                     false
Perl support                                    false
Python support                                  false
Web statistics                                  Webalizer
Protect directory '/plesk-stat/webstat/'        true
Custom error documents                          false
Permissions
================================================
SSI support management                           true
PHP support management                           true
CGI support management                           true
Perl support management                          true
Python support management                        true
FastCGI support management                       true
Can allow access only to a chrooted environment  false
Custom error documents management                true
SSL/TLS support management                       true
Web Deploy publishing management                 true
DNS zone management                              true
Hosting settings management                      true
Common PHP settings management                   true
PHP version and handler management               true
Setup of potentially insecure web scripting options that override provider's policy false
Can allow access to any type of shell            false
Anonymous FTP management                         true
Scheduler management                             true
Spam filter management                           true
Antivirus management                             true
Backup and restoration of subscription data using the server storage false
Backup and restoration of subscription data using remote storage true
Backup and restoration of account data using the server storage false
Backup and restoration of account data using remote storage false
Web statistics management                        true
Log rotation management                          true
Access to Application Catalog                    true
Ability to create, remove, and switch among subscriptions true
Subdomains management                            true
Domain aliases management                        true
Additional FTP accounts management               true
Ability to change mail settings                  true
Mailing lists management                         true
Mail autodiscover management                     true
Hosting performance settings management          true
Hard disk quota assignment                       true
Database server selection                        true
Remote access for database users                 false
Access to advanced operations: Website Copying   true
Password-protected directories management        true
Ability to manage additional user accounts       true
Git management                                   true
Access to WP Toolkit                             true
WP Toolkit security management                   true
WP Toolkit cloning management                    true
WP Toolkit syncing management                    true
WP Toolkit autoupdates management                true
WP Toolkit Smart PHP Update                      true
Access to Sitejet Builder                        true
Sitejet Builder SEO Analysis by XOVI NOW         true
Access to Laravel Toolkit                        true
Node.js support management                       true
Node.js state management                         true
Node.js version management                       true

Apache settings
================================================
Restricts the ability to follow symbolic links.  true

Nginx settings
================================================
Turns on/off the proxy mode for the nginx reverse proxy server. true
================================================
Maximum allowed HTTP request body size
 
Common PHP settings management true
PHP version and handler management true
This indicates that PHP management is enabled in the service plan, so the option to select different PHP version should be available:

You could try to sync the subscription by first unlocking it
Code:
plesk bin subscription --unlock-subscription example.com

and next synchronizing it again
plesk bin subscription --sync-subscription example.com
 
Actually, I now notice your using test.test.org as an example. Are you using a sub domain of which the parent domain exists on the server to?

What's the output of
Code:
plesk bin domain --info test.test.org | grep "WWW-Root"
(You can obscure you actual domain name)
 
plesk bin domain --info test.xyz.org | grep "WWW-Root"
--WWW-Root--: /var/www/vhosts/test.xyz.org/httpdocs/public

parent domain ( xyz.org) is on a different VPS.

using test.parent.org just to go through a practice/dummy run to locate uat.parent.org and parent.org [both currently on php7.4 & non-plesk] under the new instance with plesk.
Idea was to migrate the existing php7.4 app as is get it working and then upgrade the php to current version. Hence the ability to switch the php to see what breaks.
Totally appreciate the support and perseverance with my problem
 
Yes... its alive... wow.. thanks
now I can select the php versions as needed.
Thanks again.

Will also advise my ISP tech.. He was honest enough to refer me to Plesk as it was beyond his knpwledge.
 

Attachments

  • Screenshot 2024-06-02 at 20.06.12.png
    Screenshot 2024-06-02 at 20.06.12.png
    259 KB · Views: 7
Back
Top