Saturday, March 8, 2014

Centos - 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

Centos - 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

If you are trying to download packages using terminal and you are facing this error, try this solution.

Open file /etc/resolv.conf, add following line in the file and save it.
nameserver 8.8.8.8

8.8.8.8 is google's public DNS address.


Now restart networking and try to install packages again.

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