User Tools

Site Tools


servers:linux:nginx:joomla

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
servers:linux:nginx:joomla [2026/11/16 19:00] – [Server Block] Sean Rhoneservers:linux:nginx:joomla [2026/11/18 12:53] (current) – [Server Block] Sean Rhone
Line 75: Line 75:
  
 php_value[log_errors] = "0" php_value[log_errors] = "0"
-php_value[error_reporting] = "~E_ALL"+php_value[error_reporting] = "0"
 php_value[display_errors] = "0" php_value[display_errors] = "0"
 php_value[display_startup_errors] = "0" php_value[display_startup_errors] = "0"
Line 82: Line 82:
 php_value[session.save_path] = "/var/lib/php8/sessions" php_value[session.save_path] = "/var/lib/php8/sessions"
 php_value[date.timezone] = "America/New_York" php_value[date.timezone] = "America/New_York"
- 
 php_value[output_buffering] = "0" php_value[output_buffering] = "0"
  
Line 105: Line 104:
 <code> <code>
 log_errors = "0" log_errors = "0"
-error_reporting = "~E_ALL"+error_reporting = "0"
 display_errors = "0" display_errors = "0"
 display_startup_errors = "0" display_startup_errors = "0"
Line 112: Line 111:
 session.save_path = "/var/lib/php8/sessions" session.save_path = "/var/lib/php8/sessions"
 date.timezone = "America/New_York" date.timezone = "America/New_York"
- 
 output_buffering = "0" output_buffering = "0"
  
Line 143: Line 141:
  fastcgi_param 'HTTPS' 'on';  fastcgi_param 'HTTPS' 'on';
  fastcgi_pass 'unix:/run/php-fpm/main.sock';  fastcgi_pass 'unix:/run/php-fpm/main.sock';
 +}
 +
 +# End</code>
 +
 +===== Deny Directive =====
 +
 +  * https://docs.joomla.org/Delete_Installation_folder
 +
 +  sudo -e '/etc/nginx/default.d/joomla-deny.conf'
 +
 +<code>
 +# Installation Folder
 +location '~' '/installation/' {
 + deny 'all';
 +}
 +
 +location = '/installation/index.php' {
 + deny 'all';
 } }
  
Line 156: Line 172:
 server { server {
  listen '443' 'ssl';  listen '443' 'ssl';
- http2 'on';+ http2 'off';
  server_name 'realmofespionage.xyz';  server_name 'realmofespionage.xyz';
  root '/srv/www/main';  root '/srv/www/main';
Line 163: Line 179:
  include '/etc/nginx/default.d/main.conf';  include '/etc/nginx/default.d/main.conf';
  include '/etc/nginx/default.d/headers.conf';  include '/etc/nginx/default.d/headers.conf';
 +# include '/etc/nginx/default.d/joomla-deny.conf';
  
  client_max_body_size '1M';  client_max_body_size '1M';
Line 168: Line 185:
 # access_log '/var/log/nginx/main-access.log'; # access_log '/var/log/nginx/main-access.log';
 # error_log '/var/log/nginx/main-error.log'; # error_log '/var/log/nginx/main-error.log';
- 
-# location '~' '/installation/' { 
-#  deny 'all'; 
-# } 
- 
-# location = '/installation/index.php' { 
-#  deny 'all'; 
-# } 
  
  location '/api/' {  location '/api/' {
Line 210: Line 219:
 ===== Installer Deny ===== ===== Installer Deny =====
  
-  * Uncomment ''installation'' section+  * Uncomment ''joomla-deny.conf'' include
   * Do after initial setup   * Do after initial setup
  
Line 235: Line 244:
 <!--End--></code> <!--End--></code>
  
-==== System Dashboard ====+===== Color TODO =====
  
-  * Templates -> Site Template Styles+==== Custom ====
  
-==== Theme Settings ====+<code> 
 +Header Background Colour 
 +rgb(61, 139, 255) 
 +3D8BFF
  
-  * ''FBFAF9'' for **Body Background Colour**+Header Text Colour 
 +rgb(254, 254, 254) 
 +FEFEFE
  
-==== Footer ====+Body Background Colour 
 +rgb(228, 228, 228) 
 +E4E4E4
  
-=== Copyright ===+ Body Text Colour 
 + rgb(23, 23, 23)
  
-  * Last tested: 2024/02/01 on Joomla 5.1.0-dev, T3 Framework 3.2.0, and Purity III 2.1.0+Links Colour 
 +rgb(254, 254, 254) 
 +FEFEFE
  
-== Logo ==+Links Hover Colour 
 +rgb(228, 228, 228) 
 +E4E4E4
  
-****+ Button Primary Background Colour 
 + rgb(206, 60, 55)
  
-  wget -O '/tmp/cc-by-sa-40.png' 'https://licensebuttons.net/l/by-sa/4.0/80x15.png' && sudo mv '/tmp/cc-by-sa-40.png' '/srv/www/main/images/cc-by-sa-40.png' && sudo chown 'nginx':'nginx' '/srv/www/main/images/cc-by-sa-40.png' && sudo restorecon -F -I -R '/srv/www/main/images/cc-by-sa-40.png' && sync+ Button Primary Hover Background Colour 
 + rgb(131, 35, 32)
  
-== Text ==+Button Primary Text Colour 
 +rgb(254, 254, 254) 
 +FEFEFE
  
-  * Place text within the ''<section class="t3-copyright">'' section underneath the ''Bootstrap by Twitter'' and ''Font Awesome'' mentions +Button Primary Hover Text Colour 
-  * Remove ''Bootstrap by Twitter'' and ''Font Awesome'' mentions+rgb(228, 228, 228) 
 +E4E4E4
  
-  sudo -e '/srv/www/main/templates/purity_iii/tpls/blocks/footer.php' && sudo chown 'nginx':'nginx' '/srv/www/main/templates/purity_iii/tpls/blocks/footer.php'+Footer Background Colour 
 +rgb(72, 72, 72) 
 +484848 
 + 
 +Footer Text Colour  
 +rgb(254, 254, 254) 
 +FEFEFE</code> 
 + 
 +==== Default ====
  
 <code> <code>
-          <small> +Header Background Colour 
-            <img src="https://realmofespionage.xyz/images/cc-by-sa-40.png" width="80" height="15" /> All content and data available on Realm of Espionage is available under the <a href="https://creativecommons.org/licenses/by-sa/4.0" target="_blank">Creative Commons Attribution-ShareAlike 4.0 International</a> license. +rgb(193, 205, 207) 
-          </small></code>+ 
 +Header Text Colour 
 +rgb(23, 23, 23) 
 + 
 +Body Background Colour 
 +rgb(254, 254, 254) 
 + 
 +Body Text Colour 
 +rgb(23, 23, 23) 
 + 
 +Links Colour 
 +rgb(29, 121, 137) 
 + 
 +Links Hover Colour 
 +rgb(14, 59, 67) 
 + 
 +Button Primary Background Colour 
 +rgb(206, 60, 55) 
 + 
 +Button Primary Hover Background Colour 
 +rgb(131, 35, 32) 
 + 
 +Button Primary Text Colour 
 +rgb(254, 254, 254) 
 + 
 +Button Primary Hover Text Colour 
 +rgb(254, 254, 254) 
 + 
 +Footer Background Colour 
 +rgb(29, 121, 137) 
 + 
 +Footer Text Colour  
 +rgb(254, 254, 254)</code> 
 + 
 +==== System Dashboard ==== 
 + 
 +  * Templates -> Site Template Styles 
 + 
 +==== Theme Settings ==== 
 + 
 +  * ''FBFAF9'' for **Body Background Colour**
  
 ===== Articles ===== ===== Articles =====
Line 280: Line 354:
  
 === Temp === === Temp ===
- 
-**** 
  
 <code> <code>
Line 297: Line 369:
  
 ==== Site Meta Description ==== ==== Site Meta Description ====
- 
-**** 
  
 <code> <code>
Line 304: Line 374:
  
 ==== Content Rights ==== ==== Content Rights ====
- 
-**** 
  
   Creative Commons Attribution-ShareAlike 4.0 International   Creative Commons Attribution-ShareAlike 4.0 International
Line 346: Line 414:
 ExecStart='/usr/bin/git' -C '/srv/www/main' pull origin '7.0-dev' --rebase ExecStart='/usr/bin/git' -C '/srv/www/main' pull origin '7.0-dev' --rebase
  
-ExecStart='/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/main.conf' '/usr/bin/composer' --working-dir='/srv/www/main' --no-cache install --no-interaction --no-dev --ignore-platform-req='ext-ldap' +ExecStart='/usr/bin/php' -c '/etc/php8/cli/main.ini' '/usr/bin/composer' --working-dir='/srv/www/main' --no-cache install --no-interaction --no-dev --ignore-platform-req='ext-ldap' 
-ExecStart='/usr/bin/npm' --prefix '/srv/www/main' ci --logs-max='0'+ExecStart='/usr/bin/node26' '/usr/lib64/node_modules/npm26/bin/npm-cli.js' --prefix '/srv/www/main' 'ci' --logs-max='0'
  
 ExecStartPost='/usr/bin/rm' -f '/srv/www/main/administrator/cache/autoload_psr4.php' ExecStartPost='/usr/bin/rm' -f '/srv/www/main/administrator/cache/autoload_psr4.php'
Line 380: Line 448:
 === Service === === Service ===
  
-  * [[linux:notes:ext4|ext4 NAS]]+  * [[linux:notes:ext2_nas|ext2 NAS]]
  
   mkdir -p ~/'backups' && sudo -e '/etc/systemd/system/main-fb.service' && sudo sed -i 's/CHANGEME/'$USER'/g' '/etc/systemd/system/main-fb.service'   mkdir -p ~/'backups' && sudo -e '/etc/systemd/system/main-fb.service' && sudo sed -i 's/CHANGEME/'$USER'/g' '/etc/systemd/system/main-fb.service'
Line 432: Line 500:
 === Service === === Service ===
  
-  * [[linux:notes:ext4|ext4 NAS]]+  * [[linux:notes:ext2_nas|ext2 NAS]]
  
   mkdir -p ~/'backups' && sudo mkdir -p '/srv/lib/mysql/tmp' && sudo -e '/etc/systemd/system/main-db.service' && sudo sed -i 's/'CHANGEME'/'$USER'/g' '/etc/systemd/system/main-db.service'   mkdir -p ~/'backups' && sudo mkdir -p '/srv/lib/mysql/tmp' && sudo -e '/etc/systemd/system/main-db.service' && sudo sed -i 's/'CHANGEME'/'$USER'/g' '/etc/systemd/system/main-db.service'
/srv/www/wiki/data/attic/servers/linux/nginx/joomla.1794873651.txt.gz · Last modified: by Sean Rhone