After installing all the required packages httpd server is running but I am having trouble configuring it with virtualmin . Like I cant configure ssl on my website. here is the screenshot.
You should find that the security patches in 2.4.54 are rolled into the httpd 2.4.6 package released by Red Hat. There is a CVE list available if you search using Google.
This was a mistake, you should not install random from-source software on a production server. The security risks you face will now be much higher, and you’ll pay a cost in maintenance time forever going forward. The only reasonable way to manage a server is with packages. Even having a compiler on a production system is a code smell, indicative of problems.
PCI compliance companies understand that OS vendors have patched versions of packages. The CentOS 7 package is well-understood by the PCI folks, you just need to show them you’re up to date with your OS packages.
If you insist on going this route, we’ll have a hard time helping you, because now your system is completely unpredictable. We have no idea where you put your installation of Apache (and Webmin doesn’t either, which is why you have this error). You’ll have to tell Webmin in the Webmin->Servers->Apache Web Server module configuration where you put it (it’ll be somewhere in /usr/local, probably, if you just used the defaults when configuring your build).
Also, if you need new software, you should be using a newer distribution. CentOS 7 is over 7 years old. Rocky, Alma, or RHEL 8 or 9 (8 is better tested with Virtualmin, but 9 should also work) would be a good choice for someone familiar with CentOS.