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

PHP_BINARY not returning the correct value #35

Open
killpond opened this issue Dec 14, 2017 · 0 comments
Open

PHP_BINARY not returning the correct value #35

killpond opened this issue Dec 14, 2017 · 0 comments

Comments

@killpond
Copy link

If I run the following in Web Console...

php -r 'echo "PHP Path : ".PHP_BINARY;'

Expected result...

PHP Path : /usr/bin/php7.0

Actual result...

PHP Path :

If I then run the following in Web Console...

/usr/bin/php7.0 -r 'echo "PHP Path : ".PHP_BINARY;'

I get...

PHP Path : /usr/bin/php7.0

If I then run the following via SSH on the server as the web user (It is a docker container fresh Ubuntu image)...

php -r 'echo "PHP Path : ".PHP_BINARY;'

I get...

PHP Path : /usr/bin/php7.0

The server has a number of symbolic links involved in the PHP look up but ultimately it is just a standard PHP7 APT Ubuntu install...

$ ls -la /usr/bin/php
lrwxrwxrwx 1 root root 21 Nov 20 15:26 /usr/bin/php -> /etc/alternatives/php

$ ls -la /etc/alternatives/php
lrwxrwxrwx 1 root root 15 Nov 20 15:26 /etc/alternatives/php -> /usr/bin/php7.0

$ ls -la /usr/bin/php7.0
-rwxr-xr-x 1 root root 4430896 Aug  9 14:43 /usr/bin/php7.0
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