apache2buddy icon indicating copy to clipboard operation
apache2buddy copied to clipboard

Use of uninitialized value $apache_proc_php in string eq

Open dceonline opened this issue 11 months ago • 1 comments

Hi,

trying to use your cool script on my Cloud-Server with Debian12. Got the following Message:

Could not open input file: Found. Use of uninitialized value $apache_proc_php in concatenation (.) or string at - line 2524 (#1) (W uninitialized) An undefined value was used as if it were already defined. It was interpreted as a "" or a 0, but maybe it was a mistake. To suppress this warning assign a defined value to your variables.

To help you figure out what was undefined, perl will try to tell you
the name of the variable (if any) that was undefined.  In some cases
it cannot do this, so it also tells you what operation you used the
undefined value in.  Note, however, that perl optimizes your program
and the operation displayed in the warning may not necessarily appear
literally in your program.  For example, "that $foo" is usually
optimized into "that " . $foo, and the warning will refer to the
concatenation (.) operator, even though there is no . in
your program.

[ -- ] Your PHP Memory Limit (Per-Process) is . Use of uninitialized value $apache_proc_php in string eq at - line 2525 (#1)

Maybe it is a bug or a OS related error. Or i have missed to config the server correct at any point. Dont know.

regards Ortwin

dceonline avatar Mar 16 '24 11:03 dceonline

Hi again,

i think i know what triggers this error. Because i am not using default install of php - i only have set to php versions with php-fpm support - there is no php bin under /usr/bin/php and your script cannot get the value for the setting of memory_limit. Can i tell your script which version of php it may use for testing purpose?

regards Ortwin

dceonline avatar Mar 16 '24 12:03 dceonline