• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

How to add apache module to php_handler

Elliott_Veares

New Pleskian
Hi all and welcome to my first post. I recently upgraded php to php 5.5.15 with this script:

https://gist.github.com/Stayallive/92e841e7dd89c8509c15/download#

and in that script at the bottom a php fast-cgi handler was added with the following code.

Code:
/usr/local/psa/bin/php_handler \
    --add \
    -displayname "5.5.15" \
    -path /php/php-5.5.15/bin/php \
    -phpini /php/php-5.5.15/etc/php.ini \
    -type module \
    -id "module-5.5.15"

However I also want to enable php 5.5.15 as an apache module; how would I do this?

Also if relevent: /usr/local/psa/admin/sbin/php_handlers_control --list shows:

Code:
 id:                 display name:   version:    type:             cgi-bin:                           php.ini:
 module           5.4.33             5.4.33      module         /usr/bin/php-cgi                 /etc/php.ini
 fastcgi            5.4.33             5.4.33      fastcgi         /usr/bin/php-cgi                 /etc/php.ini
 cgi                 5.4.33             5.4.33      cgi              /usr/bin/php-cgi                 /etc/php.ini
fastcgi-5.5.15    5.5.15             5.5.15      fastcgi         /php/php-5.5.15/bin/php-cgi  /php/php-5.5.15/etc/php.ini


Any help much appreciated,

Regards: Elliott.
 
Thanks, but not a lot of help; i all ready have php 5.4 as an apache module using mod_php and wanted to upgrade that.

Is it possible to upgrade from php 5.4 without going the cgi/fcgi route?

Edit: Just installed PHP 5.6.1 as FastCGI and is working fine, may just stick with that.

(Why does plesk come with php 5.3?, so out of date!)
 
Last edited:
Hello Elliott_Veares,

you might have a look at the Parallels - KB-article 118378 :

In your current php_handler - list you already find the answer to all possible handlers ( Apache-module = module / CGI-Application = cgi / FastCGI-Application = fastcgi ) and with the KB-article you should find it quite easy to add the desired handlers.

Hi this guide does not work for adding a module. You describe to use "module" as the type but this errors out with information that the type parameter only takes entries in the format of /^(cgi|fastcgi)$/. Therefore module cannot be used as per this guide.
 
Hi David Walker,

could you pls. clarify, what makes you think, that the apache - module ( mod_php ) is NOT an additional module for your apache webserver?
 
Back
Top