I have installed G2 in multisite mode and made it through all of the installation steps successfully. I can successfully browse to the standalone installation of G2 for the site that I want.
Now I want to integrate it with Xaraya, via the module that is provided. I have installed the module and activated it, and I click on the "config module" admin menu item. I type the relative path to the G2 directory, try to update the configuration, and I get the message:
/home/virtual/site***/fst/var/www/html/g2/modules/core/classes/GalleryPlatform.class (Line: 622) mkdir() failed (Permission denied)
Where should I start looking? I have chmod'd the directory where the multisite data is stored (/g2sites/site1) to 777, but it didn't help.
Gallery version = 2.0 core 1.0.0
PHP version = 4.2.2 apache
Webserver = Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_fastcgi/2.2.10 Chili!Soft-ASP/3.6.2 mod_perl/1.24_01 PHP/4.2.2 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b
Database = mysql 3.23.54
Toolkits = Exif
Operating system = Linux dhrystone3.ensim.com 2.4.9-21smp #1 SMP Thu Jan 17 14:01:48 EST 2002 i686 unknown
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Posts: 32509
multisite -> did you point it to your multisite gallery2 folder or to the codebase gallery2 folder with the realtive path? it should be the multisite.
if you have to change it, remove the absolute path (the lower path) on the gallery2 config page in xaraya.
also, a phpinfo link is needed here.
FAQ: What information is required when I ask for help in the forums?
Posts: 6
Sorry, I'm frazzled from fighting things today... :/
http://vascouting.org/g2/phpinfo.php
I pointed it to the multisite directory: ../g2sites/brmc1412/
The codebase directory is ../g2/
Posts: 32509
you're using fastcgi, so it may be possible that PHP runs with a different user when accessed from xaraya and when accessed from the multisite or the codebase.
a real fix would be to make sure it's either the same user or change the permission mask in g2 -> site admin to 777 and chmod -R 777 g2data the existing g2data dir recursively.
you can check this theory by creating a small script <?php system('whoami'); ?> and copying this script to your g2 codebase directory, to your multisite and to your xaraya dir. what output do you get in each directory when accessing the script with the browser?
Posts: 6
php does run as another user account - apache - when it creates directories, etc. I can see that when I log in via FTP and view the owners on the directories vs. those that I have created.
I think that this host (OLM) is going to lose a customer, though, as they told me that they want $100.00/hr. to install ImageMagick and netpbm, billable in 15 minute increments.
Now I'm going to go searching for a host that can provide me with decent hosting. :/
Posts: 32509
no, that's not what i meant. it's normal that the php script user is "apache" or something like that. G2 is made to work in such environments.
now we know it's not a user issue. it's another filesystem permissions issue.
but i don't have any ideas at the moment.
Posts: 6
Yeah, but the killer for this host is the fact that they want $100/hr to install netpbm. They don't give me the rights to do it (Understandable), but then they want to charge me when I ask them to do it. I'm just going to move the whole site to another host. Maybe the installation will go better over there.