• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question How to add and enable mod_php7.0?

Hotte

New Pleskian
As I only host one website on that dedicated machine (plenty of RAM) I look to use the apache in prefork mode with mod_php7.0 and as less modules as possible.

I allready did install php7.0.22 with all the modules (common,...mysql,zip,xml.... and libap2-mod-php7.0)
cli is running that 7.0.22:
"root@cgn /etc/psa # php -v
PHP 7.0.22-1~dotdeb+8.1 (cli) ( NTS ) Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.22-1~dotdeb+8.1, Copyright (c) 1999-2017, by Zend Technologies"

Plesk shows php7.0 in Apache-Settings
apache_php7.png


I did try to change php_handler "module" to run php7.0 but can't chnage by using php_handler update or add

also changing settings in php_versions.json did not help me.

Any suggestions ?
 
Last edited:
I can not add it like this... or replace module 5.6.x with --update

~like this:
plesk bin php_handler \
--update \
-displayname "mod_php7.0.22" \
-path /usr/bin/php-cgi7.0 \
-cli-path /usr/bin/php7.0 \
-phpini /etc/php/7.0/apache2/php.ini \
-type module \
-id "module7.0

OUTPUT (add): Wrong syntax for command's '-type' parameter. 'module' does not match the pattern '/^(cgi|fastcgi|fpm)$/'.

or do i have to wait for debian9 that php7 will become by os vendor ? :)

Should I edit /etc/psa/php_versions.d/php-module.conf ?? SAFE ?
 
Last edited:
Back
Top