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
saserv inc/ -R
chown root:root inc/ -R
chown root
saserv inc/ -R
chown site1
saserv inc/ -R - works for site1
chown site2
saserv 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
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
chown root:root inc/ -R
chown root
chown site1
chown 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: