PHP not working

General Tech Bugs & Fixes 3 years ago

2.93K 2 0 0 0

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago

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?

0 views
0 shares

profilepic.png
manpreet 3 years ago
apt-get -y install php

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


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum