Plesk Subdomains Displaying Server Default Pages? Here’s What To Do

Plesk Subdomains Displaying Server Default Pages? Here’s What To Do

When you create a new subdomain in Plesk server, you may notice it’s displaying the default server pages. The problem may persist even when you upload the files. Such default pages may also load in existing subdomains. It will look perplexing at first, but there’s nothing to worry about. You can fix this problem in a few steps.

Cause of the Problem

The primary reason for this error is that the Apache Configuration is broken. And since it is not being generated on the server, Litespeed won’t be able to access or read it.

In such cases, you’ll get the following error message:

Code:
/usr/local/psa/admin/bin/httpdmng --reconfigure-allWarning: DocumentRoot [/var/www/vhosts/example.com/example2.com] does not existSyntax 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
How to fix this issue?

The first thing you need to do is check if the Litespeed web server and its extensions are installed. Run the following command to check and confirm:

Code:
# service httpd status
litespeed is running with PID 51813
The second line confirms that Litespeed is active.

To fix this issue, follow these steps:
  • Connect to the server using SSH
  • Switch to Apache web server with the following command:
Code:
# /usr/local/lsws/admin/misc/cp_switch_ws.sh apache
  • Next, execute this command to fix the missing certificate error issue:
Code:
# ls -la /usr/local/psa/var/certificates/
total 20
...
-r-------- 1 psaadm psaadm 5024 Jun 2 15:48 cert5RtOCpu
# cp /usr/local/psa/var/certificates/cert5RtOCpu /usr/local/psa/var/
  • Create the missing directories and fix the DocumentRoot issue
  • Execute this command and start Apache:
Code:
# service Apache start
If you still get the domain return error, repeat the process from the third step. Then move on to the following steps:
  • Execute this command to reconfigure webserver configuration files:
Code:
# /usr/local/psa/admin/bin/httpdmng –reconfigure-all
  • Switch to Litespeed with the following command:
Code:
# /usr/local/lsws/admin/misc/cp_switch_ws.sh lsws
Now the Litespeed should read from the configuration files and load the required pages instead of the default server pages.
Author
kumkumsharma
Views
3,757
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from kumkumsharma

Top