• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Plesk serving all sites from default directory

DotanC

New Pleskian
I just installed a CentOS 6.4 server with Plesk 11. All sites are being served from /var/www/vhosts/default/htdocs/ even though I have configured them in Plesk to be served from different directories.

Consider siteA.com and siteB.com:

Domain name: siteA.com
Hosting type: Website
Document root: /siteA

Domain name: siteB.com
Hosting type: Website
Document root: /siteB

Now I go to the browser and call these addresses:
http://siteA.com/a.html
http://siteB.com/b.html

This is what I see in the Apache error_log:
script '/var/www/vhosts/default/htdocs/a.html' not found or unable to stat
script '/var/www/vhosts/default/htdocs/b.html' not found or unable to stat

However, if I create a file /var/www/vhosts/default/htdocs/c.html then it is served by both domain names! Do note additionally that there exist the directories /var/www/vhosts/siteA/ and /var/www/vhosts/siteB.

How can I fix Plesk such that it will server from /var/www/vhosts/siteA/httpdocs and /var/www/vhosts/siteB/httpdocs for the respective sites?
 
Hello,

Try to rebuild httpd configuration : /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
 
It looks as if some issues cropped up:
Code:
$ /usr/local/psa/admin/sbin/httpdmng --reconfigure-all 
Error occured while sending feedback. HTTP code returned: 502
2013-10-29T14:57:50+07:00 ERR (3): Apache config (13830334670.68267100) generation failed: Syntax error on line 87 of /var/www/vhosts/someSite.com/conf/13830334670.68267100_httpd.include:
Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory

2013-10-29T14:57:50+07:00 ERR (3): Administrator notification failed: mail() failed: Validation failed for: Some User <""@"">
Error occured while sending feedback. HTTP code returned: 502
Syntax error on line 87 of /var/www/vhosts/someSite.com/conf/13830334670.68267100_httpd.include:
Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory

Error occured while sending feedback. HTTP code returned: 502
Error occured while sending feedback. HTTP code returned: 502
Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-domains
    [1] => someSite.com,anotherSite.com
)

Details: Empty error message from utility.

Note that I did not anomitize the email address, it really did show up as <""@""> even though I entered a valid email address when I configured Plesk.
 
Back
Top