====== Information ====== * Drupal ((https://www.drupal.org)) * [[Information:Realm of Espionage]] * https://realmofespionage.xyz * Unfinished ===== Prerequisites ===== * [[distros:ubuntu_server | Ubuntu Server]] * [[servers:mariadb | MariaDB]] * [[servers:nginx_php_php-fpm | nginx + PHP + PHP-FPM]] * [[servers:nginx:lets_encrypt | Let's Encrypt]] ===== Notes ===== * Loads pages slower than expected for some reason, may be a Git thing? ====== Download Source ====== **** sudo git clone -b '8.3.x' 'git://git.drupal.org/project/drupal.git' '/var/www/main' && sudo chown -R 'www-data':'www-data' '/var/www/main' && sudo -u 'www-data' composer install -d '/var/www/main' --no-dev && sync ====== Database ====== sudo mysql CREATE DATABASE drupal; GRANT ALL PRIVILEGES ON drupal.* to 'drupal'@'localhost' IDENTIFIED BY 'x'; FLUSH PRIVILEGES; ====== nginx + PHP-FPM Configuration ====== ===== PHP-FPM Socket ===== sudo -e '/etc/php/7.0/fpm/pool.d/main.conf' && sudo systemctl restart 'php7.0-fpm' [main] user = www-data group = www-data listen = /run/php/main.sock listen.owner = www-data listen.group = www-data listen.allowed_clients = 127.0.0.1 pm = dynamic pm.max_children = 5 pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 3 php_value[max_execution_time] = 300 php_value[request_terminate_timeout] = 300 ===== FastCGI ===== sudo -e '/etc/nginx/snippets/main.conf' location ~ '\.php$|^/update.php' { fastcgi_split_path_info ^(.+?\.php)(|/.*)$; try_files $fastcgi_script_name =404; set $path_info $fastcgi_path_info; fastcgi_param PATH_INFO $path_info; include fastcgi.conf; fastcgi_intercept_errors on; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param HTTPS on; fastcgi_pass unix:/run/php/main.sock; fastcgi_read_timeout 300; } ===== Server Block ===== sudo -e '/etc/nginx/sites-available/main.conf' server { listen '443' 'ssl' 'http2'; server_name 'realmofespionage.xyz'; root '/var/www/main'; index 'index.php'; include '/etc/nginx/snippets/main.conf'; include '/etc/nginx/snippets/restrictions.conf'; #access_log /var/log/nginx/main-access.log; #error_log /var/log/nginx/main-error.log; location / { try_files $uri /index.php?$query_string; } location @rewrite { rewrite ^/(.*)$ /index.php?q=$1; } location ~ /vendor/.*\.php$ { deny all; return 404; } location ~ ^/sites/.*/files/styles/ { try_files $uri @rewrite; } location ~ ^/system/files/ { try_files $uri /index.php?$query_string; } } ==== Enable Server Block ===== **** sudo rm -f '/etc/nginx/sites-enabled/main.conf' && sudo ln -s '/etc/nginx/sites-available/main.conf' '/etc/nginx/sites-enabled' && sudo systemctl reload 'nginx' ====== Initial Setup ====== * https://realmofespionage.xyz/core/install.php ====== Plugins ====== ===== T3 Framework ===== * https://github.com/t3framework/t3/releases * 2.6.1 ===== Purity III Template ===== * https://www.joomlart.com/joomla/templates/purity-iii ((only the template is needed)) * Requires [[servers:nginx:joomla#t3_framework | T3 Framework]] * 1.1.7 ====== Settings ====== ===== Global Configuration ===== ==== Site Meta Description ==== **** Realm of Espionage is an internet community with the main focus points of gaming, transparency, and the promotion of open-source technologies and security. ==== Site Meta Keywords ==== **** privacy,linux,floss,foss,free,open,open-source,gnu,secure,hardened,ubuntu,espionage724,gw2,wow,gaming,realm of espionage,roe,free and open-source software,transparent,transparency,letsencrypt,freedom,decentralized,self-host,self-hosted,in-house,decentralization ==== Content Rights ==== **** Creative Commons Attribution-ShareAlike 4.0 International ===== Articles ===== * TODO (there's a lot of things to make hidden) ===== Purity III ===== ==== Edit Style ==== * Show T3 Logo = Off ((if shown, it causes a 3rd-party asset to be loaded; why they didn't just include it in the theme files is beyond me)) * Logo Type = Text * Megamenu Animation = Fading (300ms) * Off-canvas Sidebar = Off ((it doesn't play nicely with the [[servers:nginx:joomla#position_fix | footer position fix]])) ==== Theme Magic ==== * Brand Primary Color = ''#3D8BFF'' * Footer Background = ''#484848'' * Footer Text Color = ''#FFFFFF'' ====== Footer ====== ==== Copyright ==== * Requires [[servers:nginx:joomla#purity_iii | Purity III Template]] === Logo === **** sudo -u 'www-data' wget 'https://licensebuttons.net/l/by-sa/4.0/80x15.png' -O '/var/www/main/images/cc-by-sa-40.png' === Text === * Place text within the ''