I have installed Apache on my Raspberry Pi without incident. However, I cannot install PHP correctly after having tried various methods. It appears to have installed but I cannot get PHP to output. I started with the well known tutorials here and others which describe the same steps. If I type php -v
I get the following output:
PHP 5.6.30-0+deb8u1 (cli) (built: Apr 14 2017 16:20:58)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
More importantly, running apt-get update now gives me lots of errors such as:
Err http://repozytorium.mati75.eu jessie-backports/main armhf Packages
Bad header line [IP: 212.129.7.250 80]
Err http://repozytorium.mati75.eu jessie-backports/contrib armhf Packages
Bad header line [IP: 212.129.7.250 80]
Err http://repozytorium.mati75.eu jessie-backports/non-free armhf Packages
Bad header line [IP: 212.129.7.250 80]
Err http://repozytorium.mati75.eu jessie-backports/contrib Translation-en_GB
Bad header line [IP: 212.129.7.250 80]
Err http://repozytorium.mati75.eu jessie-backports/contrib Translation-en
Bad header line [IP: 212.129.7.250 80]
Err http://repozytorium.mati75.eu jessie-backports/main Translation-en_GB
Bad header line [IP: 212.129.7.250 80]
Err http://repozytorium.mati75.eu jessie-backports/main Translation-en
Bad header line [IP: 212.129.7.250 80]
and then further down:
W: Failed to fetch http://repozytorium.mati75.eu/raspbian/dists/jessie-backports/main/binary-armhf/Packages Bad header line [IP: 212.129.7.250 80]
W: Failed to fetch http://repozytorium.mati75.eu/raspbian/dists/jessie-backports/contrib/binary-armhf/Packages Bad header line [IP: 212.129.7.250 80]
W: Failed to fetch http://repozytorium.mati75.eu/raspbian/dists/jessie-backports/non-free/binary-armhf/Packages Bad header line [IP: 212.129.7.250 80]
W: Failed to fetch http://repozytorium.mati75.eu/raspbian/dists/jessie-backports/contrib/i18n/Translation-en_GB Bad header line [IP: 212.129.7.250 80]
W: Failed to fetch http://repozytorium.mati75.eu/raspbian/dists/jessie-backports/contrib/i18n/Translation-en Bad header line [IP: 212.129.7.250 80]
W: Failed to fetch http://repozytorium.mati75.eu/raspbian/dists/jessie-backports/main/i18n/Translation-en_GB Bad header line [IP: 212.129.7.250 80]
W: Failed to fetch http://repozytorium.mati75.eu/raspbian/dists/jessie-backports/main/i18n/Translation-en Bad header line [IP: 212.129.7.250 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
In the course of my PHP installation, I had to add the references to repozytorium.mati75.eu
and that's a big part of the problem apparently. My sources.list
looks like this:
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free
#deb-src http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free
What am I doing wrong and how can I fix it?