Installation problem !
  • Hello !

    Twice I've installed booktype.
    Each time I've the same problem.

    I have no error message.
    When I try to go to my website in local network area, I have access to booktype but only in text version, without any graphic element.
    When I try to connect, booktype says that my ID and my password don't match...

    I've performed an automatic installation with a new ubuntu-server 14.04
    (sorry for my awful english)

    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • 44 Comments sorted by
  • Vote Up1Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Michael, you're welcome :-) We accept that the installation from git is not very easy, I can ask about creating a new Debian/Ubuntu package for our next release.


    Post edited by Daniel James at 2016-12-12 05:37:48
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Michael, your English is fine!

    This issue is likely to be caused by the path to static files used in the interface. If you take a look at the source of the login page, what is the URL of the CSS files? For example:
    <link href='http://booktype-dev.sourcefabric.org/static/core/css/bootstrap.css' rel='stylesheet' type='text/css' />
    Is the URL you see valid, i.e. is the file in question accessible? If not, check the Apache configuration for static files.

    Cheers!

    Daniel
  • Hi and thanks Daniel !

    I've just reached the source code of my booktype home page (the properties don't display any information about CSS).
    This is the line about the CSS related link :

    <link rel="stylesheet" href="http:///static/CACHE/css/83d94e81e868.css" type="text/css" />

    (I can load the style sheet with http://192.168.1.42/static/CACHE/css/83d94e81e868.css where 192.168.1.42 is my local IP)
     
    What can I do ? I'm like a bluebye with apache...

    /etc/apache2/sites-enabled/booktype-instance1.conf says that

    Alias /static/ "/var/www/booktype/instance1/static/"
    <Directory "/var/www/booktype/instance1/static/">
    Require all granted
    Options -Indexes
    </Directory>


    Do you think that there is any mistake ?

    Thanks for helpin.
    Best regards.


    Post edited by Michael La Souriciere at 2016-12-09 05:29:56
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Are you accessing the Booktype instance via http://192.168.1.42 or a fully qualified domain name? Please take a look at the Apache error log and paste any relevant lines here.
    Post edited by Daniel James at 2016-12-09 07:16:46
  • I access the booktype via http://192.168.1.42

    /var/log/apache2/booktype-instance1-error.log : is empty

    /var/log/apache2/booktype-instance1-access.log : You can find below the 10 last lines

    192.168.1.29 - - [09/Dec/2016:11:51:33 +0100] "GET / HTTP/1.1" 200 3520 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "OPTIONS /static/CACHE/css/83d94e81e868.css HTTP/1.1" 200 216 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE/css/83d94e81e868.css HTTP/1.1" 405 590 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE/css HTTP/1.1" 301 594 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE/css/ HTTP/1.1" 405 574 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE/css/83d94e81e868.css HTTP/1.1" 405 590 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE/css HTTP/1.1" 301 594 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE/css/ HTTP/1.1" 405 574 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE/css HTTP/1.1" 301 594 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE/css/ HTTP/1.1" 405 574 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE HTTP/1.1" 301 586 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE/ HTTP/1.1" 405 570 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE/css/83d94e81e868.css HTTP/1.1" 405 590 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE/css HTTP/1.1" 301 594 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "PROPFIND /static/CACHE/css/ HTTP/1.1" 405 574 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601"
    192.168.1.29 - - [09/Dec/2016:11:52:03 +0100] "GET /static/CACHE/css/83d94e81e868.css HTTP/1.1" 200 49154 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; Media Center PC 6.0)"
    192.168.1.29 - - [09/Dec/2016:14:08:38 +0100] "GET / HTTP/1.1" 200 3520 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"


    It seems not to help us...
    Isn't it ?

    Michael
    Post edited by Michael La Souriciere at 2016-12-09 09:40:02
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi, we would recommend that you use a fully qualified domain name when using the production profile with CSS cache etc. Try the method shown at 'Testing a Booktype instance' here first: http://sourcefabric.booktype.pro/booktype-21-for-authors-and-publishers/manual-installation-on-gnulinux/

    Also, those PROPFIND requests in your log are unusual, are you running a mixed Ubuntu and Windows network by any chance?
  • ooooh !
    I'm sorry but I don't understand the chapter 'Testing a booktype instance' !
    I don't know how to use the account www-data...

    Booktype was a dream for our association... but is going so far away !
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Daniel,
    I've tested that :

    cd /var/www/booktype/instance1/
    sudo su -s /bin/sh www-data
    ./manage.py runserver 0.0.0.0:8005
    and the server answers :
    Traceback (most recent call last):
      File "./manage.py", line 5, in <module>
        from unipath import Path
    ImportError: No module named unipath


    Booktype server is iinstalled on a Ubuntu-server 14.04 and I work with Putty under win7.
    I already use firefox/win7 to reach to the booktype.



    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Perhaps you don't have your environment variables loaded. Try this:
    . ./booktype.env
    ./manage.py runserver 0.0.0.0:8005

  • I have the same error with your commands.
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Hello Daniel,
    I've tried again but with no issue.
    I don't know why it doesn't work....
    Thx for your help.
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Dear Michael,

    Sorry to hear you have issues installing Booktype. I don't know what you are exactly planning with Booktype but probably it makes sense for you: we offer set-up and developer support also fo self-hosters. 

    Just let me know. You can reach me over julian.sorge@booktype.pro

    Best,
    Julian


  • Julian.
    I work for a french association.
    I want to use booktype to permit to our members to contribute to write document about education, teenagers, children, youth, disabled person...
    In a previous project (witch it is already useful) I have used the broadcasting software : airtime.
    I try to install booktype by myself because we don't have money for this.
    Thx.
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • I'm sorry (because I like sourcefabric spirit) but I probably would look for another tool...
    I don't know if an another open source project like booktype exists..
    Even if, we would share our OpenDocument with our mail client... :-(
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Not sure for how long and how many publications you need Booktype? F.e. our platform Omnibook (omnbook.pro) is free and you can publish one book per account and work on that book with as many people you like. Beside this we offer subscription plans starting from €49/month. 

    Best,
    Julian  
  • Thx Julian.
    I would try again, these next days.
    Be seff-hosted is a priority !
    Thx again for your fabulous work !
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Daniel !
    It would be a great news !!!
    Do you think that the actual package is not efficient ?
    (Do you know when the next package will come ?)
    Michael
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    The Debian/Ubuntu package is easier for most users, it just takes a little time to prepare and test. As for the timescale of the next release, I will ask my colleagues.

    Cheers!

    Daniel
  • I'm waiting !
    Thx for the informations.


    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Hi !
    I'm back at home after 2 weeks at work (where I have tried a first installation).
    I've installed a new ubuntuon a personnal laptop. Booktype installation gave the same result.
    The same error ImportError: No module named unipath

    It's very stranger...
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Michael, this error just means that the system cannot find where your Python modules are installed. Try the command:
    pip show unipath
    It should output something like:
    Location: /usr/local/lib/python2.7/dist-packages

  • Dear Daniel,

    Since your previous message, I've made some packages installation :

    sudo apt-get install python-unipath
    sudo apt-get install python-django
    sudo apt-get install python-django-celery


    (these package were not installed by the dependances).

    But I have a new error with the manage.py instruction :

    ImportError: No module named redis

    I've tried to install redis-server but it was already running...
    I've restart apache and, finally, the server... no more success !


    thx for your precious help

    Post edited by Michael La Souriciere at 2016-12-23 07:06:54
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Michael,

    This error refers to the Python module for redis rather than the redis server. Installing Python dependencies with apt-get may not work because Booktype requires specific versions. See https://github.com/sourcefabric/Booktype/blob/master/requirements/_base.txt for the redis module version.

    This is why we install the requirements with one of:
    sudo pip install -r /usr/local/src/booktype/requirements/dev.txt
    sudo pip install -r /usr/local/src/booktype/requirements/prod.txt
    See http://sourcefabric.booktype.pro/booktype-21-for-authors-and-publishers/manual-installation-on-gnulinux/

    Cheers!

    Daniel
  • Daniel,

    First of all, I want to wish an happy new year and thank you again for your help.

    I've done this on a another server :
    pip install -r requirements/prod.txt

    All the depencies were downloaded and installed.

    I have a new error :
    $ ./manage.py runserver 0.0.0.0:8005
    Traceback (most recent call last):
    File "./manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
    File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
    File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute
    django.setup()
    File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 21, in setup
    apps.populate(settings.INSTALLED_APPS)
    File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models(all_models)
    File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
    File "/usr/local/lib/python2.7/dist-packages/djcelery/models.py", line 15, in <module>
    from celery.utils.timeutils import timedelta_seconds
    ImportError: No module named timeutils


    I've searched solution on the web and I've found this : https://dev.sourcefabric.org/browse/BK-2081. My error seems to be related to new version of celery.

    $ pip show celery
    ---
    Name: celery
    Version: 4.0.2
    Location: /usr/local/lib/python2.7/dist-packages
    Requires: billiard, pytz, kombu


    This ticket gave me an idea to resolve this problem : https://dev.sourcefabric.org/browse/BK-2082

    So I've done successfully

    sudo pip uninstall celery
    sudo pip install celery==3.1.18


    and the manager.py, now, returns me

    Performing system checks...
    System check identified no issues (0 silenced).
    January 04, 2017 - 15:46:44
    Django version 1.7.8, using settings 'instance1_site.settings.prod'
    Starting development server at http://0.0.0.0:8005/
    Quit the server with CONTROL-C.


    So I'm happy to have passed this step...



    Post edited by Michael La Souriciere at 2017-01-04 09:53:39
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • So I refer to : http://sourcefabric.booktype.pro/booktype-21-for-authors-and-publishers/manual-installation-on-gnulinux/ . The chapter Testing a Booktype instance is successfully passed but I don't have access to the css nor graphic elements. The booktype is only in text version....

    When I look at the chapter Apache configuration. I don't see any difference between my file and the exemple.

    The code source of the page shows links without the adress of the server like :
    <div class="logotext"><a href="http:///">Booktype - Fédération nationale des Francas</a> </div>
    It will work soon !

    Michael
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Michael, a happy new year to you too, I'm glad you got Booktype running :-)

    If you would like to add or correct any French strings in the interface, you might like to join our translation team at https://www.transifex.com/sourcefabric/teams/7233/fr/

    Cheers!

    Daniel
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Michael,

    If you don't see the graphics then it suggests the hostname might be missing from the configuration file, such as prod.py. Please check the values of:
    THIS_BOOKTYPE_SERVER
    BOOKTYPE_URL
    Cheers!

    Daniel
  • Well seen !

    I've had :

    THIS_BOOKTYPE_SERVER = ''
    BOOKTYPE_URL = ''
    And I've replaced byTHIS_BOOKTYPE_SERVER = 'booktype-dev'
    BOOKTYPE_URL = 'http://192.168.1.69'
    But I've now an error 500 on the page.


    Post edited by Michael La Souriciere at 2017-01-04 11:37:23
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    These values should match and be based on a fully qualified domain name. For example:
    THIS_BOOKTYPE_SERVER = 'booktype.example.com'
    BOOKTYPE_URL = 'http://booktype.example.com'

  • I've modified like you've wrote.

    1. I've not have a "fully qualified domain name". I'm on my local area network.
    2. In the code source page, I don't have any reference to the css file...

    It works better when I've
    BOOKTYPE_URL = 'http://192.168.1.69'
    because the system can reach the book type logo (of the booktype pro link). The only picture I can see !

    Post edited by Michael La Souriciere at 2017-01-04 11:42:09
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    If you don't have a real domain name, you can set up a fake one in the /etc/hosts file of the machines on the local network:

    192.168.1.69     booktype.mydomain.com  booktype

    and on the server, use the local address:

    127.0.1.1     booktype.mydomain.com  booktype

    Then in your Booktype config you can use booktype.mydomain.com and it should work like a real domain.
  • thank you for this information.
    I've looked of the content of /var/www/booktype/instance1/static/css/_user.css
    This file is the only file of this directory and it is empty... is it normal ?

    Michael
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    For a production profile instance most of the CSS will be served from the directory:
    static/core/css/
    The step of the installation which populates this directory is:
    ./manage.py collectstatic
    If you view the source of your Booktype homepage, are the links to CSS files in the head element of the page valid?
    Post edited by Daniel James at 2017-01-04 12:45:15
  • This directory is well populated ! :-)

    I can reach these files on my remoted web client with URL like http://192.168.1.69/static/core/css/bt20.css

    I have nothing in the <HEAD> of my page.

    (perharps, it's necessary to indicate that the automatic installation don't work)



    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)

  • Daniel,
    I've made a lot of modifications today... perhaps too much modifications !
    It's a real storm in my mind tonight ! Can you take a look to my conf file ?

    /etc/hosts

    192.168.1.69     booktype.mydomain.com  booktype
    127.0.1.1        booktype.mydomain.com  booktype


    # The following lines are desirable for IPv6 capable hosts
    ::1     localhost ip6-localhost ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters


    /etc/apache2/sites-enabled/booktype-instance1.conf

    # Apache configuration for Booktype server V1.0.6

    <VirtualHost *:80>

         # Change the following three lines for your server

         ServerName booktype.mydomain.com
         SetEnv HTTP_HOST "booktype.mydomain.com"
         ServerAdmin root@localhost

         SetEnv LC_TIME "fr_FR.UTF-8"
         SetEnv LANG "fr_FR.UTF-8"

         WSGIScriptAlias / /var/www/booktype/instance1/instance1_site/wsgi.py

         # uncomment 'Require all granted' for Apache 2.4 without mod_access_compat

         <Location "/">
           Require all granted
           Options FollowSymLinks
         </Location>

         Alias /static/ "/var/www/booktype/instance1/static/"
         <Directory "/var/www/booktype/instance1/static/">
           Require all granted
           Options -Indexes
         </Directory>

         Alias /data/ "/var/www/booktype/instance1/data/"
         <Directory "/var/www/booktype/instance1/data/">
           Require all granted
           Options -Indexes
         </Directory>

         ErrorLog ${APACHE_LOG_DIR}/booktype-instance1-error.log
         LogLevel debug
         CustomLog ${APACHE_LOG_DIR}/booktype-instance1-access.log combined
    </VirtualHost>


    /var/www/booktype/instance1/instance1_site/settings/prod.py

    # WEB SITE URL
    THIS_BOOKTYPE_SERVER = 'booktype.mydomain.com'
    BOOKTYPE_URL = 'http://booktype.mydomain.com'
    # BOOKTYPE_URL = 'http://{}'.format(THIS_BOOKTYPE_SERVER)

    And :

    michael@booktype-dev:~$ hostname
    booktype-dev
    michael@booktype-dev:~$ hostname -A
    booktype.mydomain.com
    michael@booktype-dev:~$ hostname -I
    192.168.1.69
    michael@booktype-dev:~$ sudo service apache2 restart
    sudo: impossible de déterminer le nom de l'hôte booktype-dev
     * Restarting web server apache2
    AH00557: apache2: apr_sockaddr_info_get() failed for booktype-dev
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
    [ OK ]



    Post edited by Michael La Souriciere at 2017-01-04 13:42:53
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • These files give a this source code for the homepage :


    <!doctype html>
    <html lang="en" class="custom-scroll">
    <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Booktype</title>




    <link href='//fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'>

    <link rel="stylesheet" href="http://booktype.mydomain.com/static/CACHE/css/191430f021b4.css" type="text/css" />



    <script type="text/javascript" src="http://booktype.mydomain.com/static/CACHE/js/2d386e957f90.js"></script>











    <script type="text/javascript" src="http://booktype.mydomain.com/static/CACHE/js/22f995ced817.js"></script>

    </head>
    <body>

    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Daniel,
    For further informations, some links are displayed with the http://192.168.1.69/xxxxxxx (these work !) and others with http://booktype.mydomain.com (and these don't work).
    When I play with the Firebug module, I can change the beginning of the css file URL and the booktype look fine ! Today would be a great day if I can resolve my hosts/apache/booktype configuration ! :-)
    Have a good day
    Michael


    Post edited by Michael La Souriciere at 2017-01-05 06:19:55
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Hi Michael, a happy new year to you too, I'm glad you got Booktype running :-)

    If you would like to add or correct any French strings in the interface, you might like to join our translation team at https://www.transifex.com/sourcefabric/teams/7233/fr/

    Cheers!

    Daniel



    i didn't see this bessage before ! Thanks. I will contribute to the french translation.Don't worry.

    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi, does http://booktype.mydomain.com actually resolve on the machine you are using to test the Booktype interface? This is just meant as an example as mydomain.com is a real domain belonging to someone else.
  • Hi,
    http://booktype.mydomain.com is not resolved by my web client. There is a lot of documentation about network configuration, apache sttings... but I don't understand anything. On my LAN I just have some "win" computer and a routeur and no domain server... I don't know what I have to fill in the domain settings !

    Post edited by Michael La Souriciere at 2017-01-09 15:58:43
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Hi,
    http://booktype.mydomain.com
    is not resolved by my web client. There is a lot of documentation about
    network configuration, apache sttings... but I don't understand
    anything. On my LAN I just have some "win" computer and a routeur and no
    domain server... I don't know what I have to fill in the domain
    settings !
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Daniel,
    Do you know where I can find the html files to modify the <head> links ?
    Thanks
    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Michael, it should not be necessary to hack the <head> links and it would probably cause more breakage :-)

    Here is a tutorial that explains the hosts file on various platforms: http://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/

    Cheers!

    Daniel
  • Daniel,
    Thanks for the link witch is very useful to know how set up the hosts file. My diffuclties are not in the "how" but in the "what I have to wite in this files".
    But after looking to source code of different homepage (like omnibook) I think there is an error in the setting for the URL (perhaps in the prod.py).
    https://omnibook.pro/

    On the omnibook, link to css is : /static/.......
    On my booktype , link to css is http://booktype.mydomain.com/static/....

    This is why I think there is a problem in the prod.py. When I delete the first party of the URL, the css file is reached ! Since I've started my experimentation, I've two servers, on two networks with two hosts/network config differents.... and always tis problem of URL...

    I probably can forward a port on a server to offer you the possibily to look by yourself. I look for it.
    Good night !

    RécréaZoom - La radio éducative et non-commerciale du CECL : Pour contribuer à l'éducation aux médias (using Airtime)