Unable to install php in kali linux

When i do “sudo apt install php” it gives this error message:

"Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
php7.4 : Depends: libapache2-mod-php7.4 but it is not installable or
php7.4-fpm but it is not installable or
php7.4-cgi but it is not installable
Depends: php7.4-common but it is not installable
E: Unable to correct problems, you have held broken packages."

Ive tried most of the popular fixes like “sudo apt update --fix-missing” but nothing seem to be working for me. Im a beginner and any help is appreciated.

What did you do after installing Kali?

Are you a beginner with Kali or Linux in general? If the latter, I’m not sure starting with Kali is a good step. This isn’t an end user distribution, it’s specific for people in the security industry with a tailored set of tools. It’s not very user friendly.

i installed a few programms: lscript nmap PhoneInfoga sherlock shodan-eye slowloris wifite2 hashcat HiddenEye and thats it

Did you update?

yes, i did update

Are you trying to develop in PHP or run some sort of exploit?

im trying to run HiddenEye

Try apt search php and see if you have to append 7.3 or something at the end

it didnt show the “append to 7.3 thing”

What’s the output?

there were no errors

So when you typed apt search php nothing happened?

there was a huge output but i cant paste it into the reply box

Look for PHP 7.4 and see what the package name is.

You might be missing a repository required to install it. Maybe try searching around to see how others installed PHP 7.4 on Kali.

Also, I hope what you think you’re about to do is for your job or something.

The use of the HiddenEye & its resources/phishing-pages is COMPLETE RESPONSIBILITY of the END-USER . Developers assume NO liability and are NOT responsible for any misuse or damage caused by this program. Also we inform you that some of your your actions may be ILLEGAL and you CAN NOT use this software to test person or company without WRITTEN PERMISSION from them.

Kali is not a secure nor is it a privacy focused distribution.

2 Likes

i want to learn it for fun but wont use it for malicious activities ofc

okay thanks, will update you if needed