servers:nginx:joomla
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
servers:nginx:joomla [2023/09/01 17:03] – Sean Rhone | servers:nginx:joomla [2024/02/01 08:15] (current) – Sean Rhone | ||
---|---|---|---|
Line 2: | Line 2: | ||
* Joomla ((https:// | * Joomla ((https:// | ||
- | * :!: 4.3-dev ((https:// | + | * :!: 5.1-dev ((https:// |
* [[Information: | * [[Information: | ||
* https:// | * https:// | ||
Line 8: | Line 8: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | * [[distros:opensuse_tumbleweed_server|openSUSE Tumbleweed]] | + | * [[distros:fedora_server|Fedora Server]] |
* [[servers: | * [[servers: | ||
* [[servers: | * [[servers: | ||
Line 19: | Line 19: | ||
====== Dependencies ====== | ====== Dependencies ====== | ||
- | * https:// | + | * https:// |
+ | * https:// | ||
+ | * https:// | ||
* '' | * '' | ||
+ | |||
+ | sudo dnf install composer nodejs php-ldap php-mysqlnd | ||
+ | |||
+ | ===== Old openSUSE ===== | ||
+ | |||
+ | **** | ||
sudo zypper install php8-sodium nodejs-common php-composer2 php8-mysql php8-fileinfo php8-ldap | sudo zypper install php8-sodium nodejs-common php-composer2 php8-mysql php8-fileinfo php8-ldap | ||
Line 28: | Line 36: | ||
**** | **** | ||
- | sudo git clone --branch '4.3-dev' --depth ' | + | sudo git clone --branch '5.1-dev' --depth ' |
====== Environment ====== | ====== Environment ====== | ||
- | * https:// | + | * https:// |
===== Composer ===== | ===== Composer ===== | ||
Line 38: | Line 46: | ||
sudo su ' | sudo su ' | ||
- | cd '/srv/ | + | cd '/var/ |
===== Node.js ===== | ===== Node.js ===== | ||
Line 44: | Line 52: | ||
sudo su ' | sudo su ' | ||
- | cd '/srv/ | + | cd '/var/ |
====== Database ====== | ====== Database ====== | ||
- | sudo mysql | + | sudo mariadb |
CREATE DATABASE joomla_db; | CREATE DATABASE joomla_db; | ||
Line 62: | Line 70: | ||
===== PHP-FPM Socket ===== | ===== PHP-FPM Socket ===== | ||
- | sudo -e '/etc/php8/fpm/ | + | sudo -e '/ |
< | < | ||
Line 72: | Line 80: | ||
; Socket | ; Socket | ||
- | listen = 127.0.0.1:9001 | + | listen = / |
listen.acl_users = nginx | listen.acl_users = nginx | ||
listen.allowed_clients = 127.0.0.1 | listen.allowed_clients = 127.0.0.1 | ||
Line 81: | Line 89: | ||
pm.process_idle_timeout = 30 | pm.process_idle_timeout = 30 | ||
- | ; openSUSE TW php.ini Defaults | + | ; Fedora |
- | php_value[session.save_path] = /var/lib/php8/sessions | + | php_value[session.save_handler] = " |
+ | php_value[session.save_path] = "/var/lib/php/session" | ||
; General | ; General | ||
Line 104: | Line 113: | ||
location ~ \.(php|phar)(/ | location ~ \.(php|phar)(/ | ||
fastcgi_split_path_info ^(.+\.(?: | fastcgi_split_path_info ^(.+\.(?: | ||
- | |||
fastcgi_intercept_errors on; | fastcgi_intercept_errors on; | ||
- | fastcgi_index | + | fastcgi_index index.php; |
- | include | + | include fastcgi_params; |
- | fastcgi_param | + | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
- | fastcgi_param | + | fastcgi_param PATH_INFO $fastcgi_path_info; |
- | fastcgi_pass | + | fastcgi_pass |
}</ | }</ | ||
===== Server Block ===== | ===== Server Block ===== | ||
+ | * 2023/09/12: CSPs disabled; TODO: Re-figure out CSPs | ||
* [[https:// | * [[https:// | ||
Line 123: | Line 132: | ||
listen ' | listen ' | ||
server_name ' | server_name ' | ||
- | root '/srv/ | + | root '/var/ |
index ' | index ' | ||
Line 131: | Line 140: | ||
client_max_body_size ' | client_max_body_size ' | ||
- | | + | # |
# access_log | # access_log | ||
Line 198: | Line 207: | ||
=== Copyright === | === Copyright === | ||
- | * Last tested: | + | * Last tested: |
== Logo == | == Logo == | ||
Line 204: | Line 213: | ||
**** | **** | ||
- | wget -O '/ | + | wget -O '/ |
== Text == | == Text == | ||
Line 211: | Line 220: | ||
* Remove '' | * Remove '' | ||
- | sudo -e '/srv/ | + | sudo -e '/var/ |
< | < | ||
Line 223: | Line 232: | ||
* Also replaces ThemeMagic for Brand Primary Color, Footer Background, and Footer Text Color | * Also replaces ThemeMagic for Brand Primary Color, Footer Background, and Footer Text Color | ||
- | * Last tested: | + | * Last tested: |
- | sudo -e '/srv/ | + | sudo -e '/var/ |
< | < | ||
Line 287: | Line 296: | ||
- | This domain serves as a landing page and provides links to my most-used profiles and projects. To view them, use the navigation bar (desktop) or the hamburger icon (mobile) at the top of the screen. | + | This domain serves as a landing page and provides links to my most-used profiles and projects. To view them, use the navigation bar (desktop) or the ≡ hamburger icon (mobile) at the top of the screen. |
</ | </ | ||
Line 295: | Line 304: | ||
* Main menu headers are: System Links -> URL -> ''#'' | * Main menu headers are: System Links -> URL -> ''#'' | ||
* Icon sizes are 24x24 | * Icon sizes are 24x24 | ||
- | * Menu entries should be named normally before saving, and then add a space on the title afterwards to make it look better with the icon | + | * Menu entries should be named normally before saving |
===== Global Configuration ===== | ===== Global Configuration ===== | ||
Line 304: | Line 313: | ||
Realm of Espionage is a personal project composed of various self-hosted services. All services are hosted in-house under secure conditions, and notes are provided for all services under the CC-BY-SA 4.0 license. | Realm of Espionage is a personal project composed of various self-hosted services. All services are hosted in-house under secure conditions, and notes are provided for all services under the CC-BY-SA 4.0 license. | ||
- | |||
- | ==== Site Meta Keywords ==== | ||
- | |||
- | **** | ||
- | |||
- | privacy, | ||
==== Content Rights ==== | ==== Content Rights ==== | ||
Line 340: | Line 343: | ||
==== Service ==== | ==== Service ==== | ||
+ | |||
+ | * 2023/09/12: TODO: SELinux prevents various actions with '' | ||
sudo -e '/ | sudo -e '/ | ||
Line 348: | Line 353: | ||
Group=nginx | Group=nginx | ||
Type=oneshot | Type=oneshot | ||
- | WorkingDirectory=/ | + | WorkingDirectory=/ |
Environment=" | Environment=" | ||
- | ExecStart='/ | + | ExecStart='/ |
ExecStart='/ | ExecStart='/ | ||
- | ExecStart='/ | + | #ExecStart='/ |
- | ExecStart='/ | + | #ExecStart='/ |
ExecStartPost='/ | ExecStartPost='/ | ||
==== Timer ==== | ==== Timer ==== | ||
- | * Every day at '' | + | * Every day at '' |
sudo -e '/ | sudo -e '/ | ||
Line 369: | Line 374: | ||
[Timer] | [Timer] | ||
- | OnCalendar=*-*-* | + | OnCalendar=*-*-* |
Persistent=true | Persistent=true | ||
Line 386: | Line 391: | ||
Group=nginx | Group=nginx | ||
Type=oneshot | Type=oneshot | ||
- | ExecStart='/ | + | ExecStart='/ |
- | ExecStart='/ | + | ExecStart='/ |
ExecStartPost='/ | ExecStartPost='/ | ||
==== Timer ==== | ==== Timer ==== | ||
- | * '' | + | * '' |
sudo -e '/ | sudo -e '/ | ||
Line 403: | Line 408: | ||
[Timer] | [Timer] | ||
- | OnCalendar=*-*-01 | + | OnCalendar=*-*-01 |
Persistent=true | Persistent=true | ||
Line 420: | Line 425: | ||
[Service] | [Service] | ||
Type=oneshot | Type=oneshot | ||
- | WorkingDirectory=/ | + | WorkingDirectory=/ |
ExecStart='/ | ExecStart='/ | ||
ExecStartPost='/ | ExecStartPost='/ | ||
Line 426: | Line 431: | ||
=== Timer === | === Timer === | ||
- | * '' | + | * '' |
sudo -e '/ | sudo -e '/ | ||
Line 435: | Line 440: | ||
[Timer] | [Timer] | ||
- | OnCalendar=*-*-01 | + | OnCalendar=*-*-01 |
Persistent=true | Persistent=true | ||
Line 448: | Line 453: | ||
< | < | ||
- | [mysqldump] | + | [mariadb-dump] |
user=joomla | user=joomla | ||
password=x</ | password=x</ | ||
Line 460: | Line 465: | ||
Type=oneshot | Type=oneshot | ||
WorkingDirectory=/ | WorkingDirectory=/ | ||
- | ExecStartPre='/ | + | ExecStartPre='/ |
ExecStart='/ | ExecStart='/ | ||
ExecStart='/ | ExecStart='/ | ||
Line 467: | Line 472: | ||
=== Timer === | === Timer === | ||
- | * Every day at '' | + | * Every day at '' |
sudo -e '/ | sudo -e '/ | ||
Line 477: | Line 482: | ||
[Timer] | [Timer] | ||
- | OnCalendar=*-*-* | + | OnCalendar=*-*-* |
Persistent=true | Persistent=true | ||
Line 499: | Line 504: | ||
**** | **** | ||
- | cd '/srv/www' && sudo tar -cvzf ~/' | + | cd '/var/www' && sudo tar -cvzf ~/' |
==== Backup Database ==== | ==== Backup Database ==== | ||
Line 505: | Line 510: | ||
**** | **** | ||
- | sudo mysqldump | + | sudo mariadb-dump |
==== Start Services ==== | ==== Start Services ==== | ||
Line 555: | Line 560: | ||
**** | **** | ||
- | cd '/srv/www' && sudo tar -xvzf ~/' | + | cd '/var/www' && sudo tar -xvzf ~/' |
==== Drop Previous Database ==== | ==== Drop Previous Database ==== | ||
- | sudo mysql | + | sudo mariadb |
DROP DATABASE joomla_db; | DROP DATABASE joomla_db; | ||
Line 569: | Line 574: | ||
==== Re-create Databases ==== | ==== Re-create Databases ==== | ||
- | sudo mysql | + | sudo mariadb |
CREATE DATABASE joomla_db; | CREATE DATABASE joomla_db; | ||
Line 579: | Line 584: | ||
**** | **** | ||
- | sudo mysql ' | + | sudo mariadb |
==== Reapply Permissions ==== | ==== Reapply Permissions ==== | ||
- | sudo mysql | + | sudo mariadb |
GRANT ALL PRIVILEGES ON joomla_db.* to ' | GRANT ALL PRIVILEGES ON joomla_db.* to ' |
/var/www/wiki/data/attic/servers/nginx/joomla.1693602207.txt.gz · Last modified: 2023/09/01 17:03 by Sean Rhone