How to install smarty

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?


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.

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?

DH’s support helped me to solve the problem. If anyone else needs help, it’s here:

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