0

So today I tried to run my old php website and it didn't work but I knew I installed php so I tried installing it again but couldn't.

It gave me this error:

hyperx@Hyperx:~$ sudo apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate
hyperx@Hyperx:~$

Nor is mysql running. How could I fix that or install it?

Eliah Kagan
  • 119,640

1 Answers1

1
apt-get -y install php

It's a virtual package that depends on the latest default version of PHP ...

DepressedDaniel
  • 681
  • 4
  • 10