Mine PHP version is 7.0, so i tried the below command. Me too was facing same problem while Fetching the Postgress Database values using Php so i resolved it by using the below commands. Sudo apt-get install php7.0 php7.0-mcrypt If you just want to install PHP no matter what version it is, try PHP7
Sudo apt-get install php5.6 php5.6-mcrypt Done Package php5-mysql is not available, but is referred to by another package. List installed php packages with dpkg -l | grep php| awk '' |tr '\n' ' '`īased on (thanks must use prefix 'php5.6-' instead of 'php5-' as in ubuntu 14.04 and olders: However if you like you can add a PPA to get those packages anyways: Ubuntu 16.04 comes with PHP7 as the standard, so there are no PHP5 packages This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package php8. I have tried reinstalling but it does not help.Īll this error was encountered after I updated my 15.10 Ubuntu to 16.04 This may mean that the package is missing, has been obsoleted, orĮ: Package 'php5' has no installation candidate
Package php5 is not available, but is referred to by another package. When i try to install php5 in Ubuntu 16.04 by using following code: