• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

All domains read certain files only from /var/www/vhosts/default/htdocs

compil3r

New Pleskian
Hello everybody.

I am having a weird issue with my Plesk 11.5.30 on CentOS 6.5 (dedicated server), I've been searching for 3 days and trying many things but nothing seems to work.

The issue is, whenever I add a new domain, migrate a test site and load it, it becomes very slow, errors on log keep saying that the files are not found in /var/www/vhosts/default/htdocs instead of looking on /var/www/vhosts/domain.com/httpdocs.

The files are php scripts and jpg images. Maybe css too, not sure, but if I upload a test html file, on the domain httpdocs, it loads fine.

So what I did was to copy all the test site (it's a wordpress site, was working just fine on another server, a shared one) to the default/htdocs location, and all errors are gone. I can see images and all.

I tested the same with another domain, same thing. I've tried:

1. /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
2. Check apache conf file, the global one and the domain one. On the domain one, the correct /var/www/vhosts/domain.com/httpdocs is there.
3. Delete the whole domain, and recreate all from scratch
4. Make a new webspace from power user, and add a domain there
5. Turn OFF SELinux (was already off)
6. Turn off NGNIX (was already off, installed it, turned on, used it a bit, and then off again, same result)
7. The sw-sso package issue (http://kb.parallels.com/en/114490)
8. And maybe more I can't remember. Nothing works!

So, I am missing something obvious here? I really don't see the solution, nothing I've tried works.

I was thinking... maybe a bad php config is the culprit? something like the open_basedir? Just checked and it's correct, but I am really lost here.

Any help will be appreciated.

Thanks in advance!
 
Anyone?

Last night I was checking the wordpress vars, absolute path gives the correct one, so I know the problem is not wordpress (also it was working OK on other server).

So it must happen at apache level... any ideas?

Thanks again!
 
If I can't fix this, I will migrate to cPanel, it's incredible that something like this happens and there's nowhere to search and fix it... It's like conf files are being ignored.
 
The most likely issue is that the site is configured as a different domain or IP than what is actually being requested. I know you probably already checked this, but just to be safe - you've surely ensured that the IP address you're requesting it from is the exact same IP as the one you mapped within Plesk, and the domain is exactly the same as well? That is, if the site is example.com and was setup on 10.0.0.1 in Plesk then you added this to your local hosts file for testing (and then rebooted to ensure it was properly reloaded);
10.0.0.1 example.com
 
Hi shall, thanks for the reply.

The domain in question is not listed on /etc/hosts, I need to manually add it? This is not made automatically when I add the domain in Plesk?

Thanks
 
Back
Top