Thanks. Apologies, in the meantime I went down the route of a fresh install (I only had one domain with some sub domains on there).
After doing this, I have a new problem which may or not be related.
New domain and subdomains create and delete OK from the panel. But, the files do not.
None of the subdomains work. The CyberPanel page shows but when it’s deleted it shows a 403 error.
Looking at the log files, it appears that despite having a subdomain, it looks only to the main domain for website.
The error log shows:
2019-06-10 18:16:41.136741 [INFO] Add #7 suffix handler [lsphp72]->[lsphp72].
2019-06-10 18:16:41.136744 [INFO] Associate [lsphp73] with PHP handler [lsphp73].
2019-06-10 18:16:41.136747 [INFO] Add #8 suffix handler [lsphp73]->[lsphp73].
2019-06-10 18:16:41.136750 [INFO] [config:server:php] Try CloudLinux PHP selector handlers
2019-06-10 18:16:41.136755 [INFO] Create PHP handler [phpsel] with PHP binary [/usr/local/bin/lsphp]
2019-06-10 18:16:41.136761 [INFO] Add #9 suffix handler [phpsel]->[phpsel].
2019-06-10 18:16:41.136785 [INFO] Default PHP handler is [lsphp5], path [/usr/local/lsws/fcgi-bin/lsphp5]
2019-06-10 18:16:41.136792 [INFO] Add #10 suffix handler [php]->[lsphp5].
2019-06-10 18:16:41.136795 [INFO] Add #11 suffix handler [php5]->[lsphp5].
2019-06-10 18:16:41.136798 [INFO] Add #12 suffix handler [php53]->[lsphp53].
2019-06-10 18:16:41.136805 [INFO] Add #13 suffix handler [php54]->[lsphp54].
2019-06-10 18:16:41.136808 [INFO] Add #14 suffix handler [php55]->[lsphp55].
2019-06-10 18:16:41.136810 [INFO] Add #15 suffix handler [php56]->[lsphp56].
2019-06-10 18:16:41.136813 [INFO] Add #16 suffix handler [php70]->[lsphp70].
2019-06-10 18:16:41.136815 [INFO] Add #17 suffix handler [php71]->[lsphp71].
2019-06-10 18:16:41.136818 [INFO] Add #18 suffix handler [php72]->[lsphp72].
2019-06-10 18:16:41.136820 [INFO] Add #19 suffix handler [php73]->[lsphp73].
2019-06-10 18:16:41.136870 [INFO] [/usr/local/lsws/conf/httpd.conf:12] try to add listener: ‘:80’.
2019-06-10 18:16:41.136883 [INFO] [/usr/local/lsws/conf/httpd.conf:13] try to add listener: ‘[::]:80’.
2019-06-10 18:16:41.136889 [INFO] [/usr/local/lsws/conf/httpd.conf:14] try to add listener: ':443’.
2019-06-10 18:16:41.136895 [INFO] [/usr/local/lsws/conf/httpd.conf:15] try to add listener: ‘[::]:443’.
2019-06-10 18:16:41.137002 [INFO] Processing config file: /usr/local/lsws/conf/modsec.conf
2019-06-10 18:16:41.137002 [INFO] Processing config file: /usr/local/lsws/conf/modsec.conf
2019-06-10 18:16:41.137034 [INFO] Processing config directory: /usr/local/lsws/conf
2019-06-10 18:16:41.137034 [INFO] Processing config directory: /usr/local/lsws/conf
2019-06-10 18:16:41.137078 [ERROR] [/usr/local/lsws/conf/modsec.conf:19] Failed to get absolute path for [/usr/local/lsws/conf/rules.conf/(null)]!
2019-06-10 18:16:41.137078 [ERROR] [/usr/local/lsws/conf/modsec.conf:19] Failed to get absolute path for [/usr/local/lsws/conf/rules.conf/(null)]!
2019-06-10 18:16:41.137089 [INFO] Processing config file: /usr/local/lsws/conf/vhosts/revolutionlearning.com/vhost.conf
2019-06-10 18:16:41.137089 [INFO] Processing config file: /usr/local/lsws/conf/vhosts/revolutionlearning.com/vhost.conf
2019-06-10 18:16:41.137120 [INFO] Processing config file: /usr/local/lsws/conf/vhosts/tools.revolutionlearning.com/vhost.conf
2019-06-10 18:16:41.137120 [INFO] Processing config file: /usr/local/lsws/conf/vhosts/tools.revolutionlearning.com/vhost.conf
2019-06-10 18:16:41.146541 [ERROR] [/usr/local/lsws/conf/vhosts/tools.revolutionlearning.com/vhost.conf:29] Listener for default is not available!
2019-06-10 18:16:41.146541 [ERROR] [/usr/local/lsws/conf/vhosts/tools.revolutionlearning.com/vhost.conf:29] Listener for default is not available!
2019-06-10 18:16:41.146611 [INFO] [UDP:10.2.6.147:80] initPacketsIn: allocated 100 packets
2019-06-10 18:16:41.146630 [INFO] [UDP:127.0.0.1:80] initPacketsIn: allocated 100 packets
2019-06-10 18:16:41.146646 [INFO] [UDP:94.237.50.15:80] initPacketsIn: allocated 100 packets
2019-06-10 18:16:41.146659 [INFO] [UDP:[::1]:80] initPacketsIn: allocated 100 packets
2019-06-10 18:16:41.146673 [INFO] [UDP:[2a04:3541:1000:500:1cc3:46ff:fe14:8c0]:80] initPacketsIn: allocated 100 packets
2019-06-10 18:16:41.146684 [INFO] [UDP:10.2.6.147:443] initPacketsIn: allocated 100 packets
2019-06-10 18:16:41.146695 [INFO] [UDP:127.0.0.1:443] initPacketsIn: allocated 100 packets
2019-06-10 18:16:41.146704 [INFO] [UDP:94.237.50.15:443] initPacketsIn: allocated 100 packets
2019-06-10 18:16:41.146716 [INFO] [UDP:[::1]:443] initPacketsIn: allocated 100 packets
2019-06-10 18:16:41.146726 [INFO] [UDP:[2a04:3541:1000:500:1cc3:46ff:fe14:8c0]:443] initPacketsIn: allocated 100 packets
[Mon Jun 10 18:16:41 2019] [notice] Finish reading Apache configuration, server configured – resuming normal operations
2019-06-10 18:16:41.146992 [NOTICE] litespeed (7723) is ready
2019-06-10 18:16:41.147239 [NOTICE] [AutoRestarter] new child process with pid=7726 is forked!
2019-06-10 18:16:41.149102 [NOTICE] [Child: 7726] Setup swapping space…
2019-06-10 18:16:41.149135 [NOTICE] [child: 7726] Successfully change current user to nobody
2019-06-10 18:16:41.149140 [NOTICE] [Child: 7726] Core dump is enabled.
2019-06-10 18:16:41.149225 [ALERT] [Child: 7726] LiteSpeed/5.3.5 Enterprise starts successfully!
Seemingly, there is a problem with VHOSTS Listener
Main log file shows
[06-10-38-Mon-Jun-2019] [Errno 2] No such file or directory: ‘/home/tools.revolutionlearning.com’ [Not able to remove virtual host directory from /home continuing…]
[06-11-46-Mon-Jun-2019] [Errno 17] File exists: '/home/revolutionlearning.com/public_html/tools.revolutionlearning.com’329 [Not able to create directories for virtual host [createDirectoryForDomain]]
Any ideas?
The sub-domain would be tools.maindomain.com