Which isn't working on linode servers (Ubuntu 10.04)?
- by chrisjlee
Currently trying to configure a linode server running on ubuntu 10.04. I utilized a stackscript (Default drupal profile) which seemed to run successfully. The log indicate so as well.
Then ssh'd into the server (as root) to try to configure php.
When i run a which php, which php5 they both return nothing. A which python returns something though.
I know where the default path to php but i usually just like to use it as confirmation that php exists.
Do i have to modify some configurations to enable which to work? Also tab completion doesn't seem to work for when i apt-get install?
Update:
Thanks for the suggestions guys. I've ran a couple commands and no luck either:
[ root@ ~ ]
$ dpkg -l |grep php
[ root@ ~ ]
$ apt-get install php5-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package php5-cli has no installation candidate
Then i tried installing php and php cli:
[ root@ ~ ]
$ sudo apt-get install php5 php5-cli
sudo: unable to resolve host xxxxxxx
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package php5 has no installation candidate