I have managed to get Booktype to work (in Ubuntu Precise), with PostgreSQL, but I can't seem to get objavi working locally. For some (probably simple) reason, Apache wants to display the contents of objavi.cgi rather than run the file. I have tried all sorts of things to get this to work (copying the scripts to /usr/lib/cgi-bin/, changing the configuration paths in the virtual host file, adding and removing various settings for python mods, paths, and options), but to no avail.
Have you successfully installed Objavi as well, on your locahost machine? It looks like you are using objavi.booktype.pro, so maybe you did not install objavi locally. But if you (or others) have installed objavi locally, any insight is welcome.
I use objavi.booktype.pro. I can't install a working objavi. Too many errors and python is so strange for me... Sorry. I'm searching too to install my own objavi.
I'm using LXC virtual machine then I'll try one more time to install objavi after a backup of my working booktype.
I'll give informations if I succeed in this forum.
I agree : Booktype is a good soft, with plenty of promises, for particular and for teachers...
I once made these notes installing Booktype and Objavi on Ubuntu 10.04. I am not sure if this works with the latest version, but I have proof that it works: it is part of the bootable ISO with all Sourcefabric products which you can find here: http://files.sourcefabric.org/LiveCD/
Hope this helps, even though it does not tackle the problem described here directly.
sudo pip install Django==1.3 sudo pip install South==0.7.5 sudo pip install unidecode lxml cd Booktype/ ./scripts/createbooki --database sqlite /home/sourcefabric/Booktype_Source/booktypeserver cd ../booktypeserver/ nano booki.wsgi # make sure this line is in the file or you need to add it (anywhere BEFORE application=...) sys.path.insert(0, '/usr/local/lib/python2.6/dist-packages/') # important: no space at the beginning of the line
sudo cp wsgi.apache /etc/apache2/sites-available/ cd /etc/apache2/sites-available/ sudo nano wsgi.apache ServerName booktype.local SetEnv HTTP_HOST "booktype.local" sudo mv wsgi.apache booktype-vhost sudo a2ensite booktype-vhost cd /home/sourcefabric/Booktype_Source/booktypeserver/ . booki.env django-admin.py syncdb --noinput django-admin.py migrate django-admin.py loaddata documentation_licenses sudo chown -R sourcefabric:www-data /home/sourcefabric/Booktype_Source/booktypeserver/ sudo chmod -R 775 /home/sourcefabric/Booktype_Source/booktypeserver/ django-admin.py createsuperuser Username (Leave blank to use 'sourcefabric'): E-mail address: contact@sourcefabric.org Password: Password (again): Superuser created successfully. - Now start Booktype in browser: booktype.local - log in - import books, e.g.: http://booki.flossmanuals.net/booktype/
gedit objavi/config.py # search for booki.cc and duplicate the entry right beneath # and change the first line to objavi.local. # then it should look like this: 'booktype.local': { 'css-book': '/static/en.flossmanuals.net.css', 'css-web': '/static/en.flossmanuals.net-web.css', 'css-newspaper': '/static/en.flossmanuals.net-newspaper.css', 'css-openoffice': '/static/en.flossmanuals.net-openoffice.css', 'lang': 'en', 'dir': 'LTR', 'toc-encoding': None, 'display': True, 'interface': 'Booki', 'toc_header': 'Table of Contents', },
Reply to @ph+all: Do you have a working wkhtmltopdf installed somewhere in PATH? If you send me the log output from Objavi I could take a look and see what the problem could be.
I answer myself (with the help of Borko Jandras) : I put the wrong wkhtmltopdf, a 32-bit version and not the right, a 64-bit because of my 64-bit Ubuntu.