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/11 01:06] – [FastCGI] Sean Rhoneservers:linux:nginx:joomla [2026/11/18 12:53] (current) – [Server Block] Sean Rhone
Line 19: Line 19:
   * https://docs.joomla.org/J5.x:Optional_Technical_Requirements   * https://docs.joomla.org/J5.x:Optional_Technical_Requirements
  
-  sudo zypper install nodejs-common php-composer2 php8-gd php8-intl php8-mysql php8-openssl php8-sodium php8-fileinfo php8-mbstring+  sudo zypper install nodejs26 npm26 php-composer2 php8-gd php8-intl php8-mysql php8-openssl php8-sodium php8-fileinfo php8-mbstring
  
 ====== Download Source ====== ====== Download Source ======
Line 26: Line 26:
   * https://github.com/joomla/joomla-cms/branches   * https://github.com/joomla/joomla-cms/branches
  
-  sudo git clone --branch '7.0-dev' --depth '1' --recurse-submodules 'https://github.com/joomla/joomla-cms.git' '/srv/www/main' && sudo chown -R 'wwwrun':'www' '/srv/www/main' && sudo chmod -R '0755' '/srv/www/main'+  sudo git clone --branch '7.0-dev' --depth '1' --recurse-submodules 'https://github.com/joomla/joomla-cms.git' '/srv/www/main' && sudo chown -R 'wwwrun':'www' '/srv/www/main' && sudo chmod -R '0705' '/srv/www/main'
  
 ====== Environment ====== ====== Environment ======
Line 36: Line 36:
   sudo su 'wwwrun' -s '/bin/bash'   sudo su 'wwwrun' -s '/bin/bash'
  
-  cd '/tmp' && '/usr/bin/composer' --working-dir='/srv/www/main' --no-cache install --no-dev --ignore-platform-req='ext-ldap'+  cd '/tmp' && '/usr/bin/php' -c '/etc/php8/cli/main.ini' '/usr/bin/composer' --working-dir='/srv/www/main' --no-cache install --no-dev --ignore-platform-req='ext-ldap'
  
-  cd '/tmp' && '/usr/bin/npm' --prefix '/srv/www/main' ci --verbose+  cd '/tmp' && '/usr/bin/node26' '/usr/lib64/node_modules/npm26/bin/npm-cli.js' --prefix '/srv/www/main' 'ci' --verbose
  
   exit   exit
Line 68: Line 68:
 listen.owner = "wwwrun" listen.owner = "wwwrun"
 listen.group = "www" listen.group = "www"
-listen.mode = "0662"+listen.mode = "0002"
  
 pm = "ondemand" pm = "ondemand"
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"
 +
 +php_value[memory_limit] = "128M"
 +php_value[max_memory_limit] = "256M"
 +php_value[memory_hard_limit_percent] = "210"
 +php_value[post_max_size] = "1M"
 +php_value[upload_max_filesize] = "1M"
 +php_value[max_file_uploads] = "10"
 +php_value[max_input_time] = "10"
 +php_value[max_execution_time] = "10"
  
 ; Temp ; Temp
Line 96: 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 103: 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"
 +
 +memory_limit = "128M"
 +max_memory_limit = "256M"
 +memory_hard_limit_percent = "210"
 +post_max_size = "1M"
 +upload_max_filesize = "1M"
 +max_file_uploads = "10"
 +max_input_time = "10"
 +max_execution_time = "10"
  
 ; Temp ; Temp
Line 125: 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 138: 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 145: 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';
  
 # 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 190: Line 219:
 ===== Installer Deny ===== ===== Installer Deny =====
  
-  * Uncomment ''installation'' section+  * Uncomment ''joomla-deny.conf'' include
   * Do after initial setup   * Do after initial setup
  
Line 215: 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 260: Line 354:
  
 === Temp === === Temp ===
- 
-**** 
  
 <code> <code>
Line 277: Line 369:
  
 ==== Site Meta Description ==== ==== Site Meta Description ====
- 
-**** 
  
 <code> <code>
Line 284: Line 374:
  
 ==== Content Rights ==== ==== Content Rights ====
- 
-**** 
  
   Creative Commons Attribution-ShareAlike 4.0 International   Creative Commons Attribution-ShareAlike 4.0 International
Line 326: 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 360: 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 412: 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'
Line 494: Line 582:
  
 ===== Files ===== ===== Files =====
- 
-**** 
  
   sudo tar -czf ~/'joomla-files-manual-'$(date +%Y-%m-%d)'.tar.gz' -C '/srv/www' 'main'   sudo tar -czf ~/'joomla-files-manual-'$(date +%Y-%m-%d)'.tar.gz' -C '/srv/www' 'main'
  
 ===== Database ===== ===== Database =====
- 
-**** 
  
   sudo mariadb-dump --single-transaction --quick 'joomla_db' -r ~/'joomla-database-manual-'$(date +%Y-%m-%d)'.sql'   sudo mariadb-dump --single-transaction --quick 'joomla_db' -r ~/'joomla-database-manual-'$(date +%Y-%m-%d)'.sql'
Line 520: Line 604:
  
 ===== Stop nginx ===== ===== Stop nginx =====
- 
-**** 
  
   sudo systemctl stop 'nginx'   sudo systemctl stop 'nginx'
  
 ===== Remove Existing Files ===== ===== Remove Existing Files =====
- 
-**** 
  
   ls ~/'joomla-files-'*'.tar.gz' && sudo rm -Rf '/srv/www/main'   ls ~/'joomla-files-'*'.tar.gz' && sudo rm -Rf '/srv/www/main'
Line 533: Line 613:
 ===== Restore Files ===== ===== Restore Files =====
  
-**** +  sudo tar -xzf ~/'joomla-files-'*'.tar.gz' -C '/srv/www' 'main' && sudo chown -R 'wwwrun':'www' '/srv/www/main' && sudo chmod -R '0705' '/srv/www/main'
- +
-  sudo tar -xzf ~/'joomla-files-'*'.tar.gz' -C '/srv/www' 'main' && sudo chown -R 'wwwrun':'www' '/srv/www/main' && sudo chmod -R '0755' '/srv/www/main'+
  
 ===== Git Fix ===== ===== Git Fix =====
  
-  * :!: Set email for ''user.email''+  * :!: Set ''user.email''
  
   sudo su 'wwwrun' -s '/bin/bash'   sudo su 'wwwrun' -s '/bin/bash'
Line 545: Line 623:
   cd '/tmp' && rm -Rf '/srv/www/main/.git'   cd '/tmp' && rm -Rf '/srv/www/main/.git'
  
-  git -C '/srv/www/main' init --initial-branch='6.1-dev'+  git -C '/srv/www/main' init --initial-branch='7.0-dev'
  
   git -C '/srv/www/main' add '.'   git -C '/srv/www/main' add '.'
Line 555: Line 633:
   git -C '/srv/www/main' remote add 'origin' 'https://github.com/joomla/joomla-cms.git'   git -C '/srv/www/main' remote add 'origin' 'https://github.com/joomla/joomla-cms.git'
  
-  git -C '/srv/www/main' pull --depth '1' --recurse-submodules 'origin' '6.1-dev' --rebase+  git -C '/srv/www/main' pull --depth '1' --recurse-submodules 'origin' '7.0-dev' --rebase
  
-  git -C '/srv/www/main' reset --hard 'origin/6.1-dev'+  git -C '/srv/www/main' reset --hard 'origin/7.0-dev'
  
   git -C '/srv/www/main' gc --aggressive --prune='all'   git -C '/srv/www/main' gc --aggressive --prune='all'
Line 576: Line 654:
  
 ===== Start nginx ===== ===== Start nginx =====
- 
-**** 
  
   sudo systemctl start 'nginx'   sudo systemctl start 'nginx'
  
 ===== Clean-up ===== ===== Clean-up =====
- 
-**** 
  
   rm -fv ~/'joomla-files-'*'.tar.gz' ~/'joomla'*'.sql'   rm -fv ~/'joomla-files-'*'.tar.gz' ~/'joomla'*'.sql'
  
/srv/www/wiki/data/attic/servers/linux/nginx/joomla.1794377185.txt.gz · Last modified: by Sean Rhone