Skip to main content

Bulk Editing of All Domain's PHP-FPM Settings

Comments

12 comments

  • cPRex Jurassic Moderator

    Benjamin D. - didn't we just talk about this and you found a good solution?

    0
  • Benjamin D.

    Hi cPRex :)

    Did I? We talked about it a few weeks ago and what I found out is that this feature actually edits DEFAULT values, like a template BUT I also found out that any domain that you did not specifically defined values for, those default values will apply, even if you edit the default values AFTER you added the domains to WHM.

    I don't call that a solution, but at least if I had known how it worked, I could have just left all my domains untouched and adjust the default PHP-FPM values to match most domains and then manually go and edit the 10-15 domains that require higher values by hand.  But unfortunately, I ended up spending 2 hours and editing all the domains one by one, because some websites benefit from a later timeout value, while others benefit from a very, very high worker count.  For example, one of the websites I'm hosting became stable at around 1000 max requests.  The WHM default value of 10 is absolutely ridiculous and useless.  Another ridiculous default value from WHM is Max Children.  Don't leave it on 5.  Your PHP-FPM will ALWAYS reboot and it will cause latency/wait time after every 5 visitors.  The absolute minimum I recommend even for a very unpopular domain is 10.  For more popular domains, I've set it to 100 but you need a powerful server, not an entry level one, because the more Max Children value you set, the more CPU and RAM it will consume.

    Anyway, hope it helps.  Let me know if you have questions, I've got my dedicated server rolling pretty good after a week tweaking values here and there.

     

    0
  • powwowsuiwow

    Benjamin D. That is interesting, so you're saying that editing the default value for PHP-FPM in the MultiPHP Manager would modify all untouched account even after their creation? Going to test it for sure! 

    I'm just curious as to why cPanel not have a script available or built-in tool to perform that by just checking the accounts you want changed. I feel like they could easily do it using /usr/local/cpanel/bin/whmapi1 in a bash or python script.

    Thanks again!

    0
  • Benjamin D.

    Yes, as long as you did not already edit the values in the MultiPHP Manager > "User Domain Settings" tab.  Once you begin editing those values for a specific domain, then that domain will never be affected by the default values from MultiPHP Manager > "System Settings" ever again.

    For your 2nd question, I have absolutely no idea, especially given the million dollars they cash in every month.  The year after Plesk acquired cPanel, they began increasing the licence prices and they're now almost 250% of what they were just 5 years ago.  My data center told me that starting this month, I will have to pay even more as the price just increased again a few weeks ago.  Basically, they increase the price every 2-3 months until everybody leaves for Plesk and then they will probably cancel cPanel.  That's how I feel about it.  They made WHM and cPanel extremely ugly and harder to use, they removed all the icons, removed lots of features... it's a convergence plan to bring everybody to Plesk, I guess.  Kind of sad.  I liked the old WHM/cPanel product before it was acquired by Plesk.  It was awesome back in the day.

    0
  • cPRex Jurassic Moderator

    There's a lot of misinformation in that post I'd like to clear up.

    cPanel was not acquired by Plesk.  Plesk and cPanel are owned by the same parent company, Webpros.  https://webpros.com/

    The last price increase was announced September 28th.  So far these have been an annual increase over the past few years, but there was not a new one "every 2-3 months" or "a few weeks ago" - if your provider didn't communicate this earlier, that's on them.

    "They will probably cancel cPanel" - definitely not going to happen.

    Back to our regularly scheduled programming - I'll do some testing with the PHP-FPM page and I'll let you know what I find out.

    0
  • Benjamin D.

    It's not misinformation.  It's my feeling and I wrote that in the post too.  The company behind Plesk bought cPanel, that's what I meant.  They have plans to converge to Plesk, of course, since they already owned Plesk before acquiring cPanel.  Anyway, that's just my feeling like I wrote.  The future is unclear.  The only thing clear is that cPanel licences now cost approximately 250% what they used to cost 5 years ago while offering less features.  That's just a fact.  I'm not saying cPanel is not a good product, but it definitely lost attractiveness over the last couple years, that's for sure.  I see that you reply on cPanel price hike Reddit threads, but honestly, it's hard to argue against hundreds of shocked users... It's not like I was the only one finding a 250% price hike over 4-5 years a little bit exaggerated.  Just a tiny bit ;-)

     

    0
  • cPRex Jurassic Moderator

    I did some testing with this and I agree the interface could use an "apply all" button of some sort.  I do think the current configuration is logical - you make customizations to specific domains, and then any new global changes don't get applied to those because they are, well, custom now.  That makes sense.

    I've created case CPANEL-43811 to request an improvement of adding an "apply configuration to all domains" button on the main page, because manually tweaking things for each account through the "User Domain Settings" tab could quickly become tedious if you need to update the settings on a large number of accounts.

    If I do hear anything about that case on my end I'll be sure to post here!

    0
  • Benjamin D.

    Thanks!

    0
  • cPRex Jurassic Moderator

    Sure thing!

    0
  • powwowsuiwow

    cPRex Thank you for creating a ticket, it'll make it clear as well for other users when reaching that page. I also think that the wording as shown in the image I'm sharing could use a change as it does not only affect new account creations.

    Thank you and have a wonderful day!

    1
  • Benjamin D.

    +1 powwowsuiwow... not really intuitive to say the least.  cPanel, what we want is a page where you can set values and then check a few domains and hit "Apply" and it automates it all, something like this:
    Max Requests [ 1000 ] default 20 (lol?)
    Max Children [ 20 ] default 5 (lol?)
    Process Idle Timeout [ 10 ] default 10
    ...etc...
    Apply changes to selected domains:
    [ X ] cprexisthebestrep.com
    [ X ] myawesomesite.com
    [ ] whatever.org
    ...and then a nice blue button that says: [GO!!!!11!!!]

    ...and then it instantly runs a perl or python script or whatever and 2 seconds later, all the .conf files are automagically generated in their places and everybody's a happy cPanel customer.

    0
  • powwowsuiwow

    Benjamin D. AMEN! Haha, thank you!

    0

Please sign in to leave a comment.