• 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 Running Plesk inside a Docker container - PHP not working

CubE135

New Pleskian
Hey, im currently trying to run a Plesk instance in a Docker container. Everything worked fine, until i tried to use PHP in a website.
I get a 503 Error when trying to access the website. I figured out, that PHP FPM is not running. The problem is, that i cannot start it either.
When i try to start PHP FPM, i get the following error:
Code:
Unable to start service: Unable to manage service by phpinimng: ('start', 'plesk-php73-fpm'). Error: invoke-rc.d: unknown initscript, /etc/init.d/plesk-php73-fpm not found. invoke-rc.d: could not determine current runlevel invoke-rc.d: unknown initscript, /etc/init.d/plesk-php73-fpm not found. invoke-rc.d: could not determine current runlevel invoke-rc.d: emulating initscript action "status", returning "unknown" Service plesk-php73-fpm is down after attempt to start it

How do i fix this?

Best regards,
CubE135
 
Plesk PHP-FPM is fetched from common Plesk repository where it configured to run under systemd, which is absent inside the Docker container.
As a possible solution change PHP handler type to FastCGI or use the PHP-FPM by OS vendor.
 
Hey, thank you for answering :)
I can not start PHP-FPM by OS vendor as it is not installed. When heading to Tools & Settings and clicking "Updates" under the "Plesk" Category, i get an error page with the following error: "ERR_CONNECTION_REFUSED". So im not able to install that feature.
 
Ok, i managed to open up the "Add and Remove Product Components" page. As seen in the screenshot, "PHP from OS vendor" seems to be installed, but i still can not start it.
I also have a valid Licence Key installed, that includes the service.
 

Attachments

  • ePqEZtlw884b.png
    ePqEZtlw884b.png
    9.5 KB · Views: 10
  • TfGvKWmp885b.png
    TfGvKWmp885b.png
    13.8 KB · Views: 9
Have you enabled "PHP-FPM by OS vendor" as PHP handler for your domain? Do you have any problems with it? How does this domain work with php files?
 
For some reason, "7.2.24 by OS vendor" is not in this list
 

Attachments

  • BfWWiu5v886b.png
    BfWWiu5v886b.png
    14.9 KB · Views: 5
Ok, it seems to work when switching to FastCGI.
Do i have to change that for every domain or can i somehow tell plesk to use FastCGI as default when adding new domains?
 

Attachments

  • 7F70m64U887b.png
    7F70m64U887b.png
    8 KB · Views: 2
You can define it is Service Plan and sync it to all subscriptions based on this Service Plan.
 
Back
Top