Apache Webserver won't start again after updates today

SYSTEM INFORMATION
OS type and version CentOS Linux 7.9.2009
Webmin version 2.105
Usermin version 2.005
Virtualmin version 7.8.2
Theme version 21.09.5
Package updates All installed packages are up to date

PLEASE HELP
Apache Webserver won’t come on again (it happened once before as well) after updates today

I did the cmd: # systemctl status apache2.service
and got
Unit apache2.service could not be found.

I don’t know if this helps to point to the problem but thought I’d mention…
When I try preview website in some of the webservers it says
ERROR - virtual-server/link.cgi (line 120)

PLEASE HELP
Thanks
ASM2

Looks like apache has been removed for some reason, that’s why you are getting the error that the apache2 service missing.
This could now be the time to do a fresh install with a more modern OS and restore you virtual servers from backups. As you use Centos closest would be Rocky or Alma, but you could switch to a Debian OS such as Debian or Ubuntu.

Reinstall it all?? looks like a big job

Can’t I find the logs to see where the problem is?
where would I find the error logs for apache server?

What were the updates ?

I can’t think of a standard official apt update that would take sown a webserver.

Were these updates to a website by any chance?

Thanks jimr1 and Stegan
I solved it using ChatGpt :smile: :smile:

It was an error in the php.ini file just switched the asp tags off and restarted the Apache Server and Voila!!!

Thanks so much for replying to my plea

Regards
ASM2

Why are you expecting apache2 to exist on a CentOS system?

Apache is called httpd on CentOS.

CentOS does not use apt.

Fair enough. I have never used A Centos system (and am never likely to) I was generalising (I know never a good thing) by apt I was indicating your “package manager” the OP mentioned apache2 so I guess we were all confused.

The imporant thing is that it has been resolved.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.