Previously operating system was OS version is Debian GNU/Linux 8.11 (jessie) What OS do you have now? How have you installed that OS? It is strange that installing Apache2 would fail. Please tell how you installed the OS and how you then proceeded. At what point in the process does this failing to install Apache occur?
And why do you compile apache now? None of the ISPConfig tutorials tell you to do that and I think it's a really bad decision to compile it, you make your system unmanageable right from the beginning. Ans as @Taleman mentions, apache does not tend to fail to install, so I wonder what you did and which OS you actually used.
I did not install any OS Working on the same broken environment. Code: cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 8 (jessie)" NAME="Debian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=debian HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
And do not use an ancient OS, use a recent one, Debian 10 and if not available, Debian 9 or Ubuntu 18.04. Debian 8 is really really old.
There is one file by name status , It its here Code: /var/lib/dpkg I just removed the apache2 modules mentioned in it, particularly those which were throwing errors. It all started there
Sorry @till and @Taleman for being impatient and just trying things without caring consequences ! But i am determined to give more time to learn Linux from now on.