[FM Discuss] Information needed about setting up booki publisher

James Simmons nicestep at gmail.com
Wed Jul 20 08:45:11 PDT 2011


Daniel,

I think I have the Virtual Host working OK, and I've changed the settings in
config.inc.php to point to my booki server, my objavi server, and my sqlite
database for booki.  This is what I get when I try to run index.php:

<?
function addTemplate ($templateType='read',$content) {
	if ($templateType=='editor') {
		$template=file_get_contents("templates/editor.tmpl");
	} else {
		$template=file_get_contents("templates/".DEFAULT_TEMPLATE."_$templateType.tmpl");
	}
  	$page=preg_replace('[<content-goes-here/>]',$content,$template);
//following works but i first have to work out how to find json rows
		$hook_args['output']=$page;
 		$page = fire_hook("tag_replace", $hook_args);
	return $page;
}
?>
<html><head><title>500 Internal Server
Error</title></head><body><h1>Internal Server Error</h1><p><i>Unable
to map table books to Axon</i></p><p>#0 {closure}<br />
#1 /var/www/bookipub/lib/classes/axon.php:394 trigger_error('Unable to
map table books to Axon')<br />
#2 Axon->sync('books')<br />
#3 /var/www/bookipub/lib/classes/axon.php:551
call_user_func_array(array('Axon','sync'),array('books'))<br />
#4 /var/www/bookipub/plugins/read/read.inc.php:119
Axon->__construct('books')<br />
#5 /var/www/bookipub/plugins/read/read.inc.php:164 read_index()<br />

#6 read_dispatcher('index')<br />
#7 /var/www/bookipub/index.php:24
call_user_func('read_dispatcher','index')<br />
</p></body></html>

Any ideas?

James Simmons



On Wed, Jul 20, 2011 at 10:09 AM, Daniel James <
daniel.james at sourcefabric.org> wrote:

> Hi James,
>
> > I wonder if bookipublisher needs to run on port 80 like OBJAVI does.
>
> It's possible that assumption is hard-coded.
>
> > I'm trying to make a virtual host that uses port 88.
>
> Why not make life easier for yourself, run everything on port 80 and use
> different ServerName fields in your VirtualHost directives?
> objavi.example.com, bookipub.example.com and so on:
>
> <VirtualHost *:80>
>      DocumentRoot /var/www/objavi
>      ServerName objavi.example.com
>      DirectoryIndex index.php
> </VirtualHost>
>
> <VirtualHost *:80>
>      DocumentRoot /var/www/bookipub
>      ServerName bookipub.example.com
>      DirectoryIndex index.php
> </VirtualHost>
>
> If you don't have DNS available you can set up names (e.g. for
> localhost) in your /etc/hosts file:
>
> 127.0.1.1       objavi.example.com      objavi
> 127.0.1.1       bookipub.example.com    bookipub
>
> > It seems to be
> > loading admin.php as a web page rather than executing it.
>
> Have you confirmed that PHP is actually installed and working? On
> Debian/Ubuntu you can enable the PHP Apache module with the command:
>
> $ sudo a2enmod php5
>
> You may also find it useful to create a simple phpinfo page:
>
>
> http://kb.mediatemple.net/questions/764/How+can+I+create+a+phpinfo.php+page%3F#gs
>
> This should highlight any missing PHP modules.
>
> Cheers!
>
> Daniel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.flossmanuals.net/pipermail/discuss-flossmanuals.net/attachments/20110720/a836001b/attachment.htm>


More information about the Discuss mailing list