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, February 7, 2014

Bash crontab not found

Bash crontab not found

If you are using CentOS / Fedora /RHEL
$ sudo yum install vixie-cron
If you are using Ubuntu / Debian
$ sudo apt-get install cron

Ubuntu - no wireless extensions / No wireless connections appeared to enable

Ubuntu - no wireless extensions

If you are using ubuntu and you have enabled wireless network, your wireless is working fine for other devices but ubuntu does not show wireless connections.

If you run command iwconfig in terminal and it shows no wireless extensions.

Here is solution for you.

Install following packages in your ubuntu. Run the command in terminal.
$ sudo apt-get install b43-fwcutter firmware-b43-installer
Restart ubuntu. Now you should be able to see wireless connections in notification area.
Run command iwconfig.

Note : Check if a wireless card has been implemented in your system.
# lspci | grep "Network controller" 
If there is no output, it means it is not implemented yet.