Changes

Jump to navigation Jump to search
10,308 bytes added ,  03:07, 19 April 2007
Line 1: Line 1:  
:-(, it seems that putting in the template for the DAG repository puts this page also in the Yum_Repository category which is not my intention, will try to find a workaround - [[User:Cactus|Cactus]] 02:56, 11 April 2007 (EDT)
 
:-(, it seems that putting in the template for the DAG repository puts this page also in the Yum_Repository category which is not my intention, will try to find a workaround - [[User:Cactus|Cactus]] 02:56, 11 April 2007 (EDT)
 +
 +
'''DAG repository'''
 +
 +
I have noticed with any of the repos it place expand-template /etc/yum.conf at the bottom, however, when the command is run, an error is given
 +
expand-template /etc/yum.conf
 +
 +
-bash: expand-temlpate: command not found
 +
 +
/sbin/e-smith/expand-template /etc/yum.conf
    
After quickly reviewing your contribution I would suggest you to rewrite your howto as not to install in an ibay as this is not prefferred behaviour, use /opt or something like that for beter customizability. - [[User:Cactus|Cactus]] 02:58, 11 April 2007 (EDT)
 
After quickly reviewing your contribution I would suggest you to rewrite your howto as not to install in an ibay as this is not prefferred behaviour, use /opt or something like that for beter customizability. - [[User:Cactus|Cactus]] 02:58, 11 April 2007 (EDT)
 +
 +
we should have a template inserted into any howto that doesn't install into /opt, asking for the howto be modified. [[User:Snoble|Snoble]] 23:20, 11 April 2007 (EDT)
    
Fixed the problem with unwanted inclusion of the template by using the <nowiki><noincludes></noincludes></nowiki> keywords around the category as described [http://meta.wikimedia.org/wiki/Category#Categorizing_templates_themselves in the Help:Category section of the wikimedia site]. - [[User:Cactus|Cactus]] 03:36, 11 April 2007 (EDT)
 
Fixed the problem with unwanted inclusion of the template by using the <nowiki><noincludes></noincludes></nowiki> keywords around the category as described [http://meta.wikimedia.org/wiki/Category#Categorizing_templates_themselves in the Help:Category section of the wikimedia site]. - [[User:Cactus|Cactus]] 03:36, 11 April 2007 (EDT)
Line 20: Line 31:  
In the point "modify 50DirectoryIndex00 to include index.pl" not modify template. Instead copy this template to customs-template dir, and make the necesary changes under customs-template files.
 
In the point "modify 50DirectoryIndex00 to include index.pl" not modify template. Instead copy this template to customs-template dir, and make the necesary changes under customs-template files.
 
--[[User:PicsOne|PicsOne]] 14:12, 11 April 2007 (EDT)
 
--[[User:PicsOne|PicsOne]] 14:12, 11 April 2007 (EDT)
 +
 +
=====================================
 +
I would if I knew how
 +
 +
What or how do I create this
 +
 +
I also need info on how to put this into a opt/
 +
 +
what changes would I need to make to the template fragement, any ideas
 +
 +
 +
#Metadot
 +
 +
ServerName www.yourdomain.com
 +
DocumentRoot "/home/e-smith/files/ibays/youribay/html/metadot/"
 +
Alias /images/ /home/e-smith/files/ibays/youribay/html/images/
 +
Alias /js/ /home/e-smith/files/ibays/youribay/html/js/
 +
Alias /index.pl /home/e-smith/files/ibays/youribay/html/metadot/index.pl
 +
Alias /public/  /home/e-smith/files/ibays/youribay/html/sitedata/public/
 +
Alias /skins/    /home/e-smith/files/ibays/youribay/html/sitedata/skins/
 +
Alias /htmlarea3/ /home/e-smith/files/ibays/youribay/html/js/htmlarea3/
 +
Alias /private/  /home/e-smith/files/ibays/youribay/html/sitedata/private/
 +
Alias /userchannel.pl /home/e-smith/files/ibays/youribay/html/metadot/userchannel.pl
 +
 +
<Directory "/home/e-smith/files/ibays/youribay/html/metadot">
 +
Options +Indexes +Includes +FollowSymLinks -MultiViews
 +
  AllowOverride All
 +
SetHandler cgi-script
 +
PerlHandler speedy::Registry
 +
PerlSendHeader On
 +
Options +ExecCGI
 +
AddType application/.html .pl .pm .cgi
 +
DirectoryIndex index.pl
 +
</Directory>
 +
 +
Russell
 +
 +
 +
----
 +
 +
 +
If you want to modify the original templates, you must copy to the templates-custom dir:
 +
 +
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/50DirectoryIndex00 /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
 +
 +
then make the necesary changes there:
 +
 +
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
 +
pico 50DirectoryIndex00
 +
 +
To run under /opt dir I think this can run:
 +
 +
#Metadot
 +
 +
Alias /metadot /opt/metadot
 +
Alias /images/ /opt/metadot/html/images/
 +
Alias /js/ /opt/metadot/html/js/
 +
Alias /index.pl /opt/metadot/html/metadot/index.pl
 +
Alias /public/ /opt/metadot/html/sitedata/public/
 +
Alias /skins/ /opt/metadot/html/sitedata/skins/
 +
Alias /htmlarea3/ /opt/metadot/html/js/htmlarea3/
 +
Alias /private/ /opt/metadot/html/sitedata/private/
 +
Alias /userchannel.pl /opt/metadot/html/metadot/userchannel.pl
 +
 +
<Directory "/opt/metadot">
 +
Options +Indexes +Includes +FollowSymLinks -MultiViews
 +
  AllowOverride All
 +
SetHandler cgi-script
 +
PerlHandler speedy::Registry
 +
PerlSendHeader On
 +
Options +ExecCGI
 +
AddType application/.html .pl .pm .cgi
 +
DirectoryIndex index.pl
 +
</Directory>
 +
 +
--[[User:PicsOne|PicsOne]] 09:18, 12 April 2007 (EDT)
 +
 +
 +
----
 +
 +
Those option above I have tried and they don't work. Don't you need something like <VirtualHost 0.0.0.0:80> and all that
 +
 +
ServerName mydomain.com
 +
 +
ServerAlias www.mydomain.com
 +
 +
DocumentRoot /opt/metadot/
 +
 +
I seem to have a lot of trouble installing Metadot into the opt/, I have managed to do that at one stage with Virtual domains though, but you need the primary ibay to host the main metadot portal and the Virtual domains in the opt/.
 +
 +
I have attempted many different ways and I have found that the ibay option works best, if I could find a method for the opt/ I would use that for sure.
 +
 +
 +
----
 +
 +
I make a minor modification in your howto about expand template.
 +
I go to install under /opt dir and tell you the results.
 +
--[[User:PicsOne|PicsOne]] 12:21, 12 April 2007 (EDT)
 +
 +
 +
----
 +
Finally I run metadot under /opt. The following is the template dir
 +
 +
Alias /metadot /opt/metadot/metadot
 +
Alias /images/ /opt/metadot/images/
 +
Alias /js/ /opt/metadot/js/
 +
Alias /index.pl /opt/metadot/metadot/index.pl
 +
Alias /public/  /opt/metadot/sitedata/public/
 +
Alias /skins/    /opt/metadot/sitedata/skins/
 +
Alias /htmlarea3/ /opt/metadot/js/htmlarea3/
 +
Alias /private/  /opt/metadot/sitedata/private/
 +
Alias /userchannel.pl /opt/metadot/metadot/userchannel.pl
 +
 +
<Directory /opt/metadot>
 +
    Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
 +
    AllowOverride All
 +
    allow from all
 +
    AddHandler  cgi-script .pl
 +
    PerlHandler speedy::Registry
 +
    PerlSendHeader      On
 +
    DirectoryIndex      index.pl
 +
</Directory>
 +
 +
Pay attention to the differences, and try to fix the ibay template. For example AddHandler cgi-scipt .pl and not .cgi
 +
 +
Also not necesary DocumentRoot and ServerName. I try different settings and +ExecCGI run ok in the first Oprtions line. Not include a second Options.
 +
 +
I have untarring under /opt/metadot and move the content /opt/metadot/html to /opt/metadot like you do with ibay placement.
 +
 +
Well, try and comment.
 +
--[[User:PicsOne|PicsOne]] 00:59, 13 April 2007 (EDT)
 +
 +
This is back where I started, What my original problem was that I wanted to have more than 1 Metadot Portal, say for 3 domains and I didn't want the metadot in the url, just the domain name without /metadot.
 +
 +
currently I have my main domain in the opt/ but I cannot load the others, it keeps loading the primary domain, this is where I gave up and just loaded metadot into each ibay for different domains.
 +
 +
How do I point a domain name to opt/
 +
 +
 +
----
 +
Probably you need to use modrewrite engine. Maybe put .htaccess file in the ibay associated to domain, and depending the request, modrewrite route to /opt dir. I have never try to routed a fully domain name to /opt dir. For this I use ibays. Anyway I continue to testing the configuration.
 +
--[[User:PicsOne|PicsOne]] 08:51, 13 April 2007 (EDT)
 +
----
 +
 +
== modrewrite & htaccess ==
 +
 +
I have made several attempts with these with not much success. is there a way to create a template fragement with virtualhost like this post [http://forums.contribs.org/index.php?topic=36526.0[contribs post on virtualhost]]
 +
 +
I have found with more than 1 metadot configuration can interfer with each other, how is it possible to seperate them
 +
 +
www.domain.com
 +
 +
www.domain1.com
 +
 +
www.domain2.com
 +
 +
 +
----
 +
Russell, your howto is very good, but while found a solution, finish the howto.
 +
 +
I suggest you to modify for install only under /opt.
 +
 +
This is the final template I tested.
 +
 +
Please, delete the point about "Adding index.pl to DirectoryIndex" because it is not necesary. Simple remove the file  50DirectoryIndex00 under templates-custom and expand/restart to return to original state.
 +
 +
Alias /metadot /opt/metadot/metadot
 +
Alias /images/ /opt/metadot/images/
 +
Alias /js/ /opt/metadot/js/
 +
Alias /index.pl /opt/metadot/metadot/index.pl
 +
Alias /public/  /opt/metadot/sitedata/public/
 +
Alias /skins/    /opt/metadot/sitedata/skins/
 +
Alias /htmlarea3/ /opt/metadot/js/htmlarea3/
 +
Alias /private/  /opt/metadot/sitedata/private/
 +
Alias /userchannel.pl /opt/metadot/metadot/userchannel.pl
 +
 +
<Directory /opt/metadot>
 +
    Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
 +
    AllowOverride All
 +
    allow from all
 +
    Satisfy all
 +
    AddHandler  cgi-script .pl
 +
    PerlHandler speedy::Registry
 +
    PerlSendHeader      On
 +
    DirectoryIndex      index.pl
 +
</Directory>
 +
 +
--[[User:PicsOne|PicsOne]] 19:39, 13 April 2007 (EDT)
 +
 +
----
 +
 +
== template change ==
 +
 +
OK, what I did was make some changes to the template fragements and also made modifications to metadot.conf in /opt/metadot/etc for virtual host. This has now allowed both domains access without interfering with each other
 +
 +
[metadot1]
 +
name = dbi:mysql:metadotdb
 +
user = metadot
 +
pass = xxxxxx
 +
dbtype = MySQL
 +
public_uploads_dir = /opt/metadot/sitedata/public
 +
public_uploads_location = /public
 +
jsform_type = Chain
 +
jsform_filter = Checker|Dialog|Focus
 +
controller_type = Metadot::MetadotController
 +
skin_template_dir = /opt/metadot/sitedata/skins
 +
servers = <<SERVERS
 +
localhost
 +
SERVERS
 +
 +
[metadot2]
 +
name = dbi:mysql:domain2db
 +
user = domain2
 +
pass = xxxxxx
 +
dbtype = MySQL
 +
public_uploads_dir = /opt/outpost/site1/sitedata/public
 +
public_uploads_location = /public
 +
jsform_type = Chain
 +
jsform_filter = Checker|Dialog|Focus
 +
controller_type = Metadot::MetadotController
 +
skin_template_dir = /opt/outpost/site1/sitedata/skins
 +
servers = <<SERVERS
 +
localhost
 +
domain2.com.au
 +
www.domain2.com.au
 +
SERVERS
 +
 +
 +
'''Template Fragements'''
 +
 +
'''Domain 1'''
 +
 +
 +
#Metadot
 +
 +
    ServerName domain1.com.au
 +
   
 +
    DocumentRoot        /opt/metadot/metadot
 +
    Alias /metadot /opt/metadot/metadot
 +
    Alias /images/ /opt/metadot/images/
 +
    Alias /js/ /opt/metadot/js/
 +
    Alias /index.pl /opt/metadot/metadot/index.pl
 +
    Alias /public/  /opt/metadot/sitedata/public/
 +
    Alias /skins/    /opt/metadot/sitedata/skins/
 +
    Alias /htmlarea3/ /opt/metadot/js/htmlarea3/
 +
    Alias /private/  /opt/metadot/sitedata/private/
 +
    Alias /userchannel.pl /opt/metadot/metadot/userchannel.pl
 +
 +
<Directory /opt/metadot>
 +
    Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
 +
    AllowOverride All
 +
    allow from all
 +
    AddHandler  cgi-script .pl
 +
    PerlHandler speedy::Registry
 +
    PerlSendHeader      On
 +
    DirectoryIndex      index.pl
 +
</Directory>
 +
 +
 +
'''Domain 2'''
 +
 +
#domain2
 +
 +
    ServerName domain2.com.au
 +
   
 +
    DocumentRoot        /opt/domain2/metadot
 +
    Alias      /index.pl /opt/domain2/metadot
 +
    Alias      /domain2  /opt/domain2/metadot
 +
    Alias      /js/  /opt/domain2/js/
 +
    Alias      /site1/public/  /opt/domain2/site1/sitedata/public/
 +
    Alias      /site1/private/  /opt/domain2/site1/sitedata/private/
 +
    Alias      /site1/images/ /opt/domain2/site1/images/
 +
    Alias      /site1/skins/    /opt/domain2/site1/sitedata/skins/
 +
    Alias      /htmlarea3/ /opt/domain2/js/htmlarea3/
 +
    Alias      /outpost/ /opt/domain2/metadot/index.pl
 +
    Alias      /userchannel.pl /opt/domain2/metadot/userchannel.pl
 +
 +
<Directory /opt/domain2/metadot>
 +
    Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
 +
    AllowOverride All
 +
    allow from all
 +
    AddHandler  cgi-script .pl
 +
    PerlHandler speedy::Registry
 +
    PerlSendHeader      On
 +
    DirectoryIndex      index.pl
 +
</Directory>
 +
 +
== Metadot Howto Updated ==
 +
 +
I have updated the howto and have tested it on a production server using 2 domains,so far so good, also tested on a file server and works good.
 +
 +
Thanks to those who have helped
 +
 +
Russell
276

edits

Navigation menu