SuperHive docs

SuperHive docs > User documentation > Installation

Web server configuration

Superhive need a web server and PHP to run.


First make sure you have rewrite and actions modules enabled. If not, Connect to your server with SSH (or SFTP) and execute :

sudo a2enmod rewrite
sudo a2enmod actions

Don't forget to configure your Virtual host and change the directory :

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted

Restart your Apache2 web server :

sudo systemctl restart apache2


Assuling your php-fpm is running on port 9001, Here is a virtual host config example :

server {
    listen 80;
    index index.php;
    error_log /path/to/example.error.log;
    access_log /path/to/example.access.log;
    root /path/to/public;

    location / {
        try_files $uri /index.php$is_args$args;

    location ~ \.php {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param SCRIPT_NAME $fastcgi_script_name;
        fastcgi_index index.php;

Don't forget to change :

You can now restart NginX :

sudo systemctl restart nginx


theweb.config and index.php must be in the /public folder. The web.config must contain :

<?xml version="1.0" encoding="UTF-8"?>
                <rule name="slim" patternSyntax="Wildcard">
                    <match url="*" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    <action type="Rewrite" url="index.php" />

Finish !

Go to http://YOUR_URL/ to finish the SuperHive Installation.