Forum Moderators: phranque
I would like to put these scripts in a shared folder that can be referenced by each domain from an include in a script that lives within that domain's documen root. i.e.
main file is /var/www/vhosts/<domain>/httpdocs/myfile.php
and it has a php include statement for
/var/www/vhosts/sharedscripts/includeme.php
I have tried to set this up by creating the dir and file in it, and changing owner and group on file and dir to apache, but it doesn't work.
Can it be done? Thanks for reading...
Alternately, if you have server configuration access, you can create a ScriptAlias to accomplish the same thing in a different way (See Apache mod_alias ScriptAlias directive).
Jim
ln -s <shared scripts location> myscripts
I verified that the link worked, and changed group and owner to apache, but I still don't seem to be able to access files through the link with my php scripts.
I have a test script that includes a script with just an echo command, and the main script uses readdir to do a directory listing. The script works fine on regular directories, but will not work on the link.