summaryrefslogtreecommitdiff
path: root/doc/source/installation.rst
blob: 383d0f02f571b56bb0ffa9475966657071f42de7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Installation
============

Snuffleupagus is tested against various PHP 7+ versions: XXX

Manual installation
-------------------

Depending on the system, we might already offer binary packages.
You can check our :doc:`download`. In that case you only need to activate
the extension inside your ``php.ini`` and to configure it.


Quickstart
^^^^^^^^^^

::

    git clone https://github.com/nbs-system/snuffleupagus
    cd snuffleupagus/src
    phpize
    ./configure --with-snuffleupagus
    make
    make install

This should install ``snuffleupagus.so`` file in your extension directory.
The final step is adding a load directive to ``php.ini``,
and to specify the location of its :doc:`configuration file <config>`:

::

    extension=snuffleupagus.so
    sp.configuration_file=/etc/php/conf.d/snuffleupagus.ini

Upgrading
---------

Upgrading the Snuffleupagus is as simple as recompiling it (or using a binary), replacing the file and restarting your webserver.