Question 1
Why do many of the how tos suggest installing apps in /opt and not in /home/e-smith/files/ibays/myibayname/public_html
It may not look like it at first glance, but putting your apps outside of the ibays structure is actually easier... in the long run. As an example, let's look at Geeklog. If you install the file management plugin for geeklog, you can enable uploads to your server. In order for this to work, your upload area must be owned by
www.www or set to 666 permissions. Both of these settings are non-standard. So, if you install an update, or for some other reason, execute a '/sbin/e-smith/signal-event post-upgrade' event, the permissions will get reset on your ibay (to the ibay defaults). This results in your geeklog app no longer accepting uploads.
Q2 (Related to Q1)
Doesn't doing this limit your ability to have multiple gallery or geeklog installs being used by different domain names pointed to different ibays?
Not at all. Just create your directory structure like this:
/opt/
/geeklog1
/geeklog2
/gallery1
/gallery2
Then, when you create your alias in httpd.conf you can set the apache alias to something like this:
Alias /mysite/ /opt/geeklog1/...
Alias /myothersite/ /opt/geeklog2/...
Alias /myphotogallery/ /opt/gallery1/
Alias /myotherphotogallery/ /opt/gallery2/
Then you access your site using the apache alias, not the actual directory name of geeklog1, etc.
One thing to watch, when you install an app multiple times like this... is that often the app will include a *.sql file used to import database settings. Be sure you create a 2nd database and import the settings into the right db. In the case of Geeklog, it actually includes an option to pre-pend characters to the table names. If you used this right, you could run multiple geeklogs out of the same physical db. Each app would have it's own tables within the db. I don't think I'd recommend that, though... just because of the number of tables involved.
Q3
How do aliases work for a ibay? For example if I set up an alias in httpd.conf called /geeklog which I use to go to a geeklog site related to my primary domain. How do I set up a second geeklog site related to a virtual domain set up in another ibay?
The httpd alias is the ibay name. So, you'd want an ibay called 'geeklog', and another ibay called 'myothergeeklog'. I believe all ibays are available from all virtual domains.
Help much appreciated - thanks
Your welcome. Hope that helps a little.