Browse Source

Update permissions. First working version! Nginx config added.

master
Josh Mudge 6 years ago
parent
commit
ff44853941
  1. 7
      install.sh
  2. 51
      nginx-site-available.conf

7
install.sh

@ -1,4 +1,4 @@
# Wallabag Install Script v1.0 by Joshua Mudge
# Wallabag Install Script v1.1a by Joshua Mudge
# Ad Mejorem Dei Glorium
sudo apt-get install nginx php php-curl php-dom php-gd php-xml php-bcmath php-mbstring php-fpm php7.0-sqlite3
@ -8,9 +8,14 @@ sudo chown -R $USER:$USER /var/www/wallabag
cd wallabag
curl -s https://getcomposer.org/installer | php
make install
sudo chown www-data:www-data /var/www/wallabag -R
# You also need to install a database server, which it didn't tell you. Still need to automate parameters.yml
# %kernel.cache_dir%/data.db
# https://doc.wallabag.org/en/admin/parameters.html
# Use pdo_sqlite for driver and %kernel.cache_dir%/data.db for database path.
# You can't use subdomains for the install.
# Make sure to specify https:// in the URL.
# Have script auto-fetch Nginx config and symlink.

51
nginx-site-available.conf

@ -0,0 +1,51 @@
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
#
# This file will automatically load configuration files provided by other
# applications, such as Drupal or Wordpress. These applications will be made
# available underneath a path with that package name, such as /drupal8.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
# Default server configuration
#
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
server_name wallabag.example.com;
root /var/www/wallabag/web;
location / {
# try to serve file directly, fallback to app.php
try_files $uri /app.php$is_args$args;
}
location ~ ^/app\.php(/|$) {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
internal;
}
error_log /var/log/nginx/wallabag_error.log;
access_log /var/log/nginx/wallabag_access.log;
}
Loading…
Cancel
Save