servers:bsd:nginx:joomla
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| servers:bsd:nginx:joomla [2025/05/16 22:10] – created Sean Rhone | servers:bsd:nginx:joomla [2026/10/05 01:18] (current) – Sean Rhone | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| * Joomla ((https:// | * Joomla ((https:// | ||
| * [[Information: | * [[Information: | ||
| - | * https:// | + | * https://test.realmofespionage.xyz |
| - | * :!: WIP | + | * :?: Previously failed with Cypress and Sass, but they look like [[https:// |
| + | * 2026/03/11: '' | ||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| - | * [[bsd: | + | * [[bsd: |
| + | * [[servers: | ||
| + | * [[servers: | ||
| * [[servers: | * [[servers: | ||
| - | * [[servers: | ||
| - | * [[servers: | ||
| ====== Dependencies ====== | ====== Dependencies ====== | ||
| Line 23: | Line 24: | ||
| su - | su - | ||
| - | pkg install git-lite php84-mysqli php84-intl php84-mbstring | + | pkg install git-lite php84-mysqli php84-composer node23 npm-node23 |
| - | + | ||
| - | sudo dnf install composer nodejs php-ldap php-mysqlnd php-mbstring php-gd php-sodium | + | |
| ====== Download Source ====== | ====== Download Source ====== | ||
| Line 42: | Line 41: | ||
| ===== Composer ===== | ===== Composer ===== | ||
| - | | + | su - |
| - | cd '/var/ | + | cd '/usr/local/ |
| ===== Node.js ===== | ===== Node.js ===== | ||
| - | | + | su - |
| - | cd '/var/ | + | cd '/usr/local/ |
| ====== Databases ====== | ====== Databases ====== | ||
| Line 70: | Line 69: | ||
| ===== PHP-FPM Socket ===== | ===== PHP-FPM Socket ===== | ||
| - | | + | |
| + | |||
| + | ee '/usr/local/ | ||
| < | < | ||
| Line 76: | Line 77: | ||
| ; User/Group | ; User/Group | ||
| - | user = nginx | + | user = www |
| - | group = nginx | + | group = www |
| ; Socket | ; Socket | ||
| - | listen = / | + | listen = 127.0.0.1:9001 |
| - | listen.acl_users = nginx | + | |
| listen.allowed_clients = 127.0.0.1 | listen.allowed_clients = 127.0.0.1 | ||
| Line 88: | Line 88: | ||
| pm.max_children = 4 | pm.max_children = 4 | ||
| pm.process_idle_timeout = 30 | pm.process_idle_timeout = 30 | ||
| - | |||
| - | ; Fedora php.ini Defaults | ||
| - | php_value[session.save_handler] = " | ||
| - | php_value[session.save_path] = "/ | ||
| ; General | ; General | ||
| php_value[date.timezone] = " | php_value[date.timezone] = " | ||
| - | php_value[max_execution_time] = " | ||
| - | php_value[memory_limit] = " | ||
| - | php_value[post_max_size] = " | ||
| - | php_value[upload_max_filesize] = " | ||
| - | php_value[post_max_size] = " | ||
| - | php_value[max_file_uploads] = " | ||
| - | php_value[upload_tmp_dir] = "/ | ||
| ; End</ | ; End</ | ||
| Line 107: | Line 96: | ||
| ===== FastCGI ===== | ===== FastCGI ===== | ||
| - | | + | |
| + | |||
| + | ee '/usr/local/ | ||
| < | < | ||
| Line 118: | Line 109: | ||
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
| fastcgi_param PATH_INFO $fastcgi_path_info; | fastcgi_param PATH_INFO $fastcgi_path_info; | ||
| - | fastcgi_pass | + | |
| - | }</ | + | |
| + | } | ||
| + | |||
| + | # End</ | ||
| ===== Server Block ===== | ===== Server Block ===== | ||
| - | | + | |
| - | * [[https:// | + | |
| - | | + | |
| < | < | ||
| server { | server { | ||
| - | listen | + | listen 443 ssl; |
| - | http2 'on'; | + | # http2 on; |
| server_name ' | server_name ' | ||
| - | root '/var/ | + | root '/usr/local/ |
| index ' | index ' | ||
| - | include '/ | + | include '/usr/local/ |
| - | include '/ | + | include '/usr/local/ |
| client_max_body_size ' | client_max_body_size ' | ||
| Line 173: | Line 166: | ||
| * https:// | * https:// | ||
| * :!: If Joomla gives a 500 error, it's likely the '' | * :!: If Joomla gives a 500 error, it's likely the '' | ||
| - | |||
| - | ====== Settings ====== | ||
| - | |||
| - | ===== Purity III Template ===== | ||
| - | |||
| - | * [[https:// | ||
| - | |||
| - | ==== Install ==== | ||
| - | |||
| - | * [[https:// | ||
| - | * Download **Purity III Template** and **T3 System Plugin** (:!: not 20 MB+ quickstarts; | ||
| - | |||
| - | ==== System Dashboard ==== | ||
| - | |||
| - | * Templates -> Site Template Styles | ||
| - | * Set '' | ||
| - | |||
| - | ==== Theme Settings ==== | ||
| - | |||
| - | * General -> Show T3 Logo: Off | ||
| - | |||
| - | * Theme -> Logo Type: Text | ||
| - | * Theme -> Site Name: '' | ||
| - | |||
| - | * Navigation -> Megamenu Configuration -> Animation: Fading | ||
| - | * Navigation -> Megamenu Configuration -> Duration: '' | ||
| - | |||
| - | * Add-ons -> Off-canvas Sidebar -> Enable: Off | ||
| - | |||
| - | * Assignment -> Toggle Selection | ||
| - | |||
| - | ==== Footer ==== | ||
| - | |||
| - | === Copyright === | ||
| - | |||
| - | * Last tested: 2024/02/01 on Joomla 5.1.0-dev, T3 Framework 3.2.0, and Purity III 2.1.0 | ||
| - | |||
| - | == Logo == | ||
| - | |||
| - | **** | ||
| - | |||
| - | wget -O '/ | ||
| - | |||
| - | == Text == | ||
| - | |||
| - | * Place text within the ''< | ||
| - | * Remove '' | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | < | ||
| - | < | ||
| - | <img src=" | ||
| - | </ | ||
| - | |||
| - | ==== Custom CSS ==== | ||
| - | |||
| - | * :!: This shrinks the footer height, and places it back at the bottom of the screen instead of floating half-way up the page when little content exists ([[https:// | ||
| - | * Also replaces ThemeMagic for Brand Primary Color, Footer Background, and Footer Text Color | ||
| - | |||
| - | * Last tested: 2024/02/01 on Joomla 5.1.0-dev, T3 Framework 3.2.0, and Purity III 2.1.0 | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | < | ||
| - | html, | ||
| - | |||
| - | body { | ||
| - | height: 100%; | ||
| - | } | ||
| - | |||
| - | a { | ||
| - | color: #3D8BFF; | ||
| - | } | ||
| - | |||
| - | a:hover { | ||
| - | color: #196BE4; | ||
| - | } | ||
| - | |||
| - | .t3-mainnav { | ||
| - | background-color: | ||
| - | } | ||
| - | |||
| - | .logo a { | ||
| - | background: none; | ||
| - | } | ||
| - | |||
| - | .logo a:hover { | ||
| - | background: #196BE4; | ||
| - | } | ||
| - | |||
| - | .t3-wrapper { | ||
| - | position: relative; | ||
| - | min-height: 100%; | ||
| - | } | ||
| - | |||
| - | .t3-footer { | ||
| - | position: absolute; | ||
| - | bottom: 0; | ||
| - | left: 0; | ||
| - | right: 0; | ||
| - | background-color: | ||
| - | color: #FFFFFF; | ||
| - | } | ||
| - | |||
| - | .t3-copyright { | ||
| - | padding-top: | ||
| - | padding-bottom: | ||
| - | }</ | ||
| - | |||
| - | ===== Articles ===== | ||
| - | |||
| - | ==== Home ==== | ||
| - | |||
| - | * Toggle Editor for raw-HTML paste | ||
| - | |||
| - | < | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <!-- End --></ | ||
| - | |||
| - | === Temp === | ||
| - | |||
| - | **** | ||
| - | |||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <!-- End --></ | ||
| - | |||
| - | ===== Offline Message ===== | ||
| - | |||
| - | < | ||
| - | This site is being built behind-the-scenes, | ||
| - | <br /> | ||
| - | In the meantime, check out my wiki: <a href=" | ||
| - | |||
| - | ===== Menus ===== | ||
| - | |||
| - | * Main menu headers are: System Links -> URL -> ''#'' | ||
| - | * Icon sizes are 24x24 | ||
| - | * Menu entries should be named normally before saving for a proper '' | ||
| - | |||
| - | ===== Global Configuration ===== | ||
| - | |||
| - | ==== Site Meta Description ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | < | ||
| - | Realm of Espionage is my creative space, and the umbrella name I provide my services under. RoE is self-hosted, | ||
| - | |||
| - | ==== Content Rights ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | Creative Commons Attribution-ShareAlike 4.0 International | ||
| - | |||
| - | ==== Articles ==== | ||
| - | |||
| - | * System -> Global Configuration -> Articles | ||
| - | |||
| - | * Show Title: Hide | ||
| - | * Show Category: Hide | ||
| - | * Show Author: Hide | ||
| - | * Show Publish Date: Hide | ||
| - | * Show Navigation: Hide | ||
| - | * Show Hits: Hide | ||
| - | |||
| - | ==== Menu ==== | ||
| - | |||
| - | * Menus -> Main Menu -> Home -> Link Type -> Display in Menu: No | ||
| - | * Menus -> Main Menu -> Home -> Page Display -> Show Page Heading: Hide | ||
| - | |||
| - | ====== Services ====== | ||
| - | |||
| - | ===== Updater ===== | ||
| - | |||
| - | ==== Service ==== | ||
| - | |||
| - | * 2023/09/12: TODO: SELinux prevents various actions with '' | ||
| - | * '' | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | < | ||
| - | [Service] | ||
| - | User=nginx | ||
| - | Group=nginx | ||
| - | Type=oneshot | ||
| - | WorkingDirectory=/ | ||
| - | Environment=" | ||
| - | ExecStart='/ | ||
| - | ExecStart='/ | ||
| - | # | ||
| - | # | ||
| - | ExecStartPost='/ | ||
| - | |||
| - | ==== Timer ==== | ||
| - | |||
| - | * Every day at '' | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | < | ||
| - | [Unit] | ||
| - | Description=Joomla Git Updater | ||
| - | After=network-online.target | ||
| - | Wants=network-online.target | ||
| - | |||
| - | [Timer] | ||
| - | OnCalendar=*-*-* 02:00:00 | ||
| - | Persistent=true | ||
| - | |||
| - | [Install] | ||
| - | WantedBy=timers.target</ | ||
| - | |||
| - | ===== Maintenance ===== | ||
| - | |||
| - | ==== Service ==== | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | < | ||
| - | [Service] | ||
| - | User=nginx | ||
| - | Group=nginx | ||
| - | Type=oneshot | ||
| - | ExecStart='/ | ||
| - | ExecStart='/ | ||
| - | ExecStartPost='/ | ||
| - | |||
| - | ==== Timer ==== | ||
| - | |||
| - | * '' | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | < | ||
| - | [Unit] | ||
| - | Description=Joomla Maintenance | ||
| - | After=network-online.target | ||
| - | Wants=network-online.target | ||
| - | |||
| - | [Timer] | ||
| - | OnCalendar=*-*-01 02:20:00 | ||
| - | Persistent=true | ||
| - | |||
| - | [Install] | ||
| - | WantedBy=timers.target</ | ||
| - | |||
| - | ===== Backup ===== | ||
| - | |||
| - | ==== Files ==== | ||
| - | |||
| - | === Service === | ||
| - | |||
| - | * The extra '' | ||
| - | |||
| - | mkdir -p ~/' | ||
| - | |||
| - | < | ||
| - | [Service] | ||
| - | Type=oneshot | ||
| - | WorkingDirectory=/ | ||
| - | ExecStart='/ | ||
| - | # | ||
| - | ExecStartPost='/ | ||
| - | |||
| - | === Timer === | ||
| - | |||
| - | * '' | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | < | ||
| - | [Unit] | ||
| - | Description=Joomla Files Backup | ||
| - | |||
| - | [Timer] | ||
| - | OnCalendar=*-*-01 02:35:00 | ||
| - | Persistent=true | ||
| - | |||
| - | [Install] | ||
| - | WantedBy=timers.target</ | ||
| - | |||
| - | ==== Database ==== | ||
| - | |||
| - | === Database Auth === | ||
| - | |||
| - | sudo mkdir -p '/ | ||
| - | |||
| - | < | ||
| - | [mariadb-dump] | ||
| - | user=joomla | ||
| - | password=x</ | ||
| - | |||
| - | === Service === | ||
| - | |||
| - | mkdir -p ~/' | ||
| - | |||
| - | < | ||
| - | [Service] | ||
| - | Type=oneshot | ||
| - | WorkingDirectory=/ | ||
| - | ExecStartPre='/ | ||
| - | ExecStart='/ | ||
| - | ExecStart='/ | ||
| - | ExecStartPost='/ | ||
| - | |||
| - | === Timer === | ||
| - | |||
| - | * Every day at '' | ||
| - | |||
| - | sudo -e '/ | ||
| - | |||
| - | < | ||
| - | [Unit] | ||
| - | Description=Joomla Database Backup | ||
| - | After=mariadb.service | ||
| - | |||
| - | [Timer] | ||
| - | OnCalendar=*-*-* 02:45:00 | ||
| - | Persistent=true | ||
| - | |||
| - | [Install] | ||
| - | WantedBy=timers.target</ | ||
| - | |||
| - | ====== Backup ====== | ||
| - | |||
| - | * Create backup archive on server and transfer to client computer | ||
| - | |||
| - | ===== Server ===== | ||
| - | |||
| - | ==== Stop Services ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo systemctl stop nginx php-fpm | ||
| - | |||
| - | ==== Backup Folder ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | cd '/ | ||
| - | |||
| - | ==== Backup Database ==== | ||
| - | |||
| - | * TODO: Looks redundant to use the '' | ||
| - | |||
| - | sudo mariadb-dump --defaults-extra-file='/ | ||
| - | |||
| - | ==== Start Services ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo systemctl start nginx php-fpm | ||
| - | |||
| - | ===== Client ===== | ||
| - | |||
| - | ==== Transfer Files To Client ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | scp espionage724@192.168.1.152: | ||
| - | |||
| - | ====== Restore ====== | ||
| - | |||
| - | ===== Client ===== | ||
| - | |||
| - | ==== Uncompress Database ==== | ||
| - | |||
| - | * This is only needed if restoring an **automated** database backup ((manual doesn' | ||
| - | |||
| - | gunzip ~/' | ||
| - | |||
| - | ==== Transfer Files To Server ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | scp ~/' | ||
| - | |||
| - | ==== Remove Files ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | rm -f ~/' | ||
| - | |||
| - | ===== Server ===== | ||
| - | |||
| - | ==== Stop Services ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo systemctl stop nginx php-fpm | ||
| - | |||
| - | ==== Restore Joomla Folder ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | cd '/ | ||
| - | |||
| - | ==== Database ==== | ||
| - | |||
| - | * '' | ||
| - | |||
| - | mariadb --user=' | ||
| - | |||
| - | mariadb --user=' | ||
| - | |||
| - | mariadb --user=' | ||
| - | | ||
| - | ==== Reapply Permissions ==== | ||
| - | |||
| - | mariadb -u ' | ||
| - | |||
| - | GRANT ALL PRIVILEGES ON joomla_db.* to ' | ||
| - | |||
| - | FLUSH PRIVILEGES; | ||
| - | |||
| - | EXIT | ||
| - | |||
| - | ==== Start Services ==== | ||
| - | |||
| - | **** | ||
| - | |||
| - | sudo systemctl start nginx php-fpm | ||
| - | |||
| - | ==== Remove Backups ==== | ||
| - | |||
| - | * Verify that Joomla works before running | ||
| - | |||
| - | rm ~/' | ||
/usr/local/www/wiki/data/attic/servers/bsd/nginx/joomla.1747447807.txt.gz · Last modified: by Sean Rhone