I followed the manual guide and set up a dev-environment but used a virtualenv for safety reasons. I dont have a full domain yet because I'm in the process of evaluating if Booktype fits all my needs. For some reason I'm unable to log in in my Booktype instance, despite the fact that I created a superuser with ./manage.py createsuperuser
.
User does not exist.
Password is wrong! Please try again.
Your account is inactive! Please, contact site support.
Unknown error!
There are errors and I would be glad if you could give me some suggestions to solve my issues. This is how booktype looks like now.
$ sudo apt-get install postgresql php5-cli php5-gd apache2-mpm-prefork libapache2-mod-wsgi git-core python-setuptools python-dev python-virtualenv libjpeg-dev libpq-dev libxml2-dev libxslt-dev rabbitmq-server redis-server tidy nano
$ easy_install pip
$ pip install virtualenv
$ su - postgres
$ createuser -SDRP booktype-user
$ createdb -E utf8 -T template0 -O booktype-user booktype-db
$ exit
$ sudo service postgresql restart
$ cd /tmp/
$ sudo mkdir -p /var/www/
$ wget http://www.mpdfonline.com/repos/MPDF_6_0.zip
$ sudo unzip MPDF_6_0.zip -d /var/www/
$ cd /var/www/mpdf60/
$ sudo chown www-data.www-data examples/test.pdf graph_cache/ tmp/ ttfontdata/
$ cd /var/www/mpdf60/examples/
$ sudo sed -i 's;www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin;www-data:x:33:33:www-data:/var/www:/bin/bash;' /etc/passwd
$ sudo su www-data
$ for i in example*.php; do php $i > /tmp/$i.pdf; done
$ cd /usr/local/src/
$ virtualenv --distribute mybooktype
$ source mybooktype/bin/activate
$ mkdir -p mybooktype/local/src/booktype
$ sudo git clone https://github.com/sourcefabric/Booktype.git --branch master --depth 1 $ mybooktype/local/src/booktype
$ sudo pip install -r mybooktype/local/src/booktype/requirements/dev.txt
$ sudo pip install -r mybooktype/local/src/booktype/requirements/prod.txt
$ sudo pip install ebooklib
$ sudo mkdir /var/www/booktype/
$ sudo chown www-data:www-data /var/www/booktype/
$ sudo chown -R www-data:www-data mybooktype/local/src/booktype/
Log in with user www-data
$ sudo su -s /bin/sh www-data
$ cd /usr/local/src/mybooktype/local/src/booktype/scripts/
$ ./createbooktype -p dev --check-versions --database postgresql /var/www/booktype/instance1
$ cd /var/www/booktype/instance1/
$ nano instance1_site/settings/base.py
$ nano instance1_site/settings/dev.py
$ . ./booktype.env
$ ./manage.py migrate
$ ./manage.py createsuperuser
$ ./manage.py runserver 0.0.0.0:8005
In another terminal
$ cd /var/www/booktype/instance1/
$ sudo su -s /bin/sh www-data
$ ./manage.py celery worker --concurrency=10 -l debug
<link rel="stylesheet" href="/static/CACHE/css/a9ea424f1e42.css" type="text/css" />
<link href='http://booktype.tristank.de/static/core/css/bootstrap.css' rel='stylesheet' type='text/css' />
<link href='http://booktype.tristank.de/static/core/css/bootstrap-theme.css' rel='stylesheet' type='text/css' />
<link href='http://booktype.tristank.de/static/core/css/bootstrap-custom.css' rel='stylesheet' type='text/css' />
<link href='http://booktype.tristank.de/static/core/css/font-awesome/css/font-awesome.min.css' rel="stylesheet" />
<link href='http://booktype.tristank.de/static/core/css/booki-new.css' rel='stylesheet' type='text/css' />
<link href='http://booktype.tristank.de/static/core/css/bt20.css' rel='stylesheet' type='text/css' />
<link href='http://booktype.tristank.de/static/core/css/aloha.css' rel='stylesheet' type='text/css' />
runserver 0.0.0.0:8005
is really just for testing. If you want your server to be available to the outside world, I suggest using a normal web server such as Apache on port 80. Please see 'Apache configuration' in http://sourcefabric.booktype.pro/booktype-21-for-authors-and-publishers/manual-installation-on-gnulinux/ replacing booktype.example.com with booktype.tristank.de in the examples of course.It looks like you're new here. If you want to get involved, click one of these buttons!