History: Mitel SME Install
Source of version: 5 (current)
Copy to clipboard
# 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 [mailto:jlewis@arachnerd.org|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 <ibayname> PHPBaseDir / ` - ` /sbin/e-smith/signal-event ibay-modify <ibayname> ` 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 | ~np~ my $ml = db_get_prop($confref, 'php', 'MemoryLimit') || "8M"; ~/np~ | |---|---| | to | ~np~ my $ml = db_get_prop($confref, 'php', 'MemoryLimit') || "16M"; ~/np~ | - | change | ~np~ my $et = db_get_prop($confref, 'php', 'MaxExecutionTime') || "30"; ~/np~ | |---|---| | to | ~np~ my $et = db_get_prop($confref, 'php', 'MaxExecutionTime') || "60"; ~/np~ | - ` 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 | ~np~ include_path = ".:/usr/share/php" ~/np~ | | |---|---|---| | to | ~np~ include_path = ".:/usr/share/pear" ~/np~ | - ` /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 | ~np~ "php_admin_value open_basedir $basedir\n"; ~/np~ | |---|---| | to | ~np~ "php_admin_value open_basedir $basedir:/usr/share/pear\n"; ~/np~ | - ` /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf ` 4\) Download the latest tiki package from www.tiki.org, install into your ibay - ` cd /home/e-smith/files/ibays/<ibayname>/files ` - ` wget http://unc.dl.sourceforge.net/sourceforge/tikiwiki/tikiwiki_1.7.2.tar.gz ` - ` tar zxvf tikiwiki_1.7.2.tar.gz ` 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.php?page=InstallTikiUnderSafeMode) - ` pico tiki/Smarty/Smarty.class.php ` - on line 286: - | change | ~np~ var $use_sub_dirs = true; ~/np~ | |---|---| | to | ~np~ var $use_sub_dirs = false; ~/np~ | 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/<ibayname>/html ` - ` chown -R admin:<ibaygroupname> /home/e-smith/files/<ibayname>/html ` 8\) Set up your database - ` mysql_setpermission ` 9\) In a web browser, connect to http://<yourserver>/<ibayname>/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 [mailto:jlewis@arachnerd.org|me] know if you have any updates/corrections to make to this, and I will update accordingly.