make INSTALL.txt file valid rST
This commit is contained in:
parent
bb4b6574bc
commit
2dc582cfbb
@ -1,51 +1,60 @@
|
|||||||
|
============================
|
||||||
SemanticScuttle installation
|
SemanticScuttle installation
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
|
||||||
Prerequisites
|
Prerequisites
|
||||||
-------------
|
=============
|
||||||
To run SemanticScuttle, you need:
|
To run SemanticScuttle, you need:
|
||||||
|
|
||||||
- PHP5 with filter functions enabled
|
- PHP5 with filter functions enabled
|
||||||
- A web server, for example Apache
|
- A web server, for example Apache
|
||||||
|
|
||||||
|
|
||||||
Installation instructions
|
Installation instructions
|
||||||
-------------------------
|
=========================
|
||||||
1. Create a new MySQL database
|
1. Create a new MySQL database
|
||||||
2. Import tables.sql into that database, i.e.
|
2. Import ``data/tables.sql`` into that database, i.e.
|
||||||
run
|
run ::
|
||||||
> mysql -umyusername semanticscuttle < data/tables.sql
|
|
||||||
|
$ mysql -umyusername semanticscuttle < data/tables.sql
|
||||||
|
|
||||||
on the shell ("semanticscuttle" being the database name)
|
on the shell ("semanticscuttle" being the database name)
|
||||||
3. Copy data/config.php.dist to data/config.php and modify it as
|
|
||||||
|
3. Copy ``data/config.php.dist`` to ``data/config.php`` and modify it as
|
||||||
necessary.
|
necessary.
|
||||||
4. Make the cache directory writable by your web server.
|
4. Make the cache directory writable by your web server.
|
||||||
For example, run
|
For example, run ::
|
||||||
> chmod 0777 cache
|
|
||||||
|
$ chmod 0777 cache
|
||||||
|
|
||||||
on the shell.
|
on the shell.
|
||||||
5. Set the www/ directory as document root in your web server,
|
5. Set the ``www/`` directory as document root in your web server,
|
||||||
restart the web server.
|
restart the web server.
|
||||||
|
|
||||||
|
|
||||||
Ugly www directory in URLs
|
Ugly www directory in URLs
|
||||||
--------------------------
|
==========================
|
||||||
In case point 5 of the installation instructions cannot be put into
|
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
|
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
|
configuration, you are not lost! There is a way to get rid of
|
||||||
www/ in your URL!
|
``www/`` in your URL!
|
||||||
|
|
||||||
|
Imagine following directory layout: ::
|
||||||
|
|
||||||
Imagine following directory layout:
|
|
||||||
/home/customer123/
|
/home/customer123/
|
||||||
www/
|
www/
|
||||||
subdomain1/
|
subdomain1/
|
||||||
subdomain2/
|
subdomain2/
|
||||||
subdomain3/
|
subdomain3/
|
||||||
|
|
||||||
Create a SemanticScuttle directory somewhere outside www if possible
|
Create a SemanticScuttle directory somewhere outside ``www`` if possible
|
||||||
and put all directories except www/ in there. Move all files and
|
and put all directories except ``www/`` in there. Move all files and
|
||||||
directories from www/ into your subdomain directory. Then modify
|
directories from ``www/`` into your subdomain directory. Then modify
|
||||||
subdomain/www-header.php to include the correct file path.
|
``subdomain/www-header.php`` to include the correct file path.
|
||||||
|
|
||||||
|
The new directory layout should look that way: ::
|
||||||
|
|
||||||
The new directory layout should look that way:
|
|
||||||
/home/customer123/
|
/home/customer123/
|
||||||
semanticscuttle/
|
semanticscuttle/
|
||||||
doc/
|
doc/
|
||||||
@ -60,8 +69,11 @@ The new directory layout should look that way:
|
|||||||
www-header.php
|
www-header.php
|
||||||
subdomain3/
|
subdomain3/
|
||||||
|
|
||||||
Now open www-header.php and replace
|
Now open www-header.php and replace ::
|
||||||
|
|
||||||
require_once '../src/SemanticScuttle/header.php';
|
require_once '../src/SemanticScuttle/header.php';
|
||||||
with
|
|
||||||
|
with ::
|
||||||
|
|
||||||
require_once '../../semanticscuttle/src/SemanticScuttle/header.php';
|
require_once '../../semanticscuttle/src/SemanticScuttle/header.php';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user