Announcement

Collapse
No announcement yet.

Warning: Changing php modules and php options via PHP Selector for native php version is impossible

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

  • Warning: Changing php modules and php options via PHP Selector for native php version is impossible

    Users are getting the following warning when they visit Select PHP Version in cPanel, and then click the Switch to PHP Options link:

    > Warning: Changing php modules and php options via PHP Selector for native php version is impossible

    But we do not enable the native PHP version on the server.

    The selected PHP version is one of the alt-php versions.

    Running phpinfo() on the users domain, we can also confirm that the selected PHP version is one of the alt-php versions.

    We are running cPanel/WHM 11.52.2 (build 5) on CloudLinux 6.7 x86_64.

    We have already tried recompiling using EasyApache 3, and also running /usr/sbin/cagefsctl --force-update.

    With all this in mind, what do you think could be causing the above warning message to show up when the user clicks the Switch to PHP Options link?

    Is it because we have not upgraded to cPanel/WHM 11.54? If so, can this bug be fixed so that CloudLinux detects which version of cPanel is running and shows the page correctly?

  • #2
    This is not related to WHM version and definitely should not work that way. We would like to check the issue in place, please create a ticket at https://helpdesk.cloudlinux.com and provide server access so we could reproduce it.

    Comment


    • #3
      This means that theres something wrong with /etc/cl.selector/php.conf If you try to change the PHP version while on the PHP Options area, youll see a red error indicating the error. In my case, our comments for custom PHP settings seemed to have jumped onto the next line, presumably because word-wrap

      Comment


      • #4
        Hello,

        I have not been able to reproduce the issue in our test environment.

        Could you please submit a ticket to https://cloudlinux.zendesk.com/hc/en-us/requests/new, so we could take a closer look?

        Comment


        • #5
          Hello!

          I had the same issue at 25 servers and all had the same issue in the file "/etc/cl.selector/php.conf".

          It looked like this:

          Code:
          Directive = safe_mode_include_dir
          
          Type      = value
          
          Remark    = <5.4.0
          
          Comment   = If PHP is in the safe mode and a script tries to access some files, files from this directory will bypass security (UID/GID) checks. Th
          
          e directory must also be in include_path. For example: /dir/inc
          So I changed it to the below to fix the issue:

          Code:
          Directive = safe_mode_include_dir
          
          Type      = value
          
          Remark    = <5.4.0
          
          Comment   = If PHP is in the safe mode and a script tries to access some files, files from this directory will bypass security (UID/GID) checks. The directory must also be in include_path. For example: /dir/inc
          Regards,
          Erik.

          Comment


          • #6
            The same problem here. This occurs after the last update, we dont have made any change and suddenly all accounts on all PHP versions show the message:

            > Warning: Changing php modules and php options via PHP Selector for native php version is impossible

            Comment


            • #7
              Hello,

              This is a known issue, we are preparing the fix currently.

              For now, just modify the /etc/cl.selector/php.conf file as it was suggested in previous posts.

              Comment


              • #8
                The fixed version was just pushed to production channel: https://www.cloudlinux.com/cloudlinu...er-updated-1-7

                Comment


                • #9
                  Warning: Changing php modules and php options via PHP Selector for native php version is impossible

                  I am getting this error on all accounts! iv done everything thats been said here and restarted the server! i need help if possible

                  Comment


                  • #10
                    Stephen,

                    Please, contact our support by submitting a ticket at https://cloudlinux.zendesk.com

                    Comment


                    • #11
                      I cant spot the difference...

                      Comment


                      • #12
                        Hello,

                        The configuration file might still be corrupted.
                        Please submit a ticket to https://cloudlinux.zendesk.com, our techs will check the issue in place.

                        Comment


                        • #13
                          The above posts are fairly old so I would assume this was fixed.

                          Im running a test of DirectAdmin on CentOS 8 converted to CloudLinux and I get this error/warning too when testing from a user account to change the PHP version.

                          "Warning Changing php modules and php options via PHP Selector for native php version is impossible"

                          What exactly is required to fix or prevent this from happening?

                          Comment


                          • #14
                            > The above posts are fairly old so I would assume this was fixed.
                            >
                            > Im running a test of DirectAdmin on CentOS 8 converted to CloudLinux and I get this error/warning too when testing from a user account to change the PHP version.
                            >
                            > "Warning Changing php modules and php options via PHP Selector for native php version is impossible"
                            >
                            > What exactly is required to fix or prevent this from happening?

                            Hello,
                            Thank you for reaching out! Please try changing the version of the PHP in the selector.
                            If this does not solve the problem, can you open a support ticket https://cloudlinux.zendesk.com/hc/en-us/requests/new so we can take a closer look at your system? You can post the ticket number here and well link this thread to it.
                            Thank you.

                            Comment


                            • #15
                              Thanks for the response Sergey,

                              Where is the correct documentation for Installation and Configuration of CentOS 8 > CloudLinux 8 on DirectAdmin?

                              Also, what is the correct sequence?
                              CentOS 8 > DirectAdmin > CloudLinux 8 or something else?

                              Comment

                              Working...
                              X