Laurenz wrote:
> I installed srweb from git on a fresh Ubuntu 14.04 VM (yes, again ;P). After
> following the INSTALL instructions I got a 500 Server Error.
...
> SMARTY_DIR is set in config.inc.php:
>> /* The directory 'Smarty.class.php' can be found in */
>> default_define('SMARTY_DIR', '/usr/share/php/Smarty/');
>
> However, on my system Smarty lives in /usr/share/php/smarty3. (I installed
> smarty via sudo apt-get install smarty)
This is unsurprising -- different distros are inevitably going to
install things in slightly different places.
The expected solution is to override the values within the config file
using the optional "local.config.inc.php" file. All you need to do is
create this file with some defines in it and srweb will honour those
before the values in the main "config.inc.php" file.
> I'm not sure why I have a different Smarty directory. Possibly this could be
> checked in the php config file? Or maybe add a hint in the INSTALL file?
I'd guess that the default value is correct on Fedora systems, but not
Ubuntu. Please do submit patches against the INSTALL and/or config
files if you think things can be improved.
Thanks,
Peter