Report this

What is the reason for this report?

Following LAMP tutorial - Php5 "has no potential candidate"

Posted on August 20, 2016

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

yes, it worked for me also. Thanks

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

yes it worked for me also (16.0)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.