Getting this error:
ERROR: Wrong ‘error_reporting’ option value and it wasn’t possible to set it to required value (30711). Check your PHP configuration (including php_admin_flag).
But php-fpm error is allowed on virtual server config. Everything is Default.
Just tested on a spare VS (also Nginx webserver) and it installed no issues. On another quite active VS it has been installed for years and is also chirping with emails all day. /(all using version 1.6.7)
where did the error show up/come from? during the webapp install description?
where precisely? there must be some extra information in a log somewhere.
Roundcube is pretty robust and pretty good at reporting errors. If my PHP (I am very rusty skills I recall) it reports its errors through an (ini_set/ini_get) setting - during setup/initialisation so could be as simple as failure to access a file.
But php-error logging is enabled in the Virtualmin > web configuration > php options > error logging.
I believe that I had edited some default php error reporting from webmin/virtualmin settings but don’t remember what it was. Now I ma stuck with Roundcube for error reporting.
15-Sep-2024 06:34:30] ERROR: [/etc/php-fpm.conf:565] Array are not allowed in the global section
15-Sep-2024 06:34:30] ERROR: failed to load configuration file '/etc/php-fpm.conf'
15-Sep-2024 06:34:30] ERROR: FPM initialization failed
m.service: Main process exited, code=exited, status=78/CONFIG
Setting any error type to display from Webmin > Tools > php config > php-fpm config > error logging, I get this error FPM initialization error. I have to manually remove php_admin_value[log_errors] = On from the fpm default config to restart FPM successfully.
Found The Solution:
Roundcube requires that php_admin_value[error_reporting] = E_ALL & ~E_NOTICE & ~E_STRICT to be set on the virtual server php-fpm config file. Otherwise it will throw this error: ERROR: Wrong ‘error_reporting’ option value and it wasn’t possible to set it to required value (30711). Check your PHP configuration (including php_admin_flag)
Roundcube has always been an essential install on any VM I have set up and is installed before anything else (but immediately after Virtualmin - of course!) PHP these days is not used - so I just accept the default install
and it’s configuration. I only have one client who needs PHP for anything else. Nearly all of them use NodeJS or Go these days.
But I am glad you have found a solution and for pointing us all in the direction.
OK, to clarify: I have only one client that still uses (or has any interest in PHP as a programming language) And as you are already probably aware I am not interested in any client with an interest in WP.
Roundcube is a different matter - IMO it is a solid program and I almost don’t care which language it uses - it seems to keep up to date and I am happy installing it on any VS.
As I indicated most of those who I now get involved with have little interest in PHP and seem to be asking for help with NodeJS apps and even Go or Rust
I spent too many years developing and managing PHP projects (all now history pre- v.7) and mostly forgotten since retirement!
No prob. I sell hosting and it sounds like your more in the development side of things. My client are not developers and do not program and prob know little of php or nodejs.
Getting off topic anyways.