View Single Post
Old 08-15-2011, 04:32 AM   #122
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,483
Karma: 8025704
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Pope Viper View Post
OK, I've been futzing around, and am getting a internal server error when trying to get the site to open. No issues with the other sites I'm running on this server.
...
\calibre - Main Calibre dir, with index.php, etc
\calibre\smarty - contains the templates, libs, etc.
\calibre\Library - location of my Calibre library (metadata.db)
...
Code:
<?php
	/*
	 * The directory containing calibre's metadata.db file, with sub-directories
	 * containing all the formats.
	 */
	$config['library_dir'] = '/library';
You are running on windows. These must be paths to real folders on the computer. Are they? If so, then I would put the drive letter in the paths. From here on I will use XXX: as the drive letter.
Quote:
Code:
	/*
	 * The directory containing the PHP code.
	 */
	$config['web_dir'] = '/calibre';
This tells me that the real folder XXX:/calibre can be served by IIS. Is that true?
Quote:
Code:
	/*
	 * The directory in web space where smarty will find the templates.
	 */
	$config['smarty_web_dir'] = $config['web_dir'] . '/smarty/templates';
This is fine as long as XXX:/calibre is served by IIS.
Quote:
Code:
	/*
	 * The directory where smarty is to store its caches and the like. The web
	 * server must have write access here.
	 */
	$config['smarty_dir'] = '/smarty';
Can your web server write to XXX:/smarty?
Quote:
Code:
	/*
	 * The directory containing the Smarty PHP files, and in particular the file
	 * Smarty.class.php.
	 */
	$config['smarty'] = '/smarty/libs';
The combination of this plus 'smarty_dir' is suspicious. 'smarty' is where the smarty release lives. The cache should not be intermixed with the smarty released code.

FWIW: here are my variables, somewhat elided. The ... represents the same text in each path. Apache has write access to all the folders except 'smarty'.
Code:
	$config['library_dir'] = 'C:/.../Library.test_small';
	$config['web_dir'] = 'C:/.../php_server';
	$config['smarty_dir'] = 'C:/.../smarty';
	$config['smarty'] = 'C:/PHP/Smarty-2.6.26/libs';
	$config['smarty_web_dir'] = $config['web_dir'] . '/smarty';
Also note that you should be putting your changes in config_local.php, so that they aren't overwritten if you install a new release.

It might help if you say what error you are getting.

Can you run php code? For example, does the following run if put into foo.php in some web-accessible folder?
Code:
{?php
   phpinfo();
?}
chaley is offline   Reply With Quote