Baikal configuration

From wikinotes
Revision as of 01:42, 17 July 2020 by Will (talk | contribs) (Created page with "= php-fpm = <blockquote> <source lang="dosini"> # /usr/local/etc/php-fpm.conf listen = /var/run/php-fpm.sock listen.owner = www listen.group = www liseten.mode = 0660 </source...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

php-fpm

# /usr/local/etc/php-fpm.conf
listen = /var/run/php-fpm.sock
listen.owner = www
listen.group = www
liseten.mode = 0660
sudo service php-fpm start

nginx

Baikal requires a webserver to serve it's content.

Generate a Self-Signed Certificate: Reference openssl.

mkdir -p /usr/local/etc/nginx/keys

openssl req -new -x509 -nodes -newkey rsa:4096  \
   -keyout /usr/local/etc/nginx/keys/server.key \
   -out    /usr/local/etc/nginx/keys/server.crt
# /usr/local/etc/nginx/nginx.conf
user www www;
worker_processes 1;


events {
  worker_connections  1024;
}


http {
  include       mime.types;
  default_type  application/octet-stream;


  server {
    listen 80;
    #server_name  localhost;
    server_name  morpheus;

    root /usr/local/www/baikal/html;
    index index.php;

    charset utf-8;


    location ~ /(\.ht|Core|Specific) {
      deny all;
      return 404;
    }

    location ~ ^(.+\.php)(.*)$ {
      try_files $fastcgi_script_name =404;
      fastcgi_split_path_info  ^(.+\.php)(.*)$;
      fastcgi_pass   unix:/var/run/php-fpm.sock;
      fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
      fastcgi_param  PATH_INFO        $fastcgi_path_info;
      include        /usr/local/etc/nginx/fastcgi_params;
    }
  }
}
# /etc/rc.conf
nginx_enable="YES"
sudo systemctl enable nginx

Baikal

# Correct permissions
touch /usr/local/www/baikal/Specific/ENABLE_INSTALL
sudo chown -R www:www /usr/local/www/baikal
  • You can now complete installation (or upgrade) from http://{domain} or http://{domain}/admin/index.php.
  • If pompted, use digest instead of basic for your authorization scheme
  • You man now create a User, and their contacts/calendars now from the webUI.