How to install smarty

apps

#1

its a simple question but seems i couldn’t find any info on the forum. how do i install smarty on dreamhost? i did locate the php include path but how could i put smarty class files in that dir?

Thanks


#2

Here’s what I did to install Smarty:

  1. Copied Smarty files into /home/[username]/smarty/
  2. Added this piece of code to each of my PHP files:

ini_set( 'include_path', ini_get( 'include_path' ) . PATH_SEPARATOR . "/home/[username]/smarty" );3) Create templates, templates_c, cache, and configs directories in root directory for each website using Smarty.


#3

I’m having trouble installing smarty. So far, I extracted the tarball to /home/[username]/smarty as this post directs.

However, I’m on a shared hosting account, so I do not have root access to this account. Is root access necessary, or is there some way around this?


#4

DH’s support helped me to solve the problem. If anyone else needs help, it’s here:
http://wiki.dreamhost.com/Smarty


#5

You might consider Dwoo which is supposed to be a modernisation of Smarty