zothen
By:
zothen

Following LAMP tutorial - Php5 "has no potential candidate"

August 20, 2016 10k views
PHP LAMP Stack Ubuntu 16.04

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt is the command, E: package "php5" has no installation candidate is the response, same for libapache2-mod and the other one.

1 Answer

I think that 16.04 uses php 7 by default, but you can just use php and it will choose the latest:

sudo apt-get install php libapache2-mod-php php-mcrypt
  • Thanks! Worked great.

  • I tried but I'm getting the same error running on Ubuntu 15.10:

    E: Package 'php' has no installation candidate
    E: Unable to locate package libapache2-mod-php
    E: Unable to locate package php-mcrypt

Have another answer? Share your knowledge.