1

What I attempt: php folder/file I get command not found

The PHP location is /usr/local/bin/php-7.0

Mureinik
  • 297,002
  • 52
  • 306
  • 350
RWS
  • 538
  • 5
  • 14

1 Answers1

1

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
Mureinik
  • 297,002
  • 52
  • 306
  • 350