Showing posts with label /usr/bin/env: php: No such file or directory. Show all posts
Showing posts with label /usr/bin/env: php: No such file or directory. Show all posts

Saturday, February 8, 2014

/usr/bin/env: php: No such file or directory

/usr/bin/env: php: No such file or directory

If you are getting this error, It means you do not have certain packages.
You need to install them.

If you are using Ubuntu / Debian or any apt based Linux distribution,
Run following command.
$ sudo apt-get install php5-cli
If you are still facing this problem, try to install these packages.
$ sudo apt-get install php5
and
$ sudo apt-get install libapache2-mod-php5

If you are using Fedora / CentOS / RHEL,
Run following command.
$ sudo yum install php-cli
If you are still facing this problem, try to install this.
$ sudo yum install php

Friday, July 12, 2013

/usr/bin/env: php: No such file or directory

/usr/bin/env: php: No such file or directory

If you are getting this error, it means php is not installed or the file is corrupted.
Install it using
$ sudo apt-get install php5-cli
If you are still getting the error, Install all php packages using
$ sudo apt-get install php5 $ sudo apt-get install libapache2-mod-php5