• 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.

Shared area accessible by all domains/subdomains

S

SteveR

Guest
I have set up a shared repository for PHP/CSS/JS/HTML and images (each in a subfolder) located at /usr/share/php/inc/

How do I make it accessible to all domains/subdomains?

Site 1 can access everything and my code works well.

Site 2 seems to be able to access the PHP (it reports a missing constant NOTICE at line xxx in mycode.php), but cannot read the html/css/js.

I think it's a permissions issue, but have tried everything to resolve it without success:

chown apache:apache inc/ -R
chown apache:psaserv inc/ -R
chown root:root inc/ -R
chown root:psaserv inc/ -R
chown site1:psaserv inc/ -R - works for site1
chown site2:psaserv inc/ -R - works for site2

I even tried:
chmod 777 inc/ -R

I have configured apache aliases for html/js/css and images. I've also overridden open_basedir and modified php.ini to use an include_path of /usr/share/php - 'inc/' is used in my php includes.

But I can't get both sites to work at the same time.

Thanks in advance...


Steve
 
Last edited by a moderator:
Back
Top