How can I upgrade to PHP 5.5.9


(Thorsten) #1

NethServer Version: 7


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).


(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.

(Thorsten) #3

first brick in the wall THX … now I need another:
In enabled and 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 and 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:

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

(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: