Announcement

Collapse
No announcement yet.

PHP Selector custom PHP without modules ghost option

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

  • PHP Selector custom PHP without modules ghost option

    PHP Selector givesa ghost module option called directory

  • #2
    (SOLVED)

    I am setting up PHP selector with a few custom build PHP versions. All pre-configured, modules loaded as needed.
    Now when a customer (or the WHM admin user through the LVE manager) selects one of those PHP versions I would have expected there to be no modules to sel ect (to enable or disable). Just as when you select
    ative.

    But whatever I try I always end up with one module option called directory?

    Just once did I manage to get rid of it by making an exact copy of the PHP directory in /opt/alt/ and adding it with a different name. But I am unable to replicate this solution.

    For customers, the option does not do anything. They can switch between the custom versions just fine.
    Using the LVE Manager, when I select it to make it default and click save an error pops up stating "Alternatives directory not found".
    I have compared my PHPs with the default folders fr om the alt-php packages but can find anything wrong. I cannot find anything named directory either somewhere (nothing in my php.ini either).

    Anyone who has an idea wh ere this comes fr om and/or how to get rid of this last ghost option?

    Comment


    • #3
      Hi!

      We would need access to the server in order to investigate the issue.

      Could you please submit a ticket to our support at helpdesk.cloudlinux.com ?

      Comment


      • #4
        Anton,

        I can submit a support ticket but I cannot give you access to this server.
        However, the problem is easily reproduced.. as I can even get rid of it not even after applying the latest updates last night.

        Ill post a screenshot here for reference in a minute

        Comment


        • #5

          Comment


          • #6
            I forgot to upd ate this thread, the issue has been resolved. Thanks again Anton for the help.

            For those who read this thread, some pointers:

            - Name your php 5.x.x /opt/alt/php5x

            [/opt/alt]# ls -l
            total 16
            drwxr-xr-x 4 root root 4096 Apr 18 21:05 ./
            drwxr-xr-x. 14 root root 4096 Apr 18 20:03 . ./
            drwxr-xr-x 5 root root 4096 Apr 18 21:05 php52/
            drwxr-xr-x 5 root root 4096 Apr 18 21:05 php54/

            - The /etc/php.d.all directory is required, even though its empty in my case

            [/opt/alt/php52/etc]# ls -l
            total 56
            drwxr-xr-x 3 root root 4096 Apr 18 21:08 ./
            drwxr-xr-x 5 root root 4096 Apr 18 21:05 . ./
            -rw-r--r-- 1 root root 1201 Apr 18 21:05 pear.conf
            lrwxrwxrwx 1 root root 23 Apr 18 21:08 php.d -> /etc/cl.php.d/alt-php52
            drwxr-xr-x 2 root root 4096 Apr 18 21:05 php.d.all/
            -rw-r--r-- 1 root root 38166 Apr 18 21:05 php.ini

            - Dont use names in the selector.conf

            # cat /etc/cl.selector/selector.conf
            php 5.2 5.2.17 /opt/alt/php52/usr/bin/php-cgi
            php-cli 5.2 5.2.17 /opt/alt/php52/usr/bin/php
            lsphp 5.2 5.2.17 /opt/alt/php52/usr/bin/lsphp
            php.ini 5.2 5.2.17 /opt/alt/php52/etc/php.ini
            php 5.4 5.4.13 /opt/alt/php54/usr/bin/php-cgi
            php-cli 5.4 5.4.13 /opt/alt/php54/usr/bin/php
            lsphp 5.4 5.4.13 /opt/alt/php54/usr/bin/lsphp
            php.ini 5.4 5.4.13 /opt/alt/php54/etc/php.ini

            And my defaults.cfg:

            [versions]
            php=native

            [php5.2]

            [php5.4]

            Reloading it all:

            # cagefsctl --se tup-cl-selector
            # cagefsctl --force-update

            its to bad that the selector is so picky about things and I still dont know where the directory option came from. But oh well, all in all having this PHP selector is a HUGE improvement in flexibility and options for support, testing, upgrading, legacy stuff etç and I couldnt be much happier

            Comment

            Working...
            X