Difference between revisions of "Talk:Metadot"
(9 intermediate revisions by the same user not shown) | |||
Line 31: | 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 | I would if I knew how | ||
Line 220: | Line 221: | ||
---- | ---- | ||
+ | |||
+ | == 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 |
Latest revision as of 02:07, 19 April 2007
- -(, 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 - 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. - 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. Snoble 23:20, 11 April 2007 (EDT)
Fixed the problem with unwanted inclusion of the template by using the <noincludes></noincludes> keywords around the category as described in the Help:Category section of the wikimedia site. - Cactus 03:36, 11 April 2007 (EDT)
I have tried many attempts to put Metadot into the opt/ without success, I have found it to be easier to put Metadot into an ibay.
Russel you can sign your comments with 4 ~
>>yum -y --enablerepo=updates --enablerepo=addons
I wouldn't use -y, users should be allowed to see what will happen, and not proceed
updates is already enabled and is unneeded
Snoble 08:58, 11 April 2007 (EDT)
Template
Hi fixit. 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. --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>
--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. --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. --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. --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 [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>
--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