Loading...
 

Mitel SME Install


This is an Installation guide. Caution: This page is out of date, last changed in 2003.


HowTo: Installing the ))TikiWiki(( CMS on a Mitel SME 5.6 Server

These are the steps I took to install tikiwiki (http://www.tiki.org/) on my Mitel SME 5.6 Developer Release. There may be redundancy in some of these steps, or some weak security practices. Please let me know if you have any suggestions or improvements.

All of the below commands (in monospace) should be performed as root from a terminal session on your SME server.

1) Set up all your ibays with a PHPBaseDir (you need to do all of them to work around some later version PHP issues I encountered). In my case I went with using / as the PHPBaseDir, but you could also use /home/e-smith/files. You need to be aware of this when setting up tiki's tmp directory.

    • /sbin/e-smith/db accounts setprop PHPBaseDir /
    • /sbin/e-smith/signal-event ibay-modify


2) Up your default php memory allotment (I changed mine to 16M)

    • mkdir /etc/e-smith/templates-custom/etc/php.ini
    • cp /etc/e-smith/templates/etc/php.ini20ResourceLimits /etc/e-smith/templates-custom/etc/php.ini/20ResourceLimits
    • pico /etc/e-smith/templates-custom/etc/php.ini
      • change my $ml = db_get_prop($confref, 'php', 'MemoryLimit') || "8M";
        to my $ml = db_get_prop($confref, 'php', 'MemoryLimit') || "16M";
      • change my $et = db_get_prop($confref, 'php', 'MaxExecutionTime') || "30";
        to my $et = db_get_prop($confref, 'php', 'MaxExecutionTime') || "60";
    • cp /etc/e-smith/templates/etc/php.ini/50PathsDirectories /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
    • pico /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
      • change include_path = ".:/usr/share/php"
        to include_path = ".:/usr/share/pear"
    • /sbin/e-smith/expand-template /etc/php.ini


3) Make edits to httpd.conf to point to correct pear files (suggested by http://www.e-smith.org/bboard//read.php?v=t&f=3&i=24710&t=24710)

    • cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays
    • pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays
      • change "php_admin_value open_basedir $basedir\n";
        to "php_admin_value open_basedir $basedir:/usr/share/pear\n";
    • /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf


4) Download the latest tiki package from www.tiki.org, install into your ibay


5) Copy the files into your ibay root html folder (or you could cp -R the tiki_1.7.2 directory to the html dir)

    • cd ../html
    • cp -Ru ../files/tikiwiki_1.7.2/* .


6) Edit tiki files to allow tiki to run under php safemode (from http://www.tiki.org/tiki-index_raw.php?page=InstallTikiUnderSafeMode)

    • pico tiki/Smarty/Smarty.class.php
    • on line 286:
      • change var $use_sub_dirs = true;
        to var $use_sub_dirs = false;


7) Change the permissions of the files so they will run properly in the ibay (look to see what the existing perms are for that Ibay, and copy them)

    • chmod -R 2770 /home/e-smith/files//html
    • chown -R admin: /home/e-smith/files//html


8) Set up your database

    • mysql_setpermission


9) In a web browser, connect to http:////tiki-setup.php and enter in the appropriate info for:

    • tmp directory (make sure its in your PHPBaseDir)
    • Database (based on step 8)


That should do it. Please let me know if you have any updates/corrections to make to this, and I will update accordingly.

List Slides