• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Opcache Preloading

KDederichs

New Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.53 Update #2
Hey,
I was wondering if it's possible to use OPCache Preloading on Plesk.
From what I gather you usually can't preload more than one project per server but I was wondering if it was different on Plesk since every domain seems to have its own PHP config.

Asking cause I'd like to preload multiple Symfony applications and I'm wondering if that's possible without having to spin up a docker for each of those.

Thanks in advance :)
 
I think this thread and the posts from @weltonw can help:
 
Thanks I took a look at it (and the blog linked in there).
Do I assume right that Plesk actually does what's written in there (Running a different PHP-FPM Master/Pool for ever subdomain)?
Cause if it does that then it probably should work.
 
No, it does not run a pool for every subdomain, but you can selected the "Dedicated" PHP-FPM option, then it runs a dedicated pool for that subdomain.
 
Nice, that's what I'm looking for then thanks a lot!
Do you also by chance happen to know how to restart that one dedicated PHP-FPM service by command line? The only ones I found by running

sudo plesk bin php_handler --list | grep -E plesk.*fpm | awk -F" " '{ print $1 }'

seem to be generic ones.

It should be possible to do since you can do it via the web interface.
 
The only difference is that you have an additional "master process", e.g.

Before:
srv-bit+ 15462 0.0 0.0 581976 9868 ? S 15:00 0:00 php-fpm: pool yourwebsite.tld

After:
root 14503 0.0 0.0 581976 21012 ? Ss 14:59 0:00 php-fpm: master process (/var/www/vhosts/system/yourwebsite.tld/etc/php-fpm.conf)
srv-bit+ 15462 0.0 0.0 581976 9868 ? S 15:00 0:00 php-fpm: pool yourwebsite.tld

Each plesk-php<version>-fpm has its own service entry to control these processes. I am not sure on Ubuntu (I think it is the same command), but RHEL you can see it like
# systemctl list-units --type service | grep plesk-php
It will be named like
plesk-php<version-fpm_<domainname>_<id>.service
That is the service you can stop/start/restart.
 
Back
Top