New Fuseki and Skosmos install tutorial

235 views
Skip to first unread message

Osma Suominen

unread,
Apr 15, 2016, 2:13:48 AM4/15/16
to Skosmos Users
Hi,

We've written a new tutorial for getting started with Skosmos. It walks
through installing Fuseki2 and Skosmos on an Ubuntu 14.04 (virtual)
server. The last part is about optimizing Skosmos performance using APC
and Varnish.

https://github.com/NatLibFi/Skosmos/wiki/InstallTutorial

This document became rather long and we have considered splitting it up
into several wiki pages. But for now it's just a single long page.

Any comments are welcome!

-Osma

--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.s...@helsinki.fi
http://www.nationallibrary.fi

Félix Buendía

unread,
Mar 9, 2017, 6:40:25 AM3/9/17
to Skosmos Users, vtel...@disca.upv.es
Hi,
my name is Felix and with my colleague Vicente Lliso at the Politecnica of Valencia (Spain), we are trying to install the Skosmos environment.
We have already installed the Fuseki Jena and it is working but when we try to install Skosmos we have the next message in "sudo php composer.phar install –no-dev":
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for codeclimate/php-test-reporter ^0.2.0 -> satisfiable by codeclimate/php-test-reporter[v0.2.0].
- codeclimate/php-test-reporter v0.2.0 requires satooshi/php-coveralls 0.6.* -> satisfiable by satooshi/php-coveralls[v0.6.0, v0.6.1].
- satooshi/php-coveralls v0.6.0 requires psr/log 1.0.0 -> satisfiable by psr/log[1.0.0].
- satooshi/php-coveralls v0.6.1 requires psr/log 1.0.0 -> satisfiable by psr/log[1.0.0].
- Conclusion: don't install psr/log 1.0.0

Any idea about this problem?
Best regards.

Osma Suominen

unread,
Mar 9, 2017, 8:30:22 AM3/9/17
to skosmo...@googlegroups.com
Hi Félix,

Thanks for trying out Skosmos!

Your error message is surprising. I don't recall seeing this.

The "codeclimate/php-test-reporter" dependency that seems to be at the
root of the problem is specified in the Skosmos composer.json file as a
development-only dependency. Thus it should not even be installed if you
are using the --no-dev option. Also the logic behind the Composer
conclusion does not make sense to me...

Can you tell a bit more about your system. Which OS/distibution/release
are you using? Which PHP version? Is your Composer installation up to date?

-Osma
> osma.s...@helsinki.fi <javascript:>
> http://www.nationallibrary.fi
>
> --
> You received this message because you are subscribed to the Google
> Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to skosmos-user...@googlegroups.com
> <mailto:skosmos-user...@googlegroups.com>.
> To post to this group, send email to skosmo...@googlegroups.com
> <mailto:skosmo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/skosmos-users/0d0f5a22-aad2-46f5-8ddf-80018bd40f28%40googlegroups.com
> <https://groups.google.com/d/msgid/skosmos-users/0d0f5a22-aad2-46f5-8ddf-80018bd40f28%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Nicola Carboni

unread,
Mar 9, 2017, 11:05:43 AM3/9/17
to Skosmos Users
Hi Felix, 
I got the same error myself,  you just needed to add 
psr/log 1.0.0
to composer.json as:

 "require": {
    "psr/log": "1.0.0",


Hope it works!

Roger Rutishauser

unread,
Apr 6, 2018, 4:08:10 AM4/6/18
to Skosmos Users
Hi Nicola
Thank you. Glad I found this answer from you. It worked. But now there comes another problem. When I direct the browser to https://skosmos.linkeddata.ch where I installed Skosmos to, it makes a forwarding to https://skosmos.linkeddata.ch/en/. But there is no "en" folder in /var/www/linkeddata.ch/Skosmos/
Why the forwarding?
cheers, Roger

Osma Suominen

unread,
Apr 6, 2018, 4:12:27 AM4/6/18
to skosmo...@googlegroups.com
Hi Roger,

Skosmos URLs contain the language of the user interface. /en/ should
show the front page in English. It isn't actually a folder, but URL
rewrite rules in the .htaccess should cause it to be processed by the
main script index.php.

I suspect your .htaccess file is not being processed. Check that you
have enabled AllowOverride. See here:

https://github.com/NatLibFi/Skosmos/wiki/InstallTutorial#configure-apache-for-skosmos

-Osma
> > <mailto:skosmos-user...@googlegroups.com>.
> <https://groups.google.com/d/msgid/skosmos-users/0d0f5a22-aad2-46f5-8ddf-80018bd40f28%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/optout>.
>
>
> --
> Osma Suominen
> D.Sc. (Tech), Information Systems Specialist
> National Library of Finland
> P.O. Box 26 (Kaikukatu 4)
> 00014 HELSINGIN YLIOPISTO
> Tel. +358 50 3199529
> osma.s...@helsinki.fi
> http://www.nationallibrary.fi
>
> --
> You received this message because you are subscribed to the Google
> Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to skosmos-user...@googlegroups.com
> <mailto:skosmos-user...@googlegroups.com>.
> To post to this group, send email to skosmo...@googlegroups.com
> <mailto:skosmo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/skosmos-users/a4085d6c-c029-4f75-b77e-017fe7513f15%40googlegroups.com
> <https://groups.google.com/d/msgid/skosmos-users/a4085d6c-c029-4f75-b77e-017fe7513f15%40googlegroups.com?utm_medium=email&utm_source=footer>.

Roger Rutishauser

unread,
Apr 6, 2018, 5:56:59 AM4/6/18
to Skosmos Users
Hi Osma
Thanks! I read this but I am confused, because I am trying to run Skosmos in a subdomain. Therefore I have a separate .conf file called "skosmos.linkeddata.ch.conf" in /etc/apache2/sites-available/ and I also changed the Directory path in the <Directory> section.
Content of that file:
<VirtualHost skosmos.linkeddata.ch:80>
        DocumentRoot /var/www/linkeddata.ch/Skosmos
        ServerName skosmos.linkeddata.ch
       
<Directory /var/www/html/linkeddata.ch/Skosmos>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
       
</Directory>
RewriteEngine on
RewriteCond %{SERVER_NAME} =skosmos.linkeddata.ch
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

What am I doing wrong, can you help again? 
Thanks, 
Roger
>          > <mailto:skosmos-users+unsub...@googlegroups.com>.
>          > To post to this group, send email to skosmo...@googlegroups.com
>          > <mailto:skosmo...@googlegroups.com>.
>          > To view this discussion on the web visit
>          >
>         https://groups.google.com/d/msgid/skosmos-users/0d0f5a22-aad2-46f5-8ddf-80018bd40f28%40googlegroups.com
>         <https://groups.google.com/d/msgid/skosmos-users/0d0f5a22-aad2-46f5-8ddf-80018bd40f28%40googlegroups.com>
>
>          >
>         <https://groups.google.com/d/msgid/skosmos-users/0d0f5a22-aad2-46f5-8ddf-80018bd40f28%40googlegroups.com?utm_medium=email&utm_source=footer
>         <https://groups.google.com/d/msgid/skosmos-users/0d0f5a22-aad2-46f5-8ddf-80018bd40f28%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>          > For more options, visit https://groups.google.com/d/optout
>         <https://groups.google.com/d/optout>.
>
>
>         --
>         Osma Suominen
>         D.Sc. (Tech), Information Systems Specialist
>         National Library of Finland
>         P.O. Box 26 (Kaikukatu 4)
>         00014 HELSINGIN YLIOPISTO
>         Tel. +358 50 3199529
>         osma.s...@helsinki.fi
>         http://www.nationallibrary.fi
>
> --
> You received this message because you are subscribed to the Google
> Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to skosmos-user...@googlegroups.com

Osma Suominen

unread,
Apr 6, 2018, 9:36:20 AM4/6/18
to skosmo...@googlegroups.com
Hi Roger!

It looks like you've set up automatic redirection to another, HTTPS
based virtual host (rewrite rules near the bottom of the file). So the
AllowOverride setting in this file probably has no effect, as the
requests are instantly redirected. What's the configuration for the
HTTPS virtual host?

-Osma

Roger Rutishauser kirjoitti 06.04.2018 klo 12:56:
> Hi Osma
> Thanks! I read this but I am confused, because I am trying to run
> Skosmos in a subdomain. Therefore I have a separate .conf file called
> "skosmos.linkeddata.ch.conf" in /etc/apache2/sites-available/ and I also
> changed the Directory path in the <Directory> section.
> Content of that file:
> |
> <VirtualHostskosmos.linkeddata.ch:80>
> <https://skosmos.linkeddata.ch/en/>. But there is no "en"
> > folder in /var/www/linkeddata.ch/Skosmos/
> <http://linkeddata.ch/Skosmos/>
> >          > <mailto:skosmos-user...@googlegroups.com
> <javascript:>>.
> > an email to skosmos-user...@googlegroups.com <javascript:>
> > <mailto:skosmos-user...@googlegroups.com <javascript:>>.
> > To post to this group, send email to skosmo...@googlegroups.com
> <javascript:>
> > <mailto:skosmo...@googlegroups.com <javascript:>>.
> <https://groups.google.com/d/msgid/skosmos-users/a4085d6c-c029-4f75-b77e-017fe7513f15%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/skosmos-users/a4085d6c-c029-4f75-b77e-017fe7513f15%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> Osma Suominen
> D.Sc. (Tech), Information Systems Specialist
> National Library of Finland
> P.O. Box 26 (Kaikukatu 4)
> 00014 HELSINGIN YLIOPISTO
> Tel. +358 50 3199529
> osma.s...@helsinki.fi <javascript:>
> http://www.nationallibrary.fi
>
> --
> You received this message because you are subscribed to the Google
> Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to skosmos-user...@googlegroups.com
> <mailto:skosmos-user...@googlegroups.com>.
> To post to this group, send email to skosmo...@googlegroups.com
> <mailto:skosmo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/skosmos-users/aa420d39-5868-48a4-b08e-5f92e4a4f711%40googlegroups.com
> <https://groups.google.com/d/msgid/skosmos-users/aa420d39-5868-48a4-b08e-5f92e4a4f711%40googlegroups.com?utm_medium=email&utm_source=footer>.

Roger Rutishauser

unread,
Apr 6, 2018, 9:45:37 AM4/6/18
to Skosmos Users
Hi Osma

Yes, it forwards to the https Version. The config file for this (automatically created when creating let's encrypt certificate) is called "skosmos.linkeddata.ch-le-ssl.conf" and the content is:
<IfModule mod_ssl.c>
        ServerAdmin roger.ru...@gmail.com
        DocumentRoot /var/www/linkeddata.ch/Skosmos
        ServerName skosmos.linkeddata.ch
        <Directory /var/www/html/linkeddata.ch/Skosmos>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
RewriteEngine on
# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.

# RewriteCond %{SERVER_NAME} =skosmos.linkeddata.ch
# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
SSLCertificateFile /etc/letsencrypt/live/skosmos.linkeddata.ch/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/skosmos.linkeddata.ch/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>



>      >          > <mailto:skosmos-users+unsub...@googlegroups.com
>      > <mailto:skosmos-users+unsub...@googlegroups.com <javascript:>>.
>      > To post to this group, send email to skosmo...@googlegroups.com
>     <javascript:>
>      > <mailto:skosmo...@googlegroups.com <javascript:>>.
>      > To view this discussion on the web visit
>      >
>     https://groups.google.com/d/msgid/skosmos-users/a4085d6c-c029-4f75-b77e-017fe7513f15%40googlegroups.com
>     <https://groups.google.com/d/msgid/skosmos-users/a4085d6c-c029-4f75-b77e-017fe7513f15%40googlegroups.com>
>
>      >
>     <https://groups.google.com/d/msgid/skosmos-users/a4085d6c-c029-4f75-b77e-017fe7513f15%40googlegroups.com?utm_medium=email&utm_source=footer
>     <https://groups.google.com/d/msgid/skosmos-users/a4085d6c-c029-4f75-b77e-017fe7513f15%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>      > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>
>
>     --
>     Osma Suominen
>     D.Sc. (Tech), Information Systems Specialist
>     National Library of Finland
>     P.O. Box 26 (Kaikukatu 4)
>     00014 HELSINGIN YLIOPISTO
>     Tel. +358 50 3199529
>     osma.s...@helsinki.fi <javascript:>
>     http://www.nationallibrary.fi
>
> --
> You received this message because you are subscribed to the Google
> Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to skosmos-user...@googlegroups.com

Osma Suominen

unread,
Apr 6, 2018, 9:50:16 AM4/6/18
to skosmo...@googlegroups.com
Hi Roger!

I think one of the paths is wrong. You have
DocumentRoot /var/www/linkeddata.ch/Skosmos
<Directory /var/www/html/linkeddata.ch/Skosmos>

Note the /html/ in the latter.

-Osma
> <http://VirtualHostskosmos.linkeddata.ch:80>>
> >          DocumentRoot /var/www/linkeddata.ch/Skosmos
> <http://linkeddata.ch/Skosmos>
> >          ServerName skosmos.linkeddata.ch
> <http://skosmos.linkeddata.ch>
> > <Directory/var/www/html/linkeddata.ch/Skosmos
> <http://linkeddata.ch/Skosmos>>
> >                  Options Indexes FollowSymLinks MultiViews
> >                  AllowOverride All
> >                  Order allow,deny
> >                  allow from all
> > </Directory>
> > RewriteEngine on
> > RewriteCond %{SERVER_NAME} =skosmos.linkeddata.ch
> <http://skosmos.linkeddata.ch>
> <mailto:skosmos-user...@googlegroups.com <javascript:>
> >      > <mailto:skosmos-user...@googlegroups.com
> <javascript:> <javascript:>>.
> > an email to skosmos-user...@googlegroups.com <javascript:>
> > <mailto:skosmos-user...@googlegroups.com <javascript:>>.
> > To post to this group, send email to skosmo...@googlegroups.com
> <javascript:>
> > <mailto:skosmo...@googlegroups.com <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/skosmos-users/aa420d39-5868-48a4-b08e-5f92e4a4f711%40googlegroups.com
> <https://groups.google.com/d/msgid/skosmos-users/aa420d39-5868-48a4-b08e-5f92e4a4f711%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/skosmos-users/aa420d39-5868-48a4-b08e-5f92e4a4f711%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/skosmos-users/aa420d39-5868-48a4-b08e-5f92e4a4f711%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> Osma Suominen
> D.Sc. (Tech), Information Systems Specialist
> National Library of Finland
> P.O. Box 26 (Kaikukatu 4)
> 00014 HELSINGIN YLIOPISTO
> Tel. +358 50 3199529
> osma.s...@helsinki.fi <javascript:>
> http://www.nationallibrary.fi
>
> --
> You received this message because you are subscribed to the Google
> Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to skosmos-user...@googlegroups.com
> <mailto:skosmos-user...@googlegroups.com>.
> To post to this group, send email to skosmo...@googlegroups.com
> <mailto:skosmo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/skosmos-users/6796cfd8-7a95-45f6-bf08-0cb7f32fc306%40googlegroups.com
> <https://groups.google.com/d/msgid/skosmos-users/6796cfd8-7a95-45f6-bf08-0cb7f32fc306%40googlegroups.com?utm_medium=email&utm_source=footer>.

Roger Rutishauser

unread,
Apr 13, 2018, 10:01:25 AM4/13/18
to Skosmos Users
oops. thank you! working now
Reply all
Reply to author
Forward
0 new messages