Announcement

Collapse
No announcement yet.

Setting global php.ini limits

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting global php.ini limits

    Hi,

    I have set all of the domain to be handled by cloudlinux PHP selector.

    How can I now set the global PHP.ini limits in order to avoid abuse of the resources?

    I thought I could do via MultiPHP INI Editor, whose resources by default are set at the minimum, but they are actually ignored.

    Any help please?

  • #2
    Hello Rudy,
    Thank you for reaching out! You can also through MultiPHP Manager, while choosing the appropriate Alt-PHP.
    This information in our documentation will be useful here https://docs.cloudlinux.com/cloudlin...t-php-versions
    Let me know if you have any questions.
    Hope to hear from you soon.

    Comment


    • #3
      Hello Sergey,
      Thank you for your kind reply.

      I think I must be really confused.

      If I select any alt-php in MultiPHP manager I will go then an error in LVE that asks me to select eaphp to get cloudlinux php selector working.

      So I have selected ea-php73 for instance. According to the link you provided I have checked and there is not php.ini in /usr/local/lib

      "When /usr/local/lib/php.ini file does not exist, error_log and date.timezone options will be taken from the php.ini file for system default PHP version selected in MultiPHP Manager."

      Therefore I assume it should take the changes of ea-php73 in multiPHP INI.

      The thing is that the setting in ea-php73 are, for instance, upload_max_filesize=2MB, but if a cpanel user set alt-php 64MB or over the limits.

      Also all of memory limits are set by default = 256 MB, when this value is not even actually set anywhere.

      Comment


      • #4
        Hello,
        I apologize for the misunderstanding. You need to change the values in the MultiPHP INI Editor for alt-PHP and not set Alt-PHP as a PHP for the user in the manager.
        Thank you.

        Comment


        • #5
          Hi Sergey,

          No need to apologise, thank you for your help instead.

          I did set the global limits in MultiPHP.INI for alt-php but these are ignored as if a cpanel user set higher values than those that I set, the system accept them and are applied to the account.

          Comment


          • #6
            Hello Rudi,
            Thanks for following up! You can set the limits that are necessary for php.ini, but higher than the LVE limits cannot be set. For example, if you set memory_limit 1024, but LVE PMEM is 512 when it reaches 513Mb, the process stops OOM and does not reach memory_limit in php.ini.
            And if the client has such a need, then the client can do this through global.ini
            https://docs.cloudlinux.com/cloudlin...t-php-versions,
            but this will be for all versions. The options specified in global.ini will be registered in all alt-PHP and they cannot be overwritten by any other settings.
            Thanks.

            Comment

            Working...
            X