using an existing Smarty-installation for Blog and Website?

Having trouble installing serendipity?
Post Reply
peggylon
Regular
Posts: 51
Joined: Tue Jul 01, 2008 6:32 pm
Location: Berlin
Contact:

using an existing Smarty-installation for Blog and Website?

Post by peggylon »

Hello,

I'm Smarty fan and have my website (on a shared server) running with it.
the folder structure is as follows:

html/multikulinarisch/ -> contains the website's files and stylesheets and is referred to by domain www.multikulinarisch.de
html/multikulinarisch/smarty/ -> contains smarty templates, libs, templates_c, etc.
html/multikulinarisch/blog/ -> is going to contain the blog files (serendipity); is referred to by domain www.multikulinarisch.es

I'm wondering, whether there is a chance to use one smarty-installation for everything... If so, I'll happily re-install...

In case that's impossible, another question comes up:
I uploaded serendipity without problems into folder html/multikulinarisch/blog/ and installed without faults.
When trying to go to my blog the error message was:
serendipity error: could not include /home/www/web80/html/multikulinarisch/blog//serendipity_config_local.inc.php
I changed in the database's config table
serendipityPath to 'http://www.multikulinarisch.es/' (same as BaseURL) and
serendipityHTTPPath to '/'
The error remains the same.

Thanks for any help in advance,
peggylon
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: using an existing Smarty-installation for Blog and Websi

Post by garvinhicking »

Hi!

Serendipity is able to use Smarty through a central "PEAR" directory. So if you have your include_path set to contain a dir like /usr/local/lib/php and you put a "Smarty" directory into it, this gets precedence over the one deliveredwith serendipity.

Compiled templates will still be put into "templates_c" of your blog directory, there's no way around that (apart from hacking the source)

About the error: Is the path mentioned in the error message the right one? Is the serendipity_config_local.inc.php file existing and readable (permissions?)

serendipityPath must contain a PATH not a URL.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
peggylon
Regular
Posts: 51
Joined: Tue Jul 01, 2008 6:32 pm
Location: Berlin
Contact:

Post by peggylon »

Hi Garvin,

thanks for the speedy reply.
I got the error fixed by setting serendipityPath to
'/home/www/web80/html/multikulinarisch/blog/' (as it had been before) AND serendipityHTTPPath ''.

Concerning the shared Smarty-libs:
I'll check with my provider whether that's possible...

Thanx for your help,
peggylon
Post Reply