GigaNova GigaNova - 1 year ago 123
Linux Question

Debian: PHP7 not working

I installed PHP7 on Debian but the PHP command is still not found.

I also cannot install it from the repositories as it will simply tell me that

"php7.0 is not found"
nor any other component like CLI.

If I use

sudo add-apt-repository ppa:ondrej/php

It still tells me that it can't find php7.0 through regex.

Please Guide me.

Answer Source

Add dotdeb repository to install php7.

First add these lines to your /etc/apt/sources.list

deb jessie all
deb-src jessie all

If you prefer more local mirrors then use one from this page:

Then download public pgp key of dotdeb

wget && apt-key add dotdeb.gpg && apt-get update

After that install php 7 via

apt-get install php
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download