Skip to content

Manual Installation

Xtrendence edited this page Jul 8, 2021 · 1 revision

NGINX

Credit to @tandy-1000 for this guide.

Download the latest release of the source:

wget https://www.github.com/Xtrendence/Cryptofolio/releases/latest/download/API-And-Website.zip

Create the folders in your web dir:

mkdir /var/www/cryptofolio mkdir /var/www/cryptofolio/html

Move the files and give the NGINX user permissions:

mv Cryptofolio/api /var/www/cryptofolio/html mv Cryptofolio/website /var/www/cryptofolio/html chown -R www-data:www-data /var/www/cryptofolio

Create NGINX config

/etc/nginx/conf.d/cryptofolio.conf/

server {
        listen 8006;
        root /var/www/cryptofolio/html/;

        location / {
                root /var/www/cryptofolio/html/website/;
                try_files $uri $uri/ /index.php?q=$uri&$args;
        }

        location /api {
                alias /var/www/cryptofolio/html/api/;
        }
        location ~ \.php(?:$|/) {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php7.4-fpm.sock;
        }
}

Reload NGINX:

systemctl reload nginx

Clone this wiki locally