Koozali.org: home of the SME Server

apps outside of ibays

ldavies

apps outside of ibays
« on: May 04, 2004, 07:48:24 AM »
I tried posting this topic in the general discussion forum but no responses.  Hopefully some  of you folks who are more knowledgeable will be able to shed some light.

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

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?
 
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?
 
Help much appreciated - thanks

loveless

Re: apps outside of ibays
« Reply #1 on: May 04, 2004, 08:16:24 PM »
Quote from: "ldavies"

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.



Quote from: "ldavies"

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.


Quote from: "ldavies"

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.

Quote from: "ldavies"

Help much appreciated - thanks


Your welcome.  Hope that helps a little.

ldavies

apps outside of ibays
« Reply #2 on: May 10, 2004, 07:25:53 AM »
Sorry but I am not getting it:

I have an alias

Code: [Select]
Alias /home /opt/bwglhtml/

<Directory /opt/bwglhtml>
AddType application/x-httpd-php .php .php3 .phtml
Options Indexes +Includes FollowSymLinks
order deny,allow
deny from all
allow from all
</Directory>


I have 2 domains http://www.boldwellies.com which is the primary and http://www.lloydus.net which is in another ibay.  In the primary ibay I have an index.html that redirects  as follows:

Code: [Select]
<HTML>
<HEAD>
<meta http-equiv="refresh" content="0; url=http://www.boldwellies.com/home/">
</HEAD>



Right now if I go to www.lloydus.net/home I get taken to www.boldwellies.com/home.

This is not what I'd like.  I'd really like to somehow redirect from index.html (in primary) to /opt/bwglhtml/ but still have the url show www.boldwellies.com.