apache2buddy icon indicating copy to clipboard operation
apache2buddy copied to clipboard

sub detect_php_memory_limit has hardcoded php executable path

Open richardforth opened this issue 2 years ago • 0 comments

our $apache_proc_php = get_php_setting('/usr/bin/php', 'memory_limit');

Probably should be a bit more dynamic

my $php_exe =  `which php`;
our $apache_proc_php = get_php_setting($php_exe, 'memory_limit');

there may be other places in the script where this is so.

in which case it may be better to set a global variable like

our $php_exe =  `which php`;

and substitute any hardcocded paths with the variable

IF YOU ARE SUFFERING FROM THIS ISSUE, FOR THE TIME BEING TRY SYMLINKING /usr/bin/php TO YOUR PHP EXECUTABLE

richardforth avatar Mar 22 '23 18:03 richardforth