Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sub detect_php_memory_limit has hardcoded php executable path #409

Open
richardforth opened this issue Mar 22, 2023 · 0 comments
Open

sub detect_php_memory_limit has hardcoded php executable path #409

richardforth opened this issue Mar 22, 2023 · 0 comments

Comments

@richardforth
Copy link
Owner

richardforth commented Mar 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant