UPDATE: NethServer Version: 7.9.2009 Module: Stephdl Repo (remi) enabled for all Webpages php-fpm 73
Hi together,
my server space constantly runs full due to warning. There is a faulty PHP coding with in my wordpress page, which is running fine.The page runs under PHP 73 (remi).
[root@nethserver ~]# tail -f /var/opt/rh/rh-php73/log/php-fpm/error-avvp.de.log
[22-Jul-2021 09:59:50 UTC] PHP Warning: next() expects parameter 1 to be array, null given in /var/lib/nethserver/vhost/avvp.de/wp-includes/class-wp-hook.php on line 308
[22-Jul-2021 09:59:50 UTC] PHP Warning: current() expects parameter 1 to be array, null given in /var/lib/nethserver/vhost/avvp.de/wp-includes/class-wp-hook.php on line 291
[22-Jul-2021 09:59:50 UTC] PHP Warning: Invalid argument supplied for foreach() in /var/lib/nethserver/vhost/avvp.de/wp-includes/class-wp-hook.php on line 294
This slows down the server. This fills up the diskspace (dozends of GB within minutes!) until the server is not usable any more. I have to manually truncate the file:
So far so good (bad). Until the problem with the code of the page, wordpress-plugin or whatever is fixed, I want to alter the log level in php-fpm.conf
[root@nethserver ~]# vim /etc/opt/rh/rh-php73/php-fpm.conf +44
; Log level
; Possible Values: alert, error, warning, notice, debug
; Default Value: notice
log_level = error
systemctl restart php73-php-fpm
service httpd restart
But this has no effect. The warnings are still there. Am I missing something? I know the problem sits between the screen and the back of my chair
It would be nice to know at what version your server is running? The latest 7.9 or an older versionâŠ
As a Tip: In the newest version of NethServer, 7.9 incl. updates, PHP 73 (remi) is considered deprecated - NethServer now includes the PHP from Epel, if Iâm not mistaken. The functionality to choose PHP versions is available under vhostsâŠ
thanks for the comment - but forgive me and due to all respect, but ânormalâ is if a system works as âexpectedâ, and not with âhidden featuresâ. This is an absolute no go. PHP is THE platform for all modern websites (e.g. wordpress) or webservices. This is really a showstopper.
Nevertheless: overall I am very pleased with Nethserver. It is very stable and works like a charm Very good work!
Hi Axel, may I disagree with you?
If you enjoy and need that much PHP, you should be well skilled for install, maintain, update, assess, secure and connect that framework. A this should be a nice asset to monetize in your job.
OrâŠ
As many other users like me, you should only need some PHP of the right version, âworkingâ and ânot being holed like gruyere or emmenthalerâ, with a common sense for avoiding nuclear catastrophes, like someone exploiting the installed PHP application on your server and exposing to the risk of a contract termination from the hosting provider or the ISP. They donât like being adverdised as âspam sourceâ.
PHP is one of the most used web application framework nowayads, not the only one.
@pike : sorry, cannot follow and agree to this off topic argument We donât talk about web development here. We are talking about usability.
I personally think the administrators point of view âyou should know what you do and you are responsible for what you do, get yourself a managed serviceâ is not very helpful at all - sorry. Clear words.
Fact is: switch the php version without hazzle to ensure the most effective security level is not possible without a âhiddenâ feature. I use nethserver - like others do - because I trust it gives me the best framework to do exact these tasks. I used other groupware: Zentyal, Univention, ⊠Nethserver is the best after years of practical work when it comes to everyday tasks, features, configurability, stable update-pipeline, backup and usability.
That said: usability is one of the strength of Nethserver. If the fancy new webgui is in parts âbeta softwareâ or ânot completeâ, it should be clearly defined as such at the entry page or/and the modules subgui (e.g. for virtual servers) should give a warning. This should not be hidden in a âmanual pageâ somewhere. My opinion.
Besides: I know what RTFM means and normally do it :-)).
I am pragmatic, take and use what circumstances need. Thatâs, why I use Nethserver, actual version of PHP and a framework like Wordpress with a (comercial/bought) theme. If this is not enough for a simple web presenve than â⊠we really have a big, big problem.â You can agree or donât I will not change my mind, I too old for such discussions, forgive me
This module provides a support to install php-scl from remi repository inside **nethgui** ,remi repository is the laboratory before to send the rpm to the software collection of redhat.
Actually the virtualhosts panel of cockpit allows to switch the php version too, it uses the rh-php from the software collection of redhat. It is the stable version.
php73 of remi !== rh-php73 of redhat
The two uses different TCP port, the two uses different unix socket, the two are different software.
This module won't be updated the official way now is cockpit with the virtualhosts panel
So nethserver-php-scl is a first work on php scl that use remi php scl. It is a module non official, not anymore maintained
The cockpit page uses rh-php scl but php74 is not available, the project has stopped the support after php73. We do offer php80 from remi