Panda won't play with Plesk 12.1.21

Support/Development for PHP
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Panda won't play with Plesk 12.1.21

Unread post by faris »

Maybe I've done something wrong, but after a simple yum install php-panda, and seeing everything install correctly, there are no additional php versions visible in Plesk 12.1.21

On a Plesk 11.5 system, I didn't have to do anything else. All the alternative versions magically appeared.

Did I miss a step or has there been an incompatible change in 12.1.x?

Faris.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8330
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Panda won't play with Plesk 12.1.21

Unread post by scott »

Havent tried 12.1 yet, but maybe the handler logic is different in it now?

See if this still works:


/usr/local/psa/bin/php_handler --list

And an example of an add event:


/usr/local/psa/bin/php_handler --add -displayname "Atomic 5.4" -path "/opt/atomic/atomic-php54/root/usr/bin/php-cgi" -phpini "/opt/atomic/atomic-php54/root/etc/php.ini" -type fastcgi -id "fastcgi-54"
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Panda won't play with Plesk 12.1.21

Unread post by faris »

Aha! You nailed it.

Code: Select all

# /usr/local/psa/bin/php_handler --add -displayname "Atomic 5.4" -path "/opt/atomic/atomic-php54/root/usr/bin/php-cgi" -phpini "/opt/atomic/atomic-php54/root/etc/php.ini" -type fastcgi -id "fastcgi-54"
Required option -clipath <path to php-cli> is not set
So it looks like there's a new option there --clipath

Code: Select all

/usr/local/psa/bin/php_handler --help

Usage: php_handler command [options]
    Available commands:
    --add                              Registers a new PHP handler.
    --update                           Updates an existing PHP handler.
    --replace                          Replaces a certain PHP handler with
                                       another one for all service plans and
                                       websites in Plesk.
    --remove                           Removes a PHP handler.
    --enable                           Enables a PHP handler.
    --disable                          Disables a PHP handler.
    --get-usage                        Shows the usage of a PHP handler.
    --list                             Displays the list of all PHP handlers
                                       registered in Plesk.
    --reread                           Refreshes information about PHP
                                       handlers in Plesk. Use after you
                                       changed PHP handlers not through
                                       Plesk.
    --help or -h                       Displays this help page.

    Available options:
    -id                <handler id>    Sets the PHP handler identifier (use
                                       with the "add", "update", "remove",
                                       "enable", "disable", and "get-usage"
                                       commands). To view the identifiers of
                                       registered handlers, use the "list"
                                       command.
    -displayname       <name>          Sets the name for the PHP handler to
                                       be displayed in the GUI (use with the
                                       "add" and "update" commands).
    -path      <path to php-cgi>       Sets the path to the php-cgi binary
                                       file (use with the "add" and "update"
                                       commands).
    -clipath     <path to php-cli>     Sets the path to the php-cli binary
                                       file (use with the "add" and "update"
                                       commands).
    -phpini     <path to php.ini>      Sets the path to the php.ini file (use
                                       with the "add" and "update" commands).
    -type      <cgi|fastcgi|fpm>       Sets the PHP handler type (use with
                                       the "add" and "update" commands).
    -service           <service name>  Sets the service name (use with the
                                       "add" and "update" commands for "fpm"
                                       types).
    -poold      <path to pool.d>       Sets the path to the pool.d directory
                                       (use with the "add" and "update"
                                       commands for "fpm" types).
    -old-id      <old handler id>      Specifies the PHP handler you want to
                                       replace (use with the "replace"
                                       command).
    -new-id      <new handler id>      Specifies the PHP handler with which
                                       you want to replace the existing one
                                       (use with the "replace" command).
    -json              <true|false>    Displays the result of command in JSON
                                       format (use with the "list" and
                                       "get-usage" commands). Use this to
                                       pass information about PHP handlers to
                                       scripts.
    -service-node      <service node>  Sets service node for setting PHP
                                       handler (use in all commands).

Note:
 The --list command displays registered PHP handlers in the list that contains
 the following data:
 id: Automatically created handler's identifier
 display name: Displayed as the "PHP version" in the Plesk UI
 full version: Full PHP version
 version: Short PHP version
 type: Displayed as the "Run PHP as" in the Plesk UI
 cgi-bin: Path to PHP
 php.ini: Path to php.ini
 custom: Whether the handler is default or custom

Version: 12.1.21_build1201150424.19 os_CentOS 6

--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8330
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Panda won't play with Plesk 12.1.21

Unread post by scott »

Added to the latest php panda packages, let us know if that cleaned it up for you. Thanks!
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Panda won't play with Plesk 12.1.21

Unread post by faris »

Mostly. Thank you.

There's an odd message during installation: ("Option -clipath requires parameters") for 5.4 but not 5.6:

Code: Select all

Downloading Packages:
plesk-php-panda-0.7-7.el6.art.x86_64.rpm                                                              | 7.8 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : plesk-php-panda-0.7-7.el6.art.x86_64                                                                      1/1
The new PHP handler with the id "fastcgi-54" was successfully registered.
Option -clipath requires parameters


The new PHP handler with the id "fastcgi-56" was successfully registered.
  Verifying  : plesk-php-panda-0.7-7.el6.art.x86_64                                                                      1/1

Installed:
  plesk-php-panda.x86_64 0:0.7-7.el6.art

Complete!


But they appear to be installed, and are selectable from the panel:

Code: Select all

]# /usr/local/psa/bin/php_handler --list
                  id:  display name:  full version:  version:    type:                                       cgi-bin:                                   php-cli:                                   php.ini:  custom:  status:
           fastcgi-54     Atomic 5.4         5.4.40       5.4  fastcgi  /opt/atomic/atomic-php54/root/usr/bin/php-cgi  /opt/atomic/atomic-php54/root/usr/bin/php  /opt/atomic/atomic-php54/root/etc/php.ini     true  enabled
           fastcgi-56     Atomic 5.6          5.6.8       5.6  fastcgi  /opt/atomic/atomic-php56/root/usr/bin/php-cgi  /opt/atomic/atomic-php56/root/usr/bin/php  /opt/atomic/atomic-php56/root/etc/php.ini     true  enabled
              fastcgi          5.3.3          5.3.3       5.3  fastcgi                               /usr/bin/php-cgi                               /usr/bin/php                               /etc/php.ini    false  enabled
                  fpm          5.3.3          5.3.3       5.3      fpm                              /usr/sbin/php-fpm                               /usr/bin/php                               /etc/php.ini    false  enabled
                  cgi          5.3.3          5.3.3       5.3      cgi                               /usr/bin/php-cgi                               /usr/bin/php                               /etc/php.ini    false  enabled
      plesk-php56-cgi          5.6.3          5.6.3       5.6      cgi                 /opt/plesk/php/5.6/bin/php-cgi                 /opt/plesk/php/5.6/bin/php             /opt/plesk/php/5.6/etc/php.ini     true  enabled
  plesk-php56-fastcgi          5.6.3          5.6.3       5.6  fastcgi                 /opt/plesk/php/5.6/bin/php-cgi                 /opt/plesk/php/5.6/bin/php             /opt/plesk/php/5.6/etc/php.ini     true  enabled
               module          5.3.3          5.3.3       5.3   module                               /usr/bin/php-cgi                               /usr/bin/php                               /etc/php.ini    false  enabled
A manual installation (having removed first) seems to work:

Code: Select all

# /usr/local/psa/bin/php_handler --add -displayname "Atomic 5.4" -path "/opt/atomic/atomic-php54/root/usr/bin/php-cgi" -phpini "/opt/atomic/atomic-php54/root/etc/php.ini" -clipath "/opt/atomic/atomic-php54/root/usr/bin/php" -type fastcgi -id "fastcgi-54"
The new PHP handler with the id "fastcgi-54" was successfully registered.


Question: What is the purpose of /opt/atomic/atomic-phpXX/root/etc/php-fpm.conf (and php-fpm.d) when these are a FastCGI-only builds with apparently no php-fpm support?

Also can I suggest a change in id name style to fastcgi-atomic-xy or the Odin-style atomic-phpXY-fastcgi to avoid potential name clashes when more than one source of additional php versions might be installed?
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8330
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Panda won't play with Plesk 12.1.21

Unread post by scott »

Updates going out now.
Question: What is the purpose of /opt/atomic/atomic-phpXX/root/etc/php-fpm.conf (and php-fpm.d) when these are a FastCGI-only builds with apparently no php-fpm support?
They do have fpm support, theres another thread in the forums here about using them that way by a non-CP user.
Also can I suggest a change in id name style to fastcgi-atomic-xy or the Odin-style atomic-phpXY-fastcgi to avoid potential name clashes when more than one source of additional php versions might be installed?
Is there a conflict now?
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Panda won't play with Plesk 12.1.21

Unread post by faris »

OK - seems some of the things I thought I'd learned about php-fpm were not correct, Back to the drawing board.

No, there's no name conflict now. But there could be in the future with other repos, should anyone other than Odin decide they want to contribute.

Anyway, everything seems great now. Thanks Scott.

Code: Select all

Running Transaction
  Installing : plesk-php-panda-0.7-8.el6.art.x86_64                                                                                                                                                                         1/1
The new PHP handler with the id "fastcgi-54" was successfully registered.
The new PHP handler with the id "fastcgi-55" was successfully registered.
The new PHP handler with the id "fastcgi-56" was successfully registered.
  Verifying  : plesk-php-panda-0.7-8.el6.art.x86_64                                                                                                                                                                         1/1

Installed:
  plesk-php-panda.x86_64 0:0.7-8.el6.art

Complete!
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
Post Reply