• 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.

Issue Overwriting core nginx.conf file

Marchiuz

New Pleskian
Server operating system version
AlmaLinux 8.4 x86_64
Plesk version and microupdate number
Plesk Obsidian 18.0.41.1
I have a need to OVERWRITE (not append, not extend but OVERWRITE - vhost_nginx.conf is not an option, neither is the additional directives in plesk panel) the core nginx.conf file. More specifically, I need to change how php-fpm listener behaves. By default it uses php-fpm.socket file, and this approach not as scalable as a different solution we have found - use tcp port, which made our project be able to handle larger traffic.
Basically, I need to replace this line in /var/www/vhosts/system/domain/conf/nginx.conf
Code:
fastcgi_pass "unix:/var/www/vhosts/system/api.supermatematik.dk/php-fpm.sock";

With this line
Code:
fastcgi_pass 127.0.0.1:9001;

Currently we see three options:
1. Refactor our project to use swoole instead of php-fpm - costly solution
2. Overwrite access for this nginx.conf file so that even plesk can't edit it
3. Move to a different hosting without Plesk because all of these limitation are seriously annoying.

...but a more sensible solution would be much appreciated, thanks.
 
By default it uses php-fpm.socket file, and this approach not as scalable as a different solution we have found - use tcp port, which made our project be able to handle larger traffic.
Huh? That's strange - a socket should always be faster than a tcp port because it doesn't need a tcp handshake on every connection.
If it isn't, there is something very wrong with the way Plesk's php handles sockets.
@IgorG Maybe this is also the cause for the complaints about slow php in other threads?
 
Back
Top