• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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