I am trying to get Gallery's multisite setup to work with Subdomain accounts on my PHP-CGI server but having difficulty figuring out the error I am getting. The basic setup is as follows: DOMAIN.COM/gallery2 --> contains the "codebase" that has all the files needed for the other galleries that are installed. (account "smyp3") DOMAIN.COM/gallery --> the first gallery installed which works fine and uses the following code: <?php define('GALLERY_CONFIG_DIR', dirname(__FILE__)); require('/home/smyp3/public_html/gallery2/index.php'); ?> PHP: SUB.DOMAIN.COM/gallery --> gallery installed on a subdomain using same code as above (account "scoopy82") BUT produces the following errors: It sort of appears it is not finding the files... but the path works in the first example. I also posted this on their forum... but can only get an answer that the problem is at the file system level. Any ideas how I can safely include these files from a subdomain ? PHP is version 5.2.0 and the rest of the info can be found here: http://www.showmeyourpix.org/phpinfo.php thanks,
I see this on your php info : You need to alter include_path through local php.ini or .htaccess for the domain where you can't get it included. open_basedir is ok.
Thought maybe that was going to do it agnivo007... but no joy. I added the line include_path = /home/smyp3/public_html/gallery2 to a php.ini file and here's what we get now:
Try enclosing the path in single quotes. Check permissions if they show readable by all. These problems might occur due to apache and php settings (particularly suphp or suexec)
Still trying here The quote thing only added that extra quote to the Fatal error line. I also tried changing the paths to an URL... which sort of worked. I was able to access the CODEBASE... but it did not work correctly and will not work that way as I was told Gallery is coded to work from the paths. I also tried setting up the subdomain within the same cPanel account... which worked great... except that is not what I need here. I want these to be totally separate accounts from the main user account... which according to their instructions... this is possible to run from /home/user1, /home/user2, etc. So its definitely something with my server's setup that is set to disallow this without some special tweaking. (yes it runs suexec) There must be something I can do to make this work.