i will be change the default php Default web stack. i have nethserver 7.6 with php 5.4 default webstack.
but i have some problems with old php handler. its possible run php7 as default ? what is the best way to change it.
i cant find any option on webgui.
best case i can controll in webgui php-version via vhost.
because i have some problems with secure and freebdx. freebdx version 14.0.13.4 and i cant reset session as example.
i have found in the old webgui 980 port the php settings over stephdl rep. its installed and i have select as default php7 but it doesnt work fine.
server header say
Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16
Even with the option of php-scl, I agree there should be a new(er) base version for php in NS. I know we follow upstream on this but we also can not ignore the official php support: https://www.php.net/supported-versions.php
php5 (all versions!) are eol since 1 jan 2019
php7.0 is also eol since 1 jan 2019
php7.1 already entered security updates only
php7.2 is out of active support and enters security updates only on dec 1st 2019
I know RH supports the eol versions that are shipped with the distro (and CentOS follows that path), but stillā¦ we encounter loads of applications that just need a newer version of php.
Iām not a huge fan of RedHatās methodology here, but itās pretty common among other āstableā, server-oriented OSs (see also Debian, FreeBSD, etc.), and I do understand the logic for it. But why is it a problem, such that weād need a newer base version? Install php-scl, set the default version to 7.2 (or whatever), and youāre good to go.
What the server headers say doesnāt matter. If youāve set the root folderās version as desired (see below):
ā¦then thatās the version thatās running there. If you want to test, create a file there called test.php with contents of <?php phpinfo(); ?>. Browse to it, and youāll see something like this:
i have successfully switched php dealers via webgui. thx @ll
all have now a current php version. only with freepbx ā¦ i always have one and the same session in the webgui.
unfortunately i canāt log in. also the command āfwconsole unlock sessionidā returns the following error it would be an invalid session. even after a reload i always have the same session.
i have tried to install and uninstall freepbx several times. unfortunately without success.
i always see the webgui but canāt login. i think it is a chmod problem ?
here all log excerpts:
log from install:
Installing pm2ā¦
Installing/Updating Required Libraries. This may take a whileā¦The following messages are ONLY FOR DEBUGGING. Ignore anything that says āWARNā or is just a warning
mkdir: cannot create directory ā/var/www/html/freepbx/admin/modules/pm2/node/logsā: Permission denied
The command ārunuser āasteriskā -c 'cd /var/www/html/freepbx/admin/modules/pm2/node && mkdir -p /home/asterisk/.pm2 && mkdir -p /var/www/html/freepbx/admin/modules/pm2/node/logs && export HOME=ā/home/asterisk" && export PM2_HOME="/home/asterisk/.pm2" && export ASTLOGDIR="/var/log/asterisk" && export ASTVARLIBDIR="/var/lib/asterisk" && export PATH="$HOME/.node/bin:$PATH" && export NODE_PATH="$HOME/.node/lib/node_modules:$NODE_PATH" && export MANPATH="$HOME/.node/share/man:$MANPATH" && npm-cache -vā" failed.
errors in freebdx.log
[2019-Sep-17 21:30:02] [CRITICAL] (admin/bootstrap.php:260) - Connection attmempt to AMI failed
[2019-Sep-17 21:30:02] [freepbx.INFO]: Deprecated way to add Console commands for module certman, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
error in deefault log:
Failed at step RUNTIME_DIRECTORY spawning /usr/sbin/asterisk: File exists