-
Zo installeren wij Smarty.
Code:
#!/bin/bash
SMARTY=2.6.10
cd /usr/src
wget http://smarty.php.net/do_download.ph...d_file=Smarty-$SMARTY.tar.gz
tar -zxvf Smarty-$SMARTY.tar.gz
mkdir /usr/local/lib/php/Smarty
cp -r Smarty-$SMARTY/libs/* /usr/local/lib/php/Smarty
rm -rf Smarty-$SMARTY*
echo "Smarty installed in /usr/local/lib/php/Smarty"
PEAR is standaard geinstalleerd in PHP. Tenzij je --without-pear hebt aangegeven tijdens configure.
-
Citaat:
Origineel geplaatst door getUP
Zo installeren wij Smarty.
Code:
#!/bin/bash
SMARTY=2.6.10
cd /usr/src
wget http://smarty.php.net/do_download.ph...d_file=Smarty-$SMARTY.tar.gz
tar -zxvf Smarty-$SMARTY.tar.gz
mkdir /usr/local/lib/php/Smarty
cp -r Smarty-$SMARTY/libs/* /usr/local/lib/php/Smarty
rm -rf Smarty-$SMARTY*
echo "Smarty installed in /usr/local/lib/php/Smarty"
PEAR is standaard geinstalleerd in PHP. Tenzij je --without-pear hebt aangegeven tijdens configure.
Hoe test je of pear geinstalleerd is?
ik krijg als ik test op mijn server:
Fatal error: main(): Failed opening required 'HTTP/Request.php' (include_path='.:/usr/local/lib/php') in /home/clownyenator/www/index.php on line 3
-
clownyenator: het eenvoudigste voor het installeren van pear op een debian-doos is 'apt-get install php4-pear'. Smarty kan je gelijkaardig installeren met 'apt-get install smarty'.