You're viewing old version number 3. - Current version

Installing Grebe - Jul 30, 2014

Documenting the steps, which will lead to additional programming changes to make it simpler.

  • With the hosting provider, add DNS information, if necessary.
  • Create a CNAME record if installing the code under a subdomain.
    • grebe @
  • Log onto remote server.
  • Change to user root.
  • Change directory to web server config area. This example uses the Nginx web server.
    • cd /etc/nginx
  • Need to create a config file to support app. This is an example of using Grebe under a subdomain.
    • cd sites-available
    • vim grebe.yourdomain.com
    • add the following and save the file:

########
# GREBE
########

server {
        listen   80;

        server_name grebe.soupmode.com;

        location ~ ^/(css/|javascript/|images/) {
          root /home/grebe/Grebe/root;
          access_log off;
          expires max;
        }

        location /api/v1 {
             root /home/grebe/Grebe/root/api/v1;
             index grebeapi.pl;
             rewrite  ^/(.*)$ /grebeapi.pl?query=$1 break;
             fastcgi_pass  127.0.0.1:8999;
             fastcgi_index grebeapi.pl;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             include fastcgi_params;
        }

        location / {
             root /home/grebe/Grebe/root;
             index grebe.pl;
             rewrite  ^/(.*)$ /grebe.pl?query=$1 break;
             fastcgi_pass  127.0.0.1:8999;
             fastcgi_index grebe.pl;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             include fastcgi_params;
        }
}
  • Create a home directory.
    • mkdir /home/grebe

From JR's : articles
160 words - 1606 chars
created on
updated on - #
source - versions



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Jan 12, 2025 - 10:27 a.m. EST