Skip to main content

Unable to install PHP

I can't install PHP on my raspberry pi. I did sudo apt-get install php libapache2-mod-php php-mcrypt and then showed me this:

Reading state information... Done
E: Unable to locate package php
E: Unable to locate package libapache2-mod-php
E: Unable to locate package php-mcrypt

On my sources.list I got this:

deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi

I don't know what to do