Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6794087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:10:46+00:00 2026-05-26T18:10:46+00:00

I am trying to install smarty on my shared hosting plan. I have installed

  • 0

I am trying to install smarty on my shared hosting plan. I have installed the smarty files on a sub domain that I will be using it for. I am attempting to define the SMARTY_DIR variable, but am not quite sure how to use the absolute hosting path that my web host has provided.

Here is my include path (according to cPanel, found in ‘PHP settings’)

.:/usr/lib/php:/usr/local/lib/php

Now, when I put the Smarty files in the sub domains directory, index.php and libs (directory) are on the same level. So my thoughts were to do something like:

define('SMARTY_DIR','.:/usr/lib/php:/usr/local/lib/php/libs/' );
require_once(SMARTY_DIR . 'Smarty.class.php');

Am I not doing this correctly? I am getting the obvious error that the file does not exist.

Any thoughts / advice is greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:10:47+00:00Added an answer on May 26, 2026 at 6:10 pm
    define('SMARTY_DIR','.:/usr/lib/php:/usr/local/lib/php/libs/' );
    

    This is not a path, this are two pathes (separated by the path separator, on linux :, on win ;, available in PHP via the constant PATH_SEPARATOR). include(_once) and require(_once) don’t support this.

    define('SMARTY_DIR','/usr/lib/php:/usr/local/lib/php/libs/' );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get Smarty setup and working, so that I can install
I am trying to install openID into my web site project that is using
Today I was trying to install Redmine on my shared hosting following this guide:
Trying to install Scrapy on Mac OSX 10.6 using this guide : When running
I'm trying to install 'quadrupel', a library that relies on ffmpeg on Solaris x86.
I am trying to install the ibm_db gem so that I can access DB2
Trying to install mysql-python. Got following error. Got mysql and pythond already installed. Any
After trying to install ruby19 on my machine (PPC, Mac OSX 10.5.7) using the
Im trying to install recaptcha on a Rails3 app (Im using Passenger), this is
Trying to install rattle on a windows server 2008 R2 64bit machine, using 64-bit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.