Koozali.org: home of the SME Server

tikiwiki httpd.conf settings

fishbowl

tikiwiki httpd.conf settings
« on: July 07, 2004, 03:27:17 PM »
Anyone has set httpd.conf to work with tikiwiki.  Currently the tiki-installer an't see any database.

here is what I did;

/sbin/e-smith/db accounts setprop <ibayname> PHPBaseDir /
/sbin/e-smith/signal-event ibay-modify <ibayname>

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
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
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

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

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

chmod -R 2770 /home/e-smith/files/<ibayname>/html
chown -R admin:<ibaygroupname> /home/e-smith/files/<ibayname>/html

mysql_setpermission