Results 1 to 1 of 1

Thread: Install smarty template engine on cpanel server for particular account

  1. #1

    Default Install smarty template engine on cpanel server for particular account

    To Install smarty template engine on cpanel server for particular account follow the steps

    1) Download the compatible Smarty from

    Download | Smarty

    2) extract and upload the directory to the server

    /home/username/public_html/Smarty-3.0.7/

    3) customize php.ini for the account and add the path as

    include_path = ".:/usr/lib/php:/usr/local/lib/php" # this is default line in php.ini

    edit it as

    include_path = ".:/usr/lib/php:/usr/local/lib/php:/home/username/public_html/Smarty-3.0.7/libs"

    4) Put following rule in .htaccess to make this php.ini applicable for the acocunt

    SetEnv PHPRC /home/username/public_html/ # php.ini file must be saved under /home/username/public_html/

    5) The Smarty libraries are ready to use for the domain

    6) Now scripts using Smarty must add following line

    require '/home/username/public_html/Smarty-3.0.7/libs/Smarty.class.php'

    * replace username with cpanel username
    Last edited by kaustubh_s; 05-29-2011 at 12:37 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •