Cobra Forum

Plesk Panel => Webserver => Topic started by: mahesh on Jan 02, 2025, 06:38 AM

Title: Subdomains on Plesk server showing Server Default page after creation
Post by: mahesh on Jan 02, 2025, 06:38 AM
Symptoms

#service httpd status
litespeed is running with PID 51813

#/usr/local/psa/admin/bin/httpdmng --reconfigure-all
Warning: DocumentRoot [/var/www/vhosts/example.com/example2.com] does not exist
Syntax error on line 49 of /etc/httpd/conf/plesk.conf.d/webmails/example.com_webmail.conf:
SSLCACertificateFile: file '/usr/local/psa/var/certificates/certO6cmTF' does not exist or is empty

Cause
Apache configuration is broken, thus, Litespeed directly reads Apache Configuration and since Apache configuration is not being generated on the server, Litespeed won't be able to read it.

Resolution
1.Connect to the server via SSH.

2.Switch to Apache web server using the following command:

#/usr/local/lsws/admin/misc/cp_switch_ws.sh apache
3.Fix certificate error by proceeding with the following solution

if the domain is still present on the server:
Note: If the domain was removed previously from the server, apply the solution from the article.

4.Fix DocumentRoot error by creating missing directories as in the article.

5.Try to start Apache with the following command:

#service apache start
6.Repeat steps 3-5 if errors for other domains show up.

7.After Apache started, reconfigure webserver configuration files:

#/usr/local/psa/admin/bin/httpdmng --reconfigure-all
8.Switch back to LiteSpeed:

#/usr/local/lsws/admin/misc/cp_switch_ws.sh lsws