Metadot

From SME Server
Jump to navigation Jump to search

Metadot 6.4.5.4 for SME Server 7

This How to is currently under construction

will continue soon

NOTE, for this howto I am using youribay as an example, replace youribay with your own choice

russell@fixitcomputers.com.au


mkdir -p /tmp/metadot
cd /tmp/metadot
wget http://download.metadot.com/Metadot6.4.5.4.tar.gz
tar xvzf Metadot6.4.5.4.tar.gz
mv /tmp/metadot/metadot/* /home/e-smith/files/ibays/youribay/html
mv /tmp/metadot/metadot/.cvsignore /home/e-smith/files/ibays/youribay/html
chown -R www.www /home/e-smith/files/ibays/youribay/html
chmod 750 /home/e-smith/files/ibays/youribay/html/
chmod 640 /home/e-smith/files/ibays/youribay/html/etc/metadot.conf
cd /home/e-smith/files/ibays/youribay/html/metadot
chmod 755 *.pl

Setup Dag Repositories

/sbin/e-smith/db yum_repositories set dag repository \
Name 'Dag - EL4' \
BaseURL 'http://apt.sw.be/redhat/el4/en/$basearch/dag' \ 
EnableGroups no \
GPGCheck yes \
GPGKey http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt \ 
Visible yes \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled


expand-template /etc/yum.conf

Installing Required Modules

yum -y --enablerepo=updates --enablerepo=addons install mod_perl gd ImageMagick ImageMagick-perl netpbm
config setprop modPerl status enabled
signal-event post-upgrade

Installing Required Perl Modules

yum --enablerepo=base --enablerepo=updates --enablerepo=addons --enablerepo=dag install perl-GD perl-GD-Graph perl-GD-Graph3d perl-GD-Text-Util perl-Date-Pcalc perl-Email-Valid perl-Apache-DBI perl-AppConfig perl-Archive-Tar perl-Archive-Zip perl-Bit-Vector perl-CGI-SpeedyCGI perl-Compress-Zlib perl-Data-Compare perl-Date-Calc perl-ExtUtils-PkgConfig perl-File-Find-Rule perl-File-HomeDir perl-HTML-Format perl-HTML-Template perl-HTML-Tree perl-Image-Base perl-Image-Size perl-Lingua-EN-NameParse perl-LWP-UserAgent-Determined perl-Mail-POP3Client perl-MailTools perl-HTTP-BrowserDetect perl-HTTP-Server-Simple perl-HTTP-Request-Form perl-HTTP-DAV perl-MIME-tools perl-Number-Compare perl-Number-Format perl-OLE-Storage_Lite perl-Parse-RecDescent perl-Pod-POM perl-Spreadsheet-WriteExcel perl-Template-Toolkit perl-Test-Builder-Tester perl-Test-Manifest perl-Test-Simple perl-Test-SimpleUnit perl-Text-Autoformat perl-Text-CSV_XS perl-Unicode-String perl-XML-Dumper perl-XML-RSS perl-XML-Simple -y

Create Database

cd /home/e-smith/files/ibays/youribay/html/default_data/
mysql -uroot mysql < createdbanduser4x.sql

mysql -e "grant all privileges on metadotdb.* to metadot@localhost identified by 'yourpassword'"

mysql -e "flush privileges"

mysql -umetadot -pyourpassword metadotdb < sampledata.sql


Create a Template Fragement

mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
pico 87Metadot


#Metadot

ServerName www.fixitcomputers.com.au
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>

Save by pressing Ctrl x, press y to save changes and press enter

expand-template /etc/httpd/conf/httpd.conf 
/etc/rc.d/init.d/httpd-admin restart
/etc/rc.d/init.d/httpd-e-smith  restart


Adding index.pl to DirectoryIndex

modify 50DirectoryIndex00 to include index.pl

cd /etc/e-smith/templates/etc/httpd/conf/httpd.conf/
pico 50DirectoryIndex00

Add index.pl

# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.

DirectoryIndex index.htm index.html index.shtml index.cgi index.pl


Modify Metadot configuration file

Metadot uses a configuration file that associates database information with the web server that you are running. It is located: /home/e-smith/files/ibays/youribay/html/etc

cd /home/e-smith/files/ibays/youribay/html/etc

Edit Metadot.conf you will need to modify these lines in the metadot.conf file to match the location where you install metadot on your server.

 metadot.conf
Line 16 change the password created in the mysql setup. pass = yourpassword,
Line 34 change /home/e-smith/files/ibays/youribay/html/sitedata/public
Line 108 change to /home/e-smith/files/ibays/youribay/html/sitedata/skins

WARNING Performance configuration

If you don't do this configuration, your metadot site will be extremely poor.

cd /home/e-smith/files/ibays/Primary/html/metadot

edit index.pl and change the top line from #!/usr/bin/perl to #!/usr/bin/speedy. This needs to be done to all .pl files in the metadot/

Example

#!/usr/bin/speedy

Testing the installation

cd /home/e-smith/files/ibays/Primary/html/metadot

Next, run the index.pl file on the command line :

perl index.pl

if no errors go to next step


Now bring up the Metadot start page by accessing it from your web browser:

http://type.your.domain.com or http://type.your.domain.com/ibay/

Metadot Aministration Information

The default out-of-the box user name & password for Metadot is admin and the password is "123456". In your browser, go to the Metadot home page. In the upper right corner click on "Login".

This will take you to the login screen. Log in as 'admin' using the default '123456' password. This will take you back to the main screen.

[Note: If you are using the Konqueror web browser, then it has been reported that you may see an error screen the first time you log in. If you see this, then just go back and then click on 'Home']

Go to the bottom of the page and click "Enable Editing". This will enter edit mode, which will cause the page's edit controls to become visible. Change the password for the Admin user (the site's admin account). Do this in the following manner:

• Log in as admin, as described above.

• Go to "Manage..."->"My Profile". This will take you to the edit profile page for the admin user.

• Change the admin password and save.

Dont change the url in admin

Russell Taihn email: russell@fixitcomputers.com.au