Cactus can you give me you're input as to what directory and scheme
you would use? I.E for g2data.
Thanks.
Most of it is an earlier posts, but here it goes:
Gallery itself is installed in /opt/gallery2 which is shared to the internet using a custom template called 92gallery2 which I placed in the /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf directory, as I use this as code base for multiple galleries I have to add every directory for which I want to enable gallery2 to the open_basedir line as other wise PHP files can not be executed as SME Server isconfigured to allow execution of php scripts in its own tree only. The 92gallery2 fragment reads like this:
Alias /gallery2/ /opt/gallery2/
<Directory /opt/gallery2/>
AddType application/x-httpd-php .php .php3 .phtml
php_admin_value open_basedir /opt/gallery2/:/home/e-smith/files/ibays/Primary/html/
Options None
Options +Indexes
Options +Includes
AllowOverride None
order deny,allow
deny from all
allow from all
</Directory>
If have succesfully implemented this fragment in your httpd.conf file and have restarted your webserver you should be able to access your gallery2 main code base at
http://your-server-at-your-domain/gallery2 . If you access this location you are presented with the gallery2 installer. There you can choose to install gallery2 for multiple galleries (Installation step 3: Multisite installation, more information about this option can be found here:
http://codex.gallery2.org/index.php/Gallery2:Multisite) and then specify your new location (I had to manually copy the required files because the webserver will try to put them there for you, but is restricted to do so by the configuration of the SME Server by default).
You will also have to configure the ibay (or other location) from which you will run gallery2 to allow execution of PHP code outside of its tree. In my case I added the following entries to the configuration database:
db accounts setprop Primary PHPBaseDir /home/e-smith/files/ibays/Primary/html/:/opt/gallery2/
In your case this will probably have to be adapted to suit your needs.