2011-05-26 21:19:47 +02:00
|
|
|
============================
|
2009-09-20 11:28:36 +02:00
|
|
|
SemanticScuttle installation
|
|
|
|
============================
|
|
|
|
|
2009-10-23 18:55:48 +02:00
|
|
|
|
|
|
|
Prerequisites
|
2011-05-26 21:19:47 +02:00
|
|
|
=============
|
2009-10-23 18:55:48 +02:00
|
|
|
To run SemanticScuttle, you need:
|
2011-05-26 21:19:47 +02:00
|
|
|
|
2009-11-20 18:42:29 +01:00
|
|
|
- PHP5 with filter functions enabled
|
2009-10-23 18:55:48 +02:00
|
|
|
- A web server, for example Apache
|
|
|
|
|
|
|
|
|
|
|
|
Installation instructions
|
2011-05-26 21:19:47 +02:00
|
|
|
=========================
|
2009-09-20 11:28:36 +02:00
|
|
|
1. Create a new MySQL database
|
2011-05-26 21:19:47 +02:00
|
|
|
2. Import ``data/tables.sql`` into that database, i.e.
|
|
|
|
run ::
|
|
|
|
|
|
|
|
$ mysql -umyusername semanticscuttle < data/tables.sql
|
|
|
|
|
2009-09-20 11:28:36 +02:00
|
|
|
on the shell ("semanticscuttle" being the database name)
|
2011-05-26 21:19:47 +02:00
|
|
|
|
|
|
|
3. Copy ``data/config.php.dist`` to ``data/config.php`` and modify it as
|
2011-07-21 22:08:46 +02:00
|
|
|
necessary. See configuration_ for more information.
|
2009-09-20 11:28:36 +02:00
|
|
|
4. Make the cache directory writable by your web server.
|
2011-05-26 21:19:47 +02:00
|
|
|
For example, run ::
|
|
|
|
|
|
|
|
$ chmod 0777 cache
|
|
|
|
|
2009-09-20 11:28:36 +02:00
|
|
|
on the shell.
|
2011-05-26 21:19:47 +02:00
|
|
|
5. Set the ``www/`` directory as document root in your web server,
|
2010-02-08 08:32:53 +01:00
|
|
|
restart the web server.
|
2011-07-04 18:14:58 +02:00
|
|
|
6. That's all! Visit your SemanticScuttle installation web site now
|
|
|
|
with your browser.
|
2011-07-21 22:36:17 +02:00
|
|
|
7. Register a user and add bookmarks.
|
2010-02-08 08:32:53 +01:00
|
|
|
|
|
|
|
|
2011-07-21 22:08:46 +02:00
|
|
|
.. _configuration: configuration.html
|
|
|
|
|
|
|
|
|
2010-02-08 08:32:53 +01:00
|
|
|
Ugly www directory in URLs
|
2011-05-26 21:19:47 +02:00
|
|
|
==========================
|
2010-02-08 08:32:53 +01:00
|
|
|
In case point 5 of the installation instructions cannot be put into
|
|
|
|
practice by you because you are not able to change the web server
|
|
|
|
configuration, you are not lost! There is a way to get rid of
|
2011-05-26 21:19:47 +02:00
|
|
|
``www/`` in your URL!
|
|
|
|
|
|
|
|
Imagine following directory layout: ::
|
2010-02-08 08:32:53 +01:00
|
|
|
|
|
|
|
/home/customer123/
|
|
|
|
www/
|
|
|
|
subdomain1/
|
|
|
|
subdomain2/
|
|
|
|
subdomain3/
|
|
|
|
|
2011-05-26 21:19:47 +02:00
|
|
|
Create a SemanticScuttle directory somewhere outside ``www`` if possible
|
|
|
|
and put all directories except ``www/`` in there. Move all files and
|
|
|
|
directories from ``www/`` into your subdomain directory. Then modify
|
|
|
|
``subdomain/www-header.php`` to include the correct file path.
|
|
|
|
|
|
|
|
The new directory layout should look that way: ::
|
2010-02-08 08:32:53 +01:00
|
|
|
|
|
|
|
/home/customer123/
|
|
|
|
semanticscuttle/
|
|
|
|
doc/
|
|
|
|
data/
|
|
|
|
src/
|
|
|
|
www/
|
|
|
|
subdomain1/
|
|
|
|
subdomain2/ (this is the semanticscuttle subdomain)
|
|
|
|
about.php
|
|
|
|
admin.php
|
|
|
|
..
|
|
|
|
www-header.php
|
|
|
|
subdomain3/
|
|
|
|
|
2011-05-26 21:19:47 +02:00
|
|
|
Now open www-header.php and replace ::
|
|
|
|
|
2010-02-08 08:32:53 +01:00
|
|
|
require_once '../src/SemanticScuttle/header.php';
|
2011-05-26 21:19:47 +02:00
|
|
|
|
|
|
|
with ::
|
|
|
|
|
2010-02-08 08:32:53 +01:00
|
|
|
require_once '../../semanticscuttle/src/SemanticScuttle/header.php';
|
|
|
|
|