Announcement

Collapse
No announcement yet.

Question regarding alt-php / cl-selector

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

  • Question regarding alt-php / cl-selector

    I have installed alt-php by doing

    yum update cagefs lve lvemanager lve-utils --enablerepo=cloudlinux-updates-testing
    yum groupinstall alt-php --enablerepo=cloudlinux-updates-testing
    cagefsctl --update

    But Im struggling to get it working. For example

    cl-selector --sel ect php --version 5.2 --user xxxxx.xxx
    ERROR: no user CageFS alternatives directory found. Try to upgrade CageFS

    Or

    cl-selector --prove --user xxxxx.xxx
    No such user

    Im not running any control panel. And should be running the latest version of cagefs.

    yum info cagefs
    Loaded plugins: fastestmirror, rhnplugin
    Loading mirror speeds from cached hostfile
    * cloudlinux-x86_64-server-6: cl-mirror.uk2group.com
    Installed Packages
    Name : cagefs
    Arch : x86_64
    Version : 3.8
    Release : 3.el6.cloudlinux
    Size : 1.1 M
    Repo : installed
    Fr om repo : cloudlinux-updates-testing
    Summary : CageFS version 3.8

    Any Ideas?

  • #2
    > Im not running any control panel. And should be running the latest version of cagefs.

    Im not 100% sure but isn php-selector only for cPanel at the moment ? (being in beta)

    Comment


    • #3
      Is cagefs enabled for that user?

      Comment


      • #4
        PHP selector supports CPanel only (for now).

        Comment


        • #5
          Theoretically you don need any control panels to use php-selector and alt-php. Control panels only make the selection more convinient. You can sel ect versions/modules fr om command line providing you are not in cagefs.
          2Thomas. In your xxxxx.xxx username period presents. Note you should specify a username, not a domain.

          Comment


          • #6
            The system accounts are named exactly as the domain names they are hosting.

            cagefsctl --cagefs-status
            Enabled

            cagefsctl --user-status xxxx.xxx
            Enabled

            cagefsctl --setup-cl-selector
            CloudLinux Selector not supported

            maybe cagefsctl --reinit is needed?

            Comment


            • #7
              PHP Selector is for CPanel only. We are planning to add configuration files for PHP Selector in the future releases,
              so customers will be able to configure PHP Selector for different control panels.

              For now, you can do the following:

              Please ensure, that you have latest alt-php, cagefs and lvemanager packages.

              Edit line
              orig_binaries = { cpanel: {/usr/bin/php : php, /usr/local/bin/php : php-cli, /usr/local/lib/php.ini : php.ini} }
              in file /usr/share/cagefs/cagefslib.py
              replace /usr/bin/php with path to CGI version of PHP interpreter (if needed)
              replace /usr/local/bin/php with path to CLI version of PHP interpreter (if needed)
              replace /usr/local/lib/php.ini with path to your systens global php.ini

              Ensure, that all those paths exist in cagefs-skeleton:
              ls /usr/share/cagefs-skeleton/usr/bin/php

              if not, add those paths to /etc/cagefs/conf.d/custom.cfg file (create new file) and execute "cagefsctl --upd ate"

              Edit line
              cagefslib.control_panel = detect_control_panel()
              in file /usr/sbin/cagefsctl, so it becomes the following:
              cagefslib.control_panel = cpanel

              Then execute
              cagefsctl --se tup-cl-selector

              Then restart apache.

              Comment


              • #8
                Hi,

                I just want to ask if it is any progress for php-selector to work on others CP or without CP?

                Anton, I follow your post (replace /usr/local/lib/php.ini with path to your systens global php.ini ) but on Cloudlinux with Virtualmin CP, system global php.ini is in /etc folder and because of that I get that "error": /etc/php.ini is mounted to CageFS. So CloudLinux Selector will not be available.

                Any suggestion?

                Comment


                • #9
                  Is the php-selector for DirectAdmin already available? How to activate it?

                  Comment


                  • #10
                    No UI yet, beta expected this week.

                    Comment

                    Working...
                    X