How can I upgrade to PHP 5.5.9

v7
php

(Thorsten) #1

NethServer Version: 7

Hi,

is there any option to upgrade to PHP 5.5.9? Today I tried to install Matomo (formaly Piwik) web site analytiks - it request a higher PHP version - 5.4.16 is not accepted (whyever).

TIA
Thorsten


(Markus Neuberger) #2

Following module installs PHP 5.6, 7.0 and more. You could setup the php version for virtualhosts in the web UI.

https://wiki.nethserver.org/doku.php?id=php-scl


(Thorsten) #3

first brick in the wall THX … now I need another:
In enabled pdo.so and pdo_mysql.so within php.ini. How can I restart apache? is it

apachectl restart

?
If so, something is wired: My servers takes extremly long. I interrupted using [CRTL]+C and did a reboot …

Next: how do I add pdo.so and pdo_mysql.so to php.ini within e-smith database as decribed by @stephdl?


(Dan) #4

systemctl restart httpd (though you can use reload instead of restart).


(Thorsten) #5

THX… Changing from Ubuntu (lucid lynx) to CentOs 7 is more difficult than expected …


(Markus Neuberger) #6

For example add configuration for PHP70 with a custom template:

mkdir -p /etc/e-smith/templates-custom/etc/opt/remi/php70/php.ini/

Create a file /etc/e-smith/templates-custom/etc/opt/remi/php70/php.ini/90pdo with the wanted extensions:

extension=pdo.so
extension=pdo_mysql.so

Apply the config:

signal-event nethserver-php-scl-update


(Jeroen Visser) #7

Please be aware of the e-smith system. You are not just changing to CentOS. You are also adopting e-smith, a templating system for your config files. Not really grasping that has costed me countless hours of debugging, tho I don’t wanna go without it now.


(Stéphane de Labrusse) #8

and also the esmith specific command line

https://wiki.nethserver.org/doku.php?id=howto:db_command_tutorial


(Thorsten) #9

Thanks a lot this helps very much.
Even though pdo extensions seem to be added by default, the info will help me on my freeradius->ldap experiments.

By the way I got Piwik installed and running using LDAP auth from nethserver :slight_smile: