Reputation: 548
What I attempt: php folder/file
I get command not found
The PHP location is /usr/local/bin/php-7.0
Upvotes: 1
Views: 1513
Reputation: 311228
The executable seems to be named php-7.0
:
$ /usr/local/bin/php-7.0 /path/to/file.php
Instead of call the fully qualified path, you could make sure that /usr/local/bin
is in your $PATH, e.g.:
$ export PATH=${PATH}:/usr/local/bin
and then call php-7.0
:
$ php-7.0 /path/to/file.php
Upvotes: 1