• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

How do I switch on PHP support in Subscriptions

OsmanS

New Pleskian
I'd like your help in the following matter:
We use Plesk v11.0.9 under Linux.
How do I switch on PHP support in Subscriptions menu to a given domain? Or maybe it's in Service Plans?

Drupal doesn't seem to run and it says that it's because there's no PHP support

Thanks in advance,
 
Click "Manage hosting" for subscription, then go to "Websites & Domain" tab, select necessary domain and click "PHP support" checkbox.
 
Click "Manage hosting" for subscription, then go to "Websites & Domain" tab, select necessary domain and click "PHP support" checkbox.

OK. Thank you, but I didn't see "PHP support" checkbox (this box is not).
I suspect that one of the automatic updates when something is not successful, Plesk not be detected correctly in php, so the new storage location contains it could not be activated.
 
Last edited:
But do you have PHP marked as installed in Service Components and is PHP support enabled in corresponding Service Plan?
 
That's weird that I can not see server components, add components menu, but it seems to have installed:
php_supp.png

If I create a new Service Plan, checked a "PHP support":
snapshot1.png

After that, I change the Plan for a site to the test-plan (where the PHP support is enabled).
When I open the Control panel->Account tab->Hoing Options, i see this (PHP support: OFF):
snapshot2.png

When I open the Control panel->Websites&Domains->choose the domain at the bottom->I can't see, where can I enable the PHP:
snapshot3.png

Please, help me! My customer is very impatient!

Thanks!
 
Last edited:
Hello,

(1) If you have Plesk 11 installed on your box, you can run;

- /usr/local/psa/admin/bin/autoinstaller --select-release-current --install-component phpgroup

The above mentioned command needs to be run on shell/CLI. Root access is required.

The other way to do it is to go to login to server as admin or root. Then go to Tools & Settings. Then under the heading 'Panel', use the option 'Updates and Upgrades'. Follow instructions on the following page to install PHP.

This will install PHP. Make sure you don't have php mentioned in /etc/yum.conf with the option excludes=

This will install PHP.

(2) You can enable PHP for domains in two ways;

(a) Create Services plans. Enable it in Service plans

or

(b) Go to Subscriptions -> Domain Name -> Websites & Domains -> Scroll Down -> [Click] Domain Name -> Scroll down to the relevant option for enabling PHP for domains
 
Last edited:
Hi,

Thank you for your quick answer!

(1) a:

root@nrb:~# /usr/local/psa/admin/bin/autoinstaller --select-release-current --install-component phpgroup
File downloading products.inf3: 100% was finished.
File downloading plesk.inf3: 14%..21%..32%..40%..51%..60%..70%..85%..96%..100% was finished.
File downloading ppsmbe.inf3: 18%..100% was finished.
File downloading sitebuilder.inf3: 35%..87%..100% was finished.
File downloading sso.inf3: 37%..100% was finished.
File downloading setemplates.inf3: 19%..100% was finished.
File downloading pp-sitebuilder.inf3: 45%..100% was finished.
File downloading billing.inf3: 44%..94%..100% was finished.
File downloading mysql.inf3: 100% was finished.
File downloading apache.inf3: 100% was finished.
File downloading nginx.inf3: 100% was finished.
Checking for installed packages...
File downloading PSA_11.0.9/plesk-11.0.9-deb6.0-x86_64.inf3: 10%..35%..46%..79%..100% was finished.
File downloading PSA_11.0.9/plesk-patches-11.0.9-deb6.0-x86_64.inf3: 15%..20%..38%..46%..56%..62%..85%..93%..100% was finished.
File downloading SITEBUILDER_11.0.10/sitebuilder-11.0.10-deball-all.inf3: 100% was finished.
File downloading BILLING_11.0.9/billing-11.0.9-deball-all.inf3: 100% was finished.
File downloading NGINX_1.3.0/nginx-1.3.0-deb6.0-x86_64.inf3: 100% was finished.
Synchronizing the Debian APT package index files...
Ign http://autoinstall.plesk.com squeeze Release.gpg
Ign http://autoinstall.plesk.com/debian/PSA_11.0.9/ squeeze/all Translation-en
Hit http://ftp.hu.debian.org squeeze Release.gpg
Ign http://ftp.hu.debian.org/debian/ squeeze/main Translation-en
Hit http://ftp.hu.debian.org/debian/ squeeze/main Translation-hu
Get:1 http://ftp.hu.debian.org squeeze-updates Release.gpg [836 B]
Ign http://ftp.hu.debian.org/debian/ squeeze-updates/main Translation-en
Ign http://ftp.hu.debian.org/debian/ squeeze-updates/main Translation-hu
Hit http://ftp.hu.debian.org squeeze Release
Get:2 http://ftp.hu.debian.org squeeze-updates Release [113 kB]
Hit http://ftp.hu.debian.org squeeze/main Sources
Hit http://ftp.hu.debian.org squeeze/main amd64 Packages
Hit http://ftp.hu.debian.org squeeze-updates/main Sources/DiffIndex
Hit http://ftp.hu.debian.org squeeze-updates/main amd64 Packages/DiffIndex
Get:3 http://ftp.hu.debian.org squeeze-updates/main amd64 Packages [4674 B]
Ign http://autoinstall.plesk.com/debian/PSA_11.0.9/ squeeze/all Translation-hu
Ign http://autoinstall.plesk.com all Release.gpg
Get:4 http://security.debian.org squeeze/updates Release.gpg [836 B]
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-hu
Get:5 http://security.debian.org squeeze/updates Release [87.0 kB]
Ign http://autoinstall.plesk.com/debian/SITEBUILDER_11.0.10/ all/all Translation-en
Get:6 http://security.debian.org squeeze/updates/main Sources [101 kB]
Get:7 http://security.debian.org squeeze/updates/main amd64 Packages [302 kB]
Ign http://autoinstall.plesk.com/debian/SITEBUILDER_11.0.10/ all/all Translation-hu
Ign http://autoinstall.plesk.com all Release.gpg
Ign http://autoinstall.plesk.com/debian/BILLING_11.0.9/ all/all Translation-en
Ign http://autoinstall.plesk.com/debian/BILLING_11.0.9/ all/all Translation-hu
Ign http://autoinstall.plesk.com squeeze Release
Ign http://autoinstall.plesk.com all Release
Ign http://autoinstall.plesk.com all Release
Get:8 http://autoinstall.plesk.com squeeze/all amd64 Packages [20.2 kB]
Ign http://autoinstall.plesk.com all/all amd64 Packages
Ign http://autoinstall.plesk.com all/all amd64 Packages
Ign http://autoinstall.plesk.com all/all amd64 Packages
Ign http://autoinstall.plesk.com all/all amd64 Packages
Get:9 http://autoinstall.plesk.com all/all amd64 Packages [912 B]
Get:10 http://autoinstall.plesk.com all/all amd64 Packages [771 B]
Fetched 632 kB in 7s (82.6 kB/s)
Reading package lists...
Warning: not connected 'contrib' repository section
Warning: not connected 'non-free' repository section
Detecting installed product components.
You already have the latest version of product(s) and all selected components
installed. Installation will not continue.
Synchronizing the Debian APT package index files...

root@nrb:~#


(1)b:
After that I checked again the installed components, that is look like this: http://forum.parallels.com/attachment.php?attachmentid=6675&d=1365066357

(2)
I tried enabling the PHP, but it is not available:
http://forum.parallels.com/attachment.php?attachmentid=6679&d=1365083771

The old sites is working on the server, but I can't activate php for the new domains.
What do You think? Whats happened? What is the solution?

Thank you!
 
There are two ways, actually three ways to get this to work, that I can think of;

(1) Try installing latest updates for Plesk

or

(2) Try uninstalling php, as well as php related packages installed by plesk. Try reinstalling the PHP Server Component

Be careful with this option. Only do this if you know what you are doing. Do it in off hours. At night time. In low traffic period

or

(3) Try reinstalling the core packages for plesk

Be careful with this option. Only do this if you know what you are doing. Do it in off hours. At night time. In low traffic time
 
Last edited:
Hi!

(1) The latest updates are installed (auto-update is on)
(2) Can You help me, please, how can I reinstall the PHP Server Component (via CLI/WEB).
I googled it, but I can't find the answer.
(3) If I can not reinstall the php, or If I can do it, but I can't use it in my new websites, I will try reinstall the core packages of Plesk.
Can You tell me please, how can I do this?

Thank you!

I'm waiting for their reply!
 
Last edited:
Back
Top