Para instalar o php no Kali Linux, abra o terminal e digite:
sudo apt install php*
Então você deve poder usar a última versão do php.
Quando tento executar sudo add-apt-repository ppa:ondrej/php
:
Isso me mostra isso
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties /SoftwareProperties.py", line 109, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/ SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Kali/kali-rolling
Para instalar o php no Kali Linux, abra o terminal e digite:
sudo apt install php*
Então você deve poder usar a última versão do php.
Tags apt php kali-linux