These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for PHP 7.0 on the new forum.
This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
I'm not sure if this is a Virtualmin or Webmin question so I'll start here...
So I'm a newb to the *min family...
I am running Debian 8 because it was on the video and it seem a logical choice...
I'm almost wondering if I should switch back to CentOS7 as it seems there is more community support for php 7 and CentOS 7.
Anyway - for now I'll stick with Debian 8...
(I'm wanting php7 because one of the WordPress plugins I use needs PHP7 and ioncube loader for php7 so this webmin/virtualmin set up is for me not customers so I'm a little more open to break/fix by trial and fire than I would be with client sites)
I found the following article Install "php 7 on virtualmin 5 with debian 8" by riri1310
I followed the steps described and I didn't read anything more from him or anyone else and it appeared he solved his own question...
However when I get to the 2nd to last step mentioned: "And change location (php7 instead of php5) in the webmin interface Other/Php configuration"
I don't know enough about Debian or virtualmin/webmin to know what I'm leaving out.
I went to Webmin --> others --> PHP configuration -- then I tried to change the listed parameters from:
Configurable options for PHP Configuration
/etc/php7/apache2/php.ini=Configuration for mod_php
/etc/php7/cgi/php.ini=Configuration for scripts run via CGI
/etc/php7/cli/php.ini=Configuration for command-line scripts
I hit save and received : No PHP configuration files were found. Adjust the module configuration to set the correct path to the global PHP config file
I checked to make sure that I didn't do something stupid like not actually changing php to php 7, and so i did php-v
it looks to my tired eyes like I've got php7 installed:
root@jerusalem:~# php -v
PHP 7.0.15-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.15-1~dotdeb+8.1, Copyright (c) 1999-2017, by Zend Technologies
I had also done:
service apache2 restart
service apache2 reload
I'm having no luck still No PHP configuration files were found. Adjust the module configuration to set the correct path to the global PHP config file
What boneheaded thing am I missing because of my crisp-newbness on virtualmachine and Debian 8?
Global PHP configuration files (In filename=description format)
/etc/php/7.0/apache2/php.ini=Configuration for mod_php
/etc/php/7.0/cgi/php.ini=Configuration for scripts run via CGI
/etc/php/7.0/cli/php.ini=Configuration for command-line scripts
I'm not sure if this is a Virtualmin or Webmin question so I'll start here...
So I'm a newb to the *min family...
I am running Debian 8 because it was on the video and it seem a logical choice...
I'm almost wondering if I should switch back to CentOS7 as it seems there is more community support for php 7 and CentOS 7.
Anyway - for now I'll stick with Debian 8...
(I'm wanting php7 because one of the WordPress plugins I use needs PHP7 and ioncube loader for php7 so this webmin/virtualmin set up is for me not customers so I'm a little more open to break/fix by trial and fire than I would be with client sites)
I found the following article Install "php 7 on virtualmin 5 with debian 8" by riri1310
I followed the steps described and I didn't read anything more from him or anyone else and it appeared he solved his own question...
However when I get to the 2nd to last step mentioned: "And change location (php7 instead of php5) in the webmin interface Other/Php configuration"
I don't know enough about Debian or virtualmin/webmin to know what I'm leaving out.
I went to Webmin --> others --> PHP configuration -- then I tried to change the listed parameters from: Configurable options for PHP Configuration /etc/php7/apache2/php.ini=Configuration for mod_php /etc/php7/cgi/php.ini=Configuration for scripts run via CGI /etc/php7/cli/php.ini=Configuration for command-line scripts
I hit save and received : No PHP configuration files were found. Adjust the module configuration to set the correct path to the global PHP config file
I checked to make sure that I didn't do something stupid like not actually changing php to php 7, and so i did php-v it looks to my tired eyes like I've got php7 installed: root@jerusalem:~# php -v PHP 7.0.15-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.15-1~dotdeb+8.1, Copyright (c) 1999-2017, by Zend Technologies
I had also done: service apache2 restart service apache2 reload
I'm having no luck still No PHP configuration files were found. Adjust the module configuration to set the correct path to the global PHP config file
What boneheaded thing am I missing because of my crisp-newbness on virtualmachine and Debian 8?
Any help appreciated
Disregard this posting- unless anyone else has questions on this - moderators can close this
Global PHP configuration files (In filename=description format)
/etc/php/7.0/apache2/php.ini=Configuration for mod_php
/etc/php/7.0/cgi/php.ini=Configuration for scripts run via CGI
/etc/php/7.0/cli/php.ini=Configuration for command-line scripts