Apache not starting

Description

Hey everyone,

I’ve been trying to get my Apache server set up with Apiscp, but I’m running into some issues with getting my main domain (https://krlit.co.uk/) to properly point to my WordPress site, while my subdomain (https://panel.krlit.co.uk/) should point to the Apiscp control panel.

I’ve configured the DNS records (Hosted on Namecheap) correctly (pointing both A records for krlit.co.uk and panel.krlit.co.uk to my server IP) and I’ve set up VirtualHosts.

But the main domain is still pointing to the Apiscp panel and i cannot figure it out. Is it possible or do i need a reverse proxy or edit .htaccess file?

Steps to Reproduce

Asked chatgpt, it told me to edit the virtualhost file. I went into edit this and it said dont edit, only edit .conf file. I did this but now apache not starting. But syntax is passing.

Expected Behavior

Want my correct domains to go to the correct locations. And apache to start.

Actual Behavior

both domain/subdomain go to the panel

Environment

ApisCP version: revision: 4921e9dac660d66dccd58c0ef39b44009bb9819d
timestamp: 1738426006
ver_maj: 3
ver_min: 2
ver_patch: 0
ver_pre: 4921e9dac
dirty: false
debug: false

Operating System: 4.18.0-553.36.1.el8_10.x86_64

Additional relevant information (e.g., PHP version, database, etc.):

Additional Information

Provide any additional information about the bug, such as error messages, logs, screenshots, or any other relevant details.

[root@panel apnscp]# htrebuild
Reloading httpd: Syntax OK
httpd not running, trying to start
no listening sockets available, shutting down
AH00015: Unable to open logs

Sounds like you have another daemon listening on port 80/443 or the machine is on a floating IP and the IP changed.

If the internal IP changed, see NAT/Private networks > Changing IPs

To check if another service is listening on port 80/443 - shouldn’t be the case:

ss -lptn 'sport = :80 || sport = :443'