I was using php 5.6
and accidentally I messed something up, I'm new to ubuntu and php so I didn't know what I was doing wrong after some time I found out that when I run the command sudo systemctl status php5.6-fpm
I get this error Unit php5.6-fpm.service could not be found.
which indicates that I need to install php-fpm I get a same kind of error when I run this command sudo systemctl status php
to fix this issue I tried to install php5.6-fpm
and php5.6-cli
using the command sudo apt-get install php5.6-fpm php5.6-cli
but I'm getting this error
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php5.6-fpm
E: Couldn't find any package by glob 'php5.6-fpm'
E: Couldn't find any package by regex 'php5.6-fpm'
E: Unable to locate package php5.6-cli
E: Couldn't find any package by glob 'php5.6-cli'
E: Couldn't find any package by regex 'php5.6-cli'
before running the installation command I had ran this command to add the repository
sudo add-apt-repository ppa:ondrej/php
I don't know how I can fix this issue and install php-fpm so I would love to get some help. I'm using ubuntu 18.04
Unlike the question where the problem is that php8 is not supported by ubuntu 18.04 in my case php5.6 is supported by ubuntu 18.04 and I was using it before I messed up my system
Thanks