servers:linux:nginx:joomla
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| servers:linux:nginx:joomla [2025/10/16 14:38] – Sean Rhone | servers:linux:nginx:joomla [2025/12/22 07:08] (current) – [Service] Sean Rhone | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| * Joomla | * Joomla | ||
| - | * Purity III | ||
| * [[information: | * [[information: | ||
| * https:// | * https:// | ||
| Line 8: | Line 7: | ||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| - | * [[linux: | + | * [[linux: |
| * [[servers: | * [[servers: | ||
| * [[servers: | * [[servers: | ||
| Line 20: | Line 19: | ||
| * https:// | * https:// | ||
| - | sudo zypper | + | sudo apt install |
| ====== Download Source ====== | ====== Download Source ====== | ||
| - | * https:// | + | * https:// |
| * https:// | * https:// | ||
| - | * :!: 2025/09/11: T3 extension doesn' | ||
| - | sudo git clone --branch '5.4-dev' --depth ' | + | sudo git clone --branch '6.1-dev' --depth ' |
| ====== Environment ====== | ====== Environment ====== | ||
| Line 36: | Line 34: | ||
| ===== Composer ===== | ===== Composer ===== | ||
| - | sudo su 'wwwrun' -s '/ | + | sudo su 'www-data' -s '/ |
| - | cd '/ | + | cd '/ |
| ===== Node.js ===== | ===== Node.js ===== | ||
| - | sudo su 'wwwrun' -s '/ | + | sudo su 'www-data' -s '/ |
| - | cd '/ | + | cd '/ |
| exit | exit | ||
| Line 58: | Line 56: | ||
| GRANT ALL PRIVILEGES ON joomla_db.* to ' | GRANT ALL PRIVILEGES ON joomla_db.* to ' | ||
| - | FLUSH PRIVILEGES; | + | FLUSH PRIVILEGES; |
| - | + | ||
| - | | + | |
| ====== nginx + PHP-FPM Configuration ====== | ====== nginx + PHP-FPM Configuration ====== | ||
| Line 66: | Line 62: | ||
| ===== PHP-FPM Socket ===== | ===== PHP-FPM Socket ===== | ||
| - | sudo -e '/etc/php8/fpm/php-fpm.d/ | + | sudo -e '/etc/php/8.4/fpm/pool.d/ |
| < | < | ||
| Line 72: | Line 68: | ||
| ; User/Group | ; User/Group | ||
| - | user = "wwwrun" | + | user = "www-data" |
| - | group = " | + | group = "www-data" |
| ; Socket | ; Socket | ||
| - | listen = "/ | + | listen = "/ |
| - | listen.owner = "wwwrun" | + | listen.owner = "www-data" |
| - | listen.group = " | + | listen.group = "www-data" |
| listen.mode = " | listen.mode = " | ||
| Line 86: | Line 82: | ||
| pm.process_idle_timeout = " | pm.process_idle_timeout = " | ||
| - | ; openSUSE php.ini Defaults | + | ; Logging |
| - | php_value[session.save_path] = "/ | + | |
| - | + | ||
| - | ; General | + | |
| php_value[log_errors] = " | php_value[log_errors] = " | ||
| php_value[error_reporting] = " | php_value[error_reporting] = " | ||
| + | |||
| + | ; 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[max_file_uploads] = " | ||
| ; End</ | ; End</ | ||
| Line 103: | Line 93: | ||
| ===== FastCGI ===== | ===== FastCGI ===== | ||
| - | | + | sudo -e '/ |
| - | + | ||
| - | | + | |
| < | < | ||
| - | location ~ \.(php|phar)(/ | + | location |
| - | fastcgi_split_path_info ^(.+\.(?: | + | |
| - | fastcgi_intercept_errors on; | + | fastcgi_split_path_info |
| - | fastcgi_index index.php; | + | |
| - | include fastcgi_params; | + | |
| - | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | + | |
| - | fastcgi_param PATH_INFO $fastcgi_path_info; | + | |
| - | fastcgi_pass unix:/ | + | |
| + | fastcgi_param ' | ||
| + | |||
| + | fastcgi_pass | ||
| } | } | ||
| Line 124: | Line 116: | ||
| * [[https:// | * [[https:// | ||
| - | sudo -e '/ | + | sudo -e '/ |
| < | < | ||
| server { | server { | ||
| - | listen ' | ||
| - | http2 ' | ||
| - | server_name ' | ||
| - | root '/ | ||
| - | index ' | ||
| - | include | + | |
| - | | + | http2 ' |
| + | | ||
| + | root '/var/www/main'; | ||
| + | index 'index.php'; | ||
| - | client_max_body_size | + | |
| + | | ||
| - | # access_log | + | # access_log |
| - | # error_log | + | # error_log |
| - | | + | location |
| - | try_files $uri $uri/ / | + | try_files |
| - | } | + | } |
| - | | + | location |
| - | try_files $uri $uri/ / | + | try_files |
| - | } | + | } |
| - | | + | location |
| - | return 403; | + | return |
| - | error_page 403 / | + | error_page |
| - | } | + | } |
| - | | + | location |
| - | expires 1y; | + | expires |
| - | } | + | } |
| - | | + | location |
| - | expires 14d; | + | expires |
| - | } | + | } |
| } | } | ||
| # End</ | # End</ | ||
| + | |||
| + | sudo ln -s -f '/ | ||
| ====== Initial Setup ====== | ====== Initial Setup ====== | ||
| Line 174: | Line 167: | ||
| * :!: Don't remove installation folder | * :!: Don't remove installation folder | ||
| - | ===== Compat\Extension Fix ===== | + | ===== Compat Extension Fix ===== |
| * https:// | * https:// | ||
| - | sudo rm -fv '/srv/ | + | sudo rm -fv '/var/ |
| ====== Settings ====== | ====== Settings ====== | ||
| - | |||
| - | ===== Purity III Template ===== | ||
| - | |||
| - | * [[https:// | ||
| - | |||
| - | ==== Install ==== | ||
| - | |||
| - | * [[https:// | ||
| - | * Download **Purity III Template** and **T3 System Plugin** (:!: not 20 MB+ quickstarts; | ||
| - | |||
| - | * '' | ||
| - | * '' | ||
| ==== System Dashboard ==== | ==== System Dashboard ==== | ||
| Line 200: | Line 181: | ||
| ==== Theme Settings ==== | ==== 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 ==== | ==== Footer ==== | ||
| Line 236: | Line 205: | ||
| <img src=" | <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 ===== | ===== Articles ===== | ||
| Line 367: | Line 281: | ||
| < | < | ||
| [Service] | [Service] | ||
| - | User=wwwrun | + | User=www-data |
| - | Group=www | + | Group=www-data |
| Type=oneshot | Type=oneshot | ||
| - | Environment=" | + | WorkingDirectory=/ |
| + | Environment=" | ||
| - | ExecStart='/ | + | ExecStart='/ |
| + | ExecStart='/ | ||
| - | ExecStart='/ | + | ExecStart='/ |
| - | ExecStart='/ | + | ExecStart='/ |
| + | ExecStartPost='/ | ||
| ExecStartPost='/ | ExecStartPost='/ | ||
| Line 384: | Line 301: | ||
| ==== Timer ==== | ==== Timer ==== | ||
| - | * Every day at '' | + | * Daily '' |
| sudo -e '/ | sudo -e '/ | ||
| Line 415: | Line 332: | ||
| Type=oneshot | Type=oneshot | ||
| - | ExecStart='/ | + | WorkingDirectory=/ |
| + | |||
| + | ExecStart='/ | ||
| ExecStartPost='/ | ExecStartPost='/ | ||
| Line 423: | Line 342: | ||
| === Timer === | === Timer === | ||
| - | * '' | + | * Monthly (4th) '' |
| sudo -e '/ | sudo -e '/ | ||
| Line 432: | Line 351: | ||
| [Timer] | [Timer] | ||
| - | OnCalendar=*-*-01 03:15:00 | + | OnCalendar=*-*-04 03:15:00 |
| Persistent=true | Persistent=true | ||
| Line 463: | Line 382: | ||
| Group=mysql | Group=mysql | ||
| Type=oneshot | Type=oneshot | ||
| + | |||
| + | WorkingDirectory=/ | ||
| ExecStart='/ | ExecStart='/ | ||
| Line 472: | Line 393: | ||
| === Timer === | === Timer === | ||
| - | * '' | + | * Monthly (4th) '' |
| sudo -e '/ | sudo -e '/ | ||
| Line 482: | Line 403: | ||
| [Timer] | [Timer] | ||
| - | OnCalendar=*-*-01 03:10:00 | + | OnCalendar=*-*-04 03:10:00 |
| Persistent=true | Persistent=true | ||
| Line 498: | Line 419: | ||
| < | < | ||
| [Service] | [Service] | ||
| - | User=wwwrun | + | User=www-data |
| - | Group=www | + | Group=www-data |
| Type=oneshot | Type=oneshot | ||
| - | ExecStart='/usr/ | + | WorkingDirectory=/var/www/main |
| - | ExecStart='/ | + | |
| - | ExecStart='/ | + | ExecStart='/ |
| + | ExecStart='/ | ||
| ExecStartPost='/ | ExecStartPost='/ | ||
| Line 512: | Line 434: | ||
| ==== Timer ==== | ==== Timer ==== | ||
| - | * '' | + | * Monthly (4th) '' |
| sudo -e '/ | sudo -e '/ | ||
| Line 523: | Line 445: | ||
| [Timer] | [Timer] | ||
| - | OnCalendar=*-*-01 03:30:00 | + | OnCalendar=*-*-04 03:30:00 |
| Persistent=true | Persistent=true | ||
| Line 539: | Line 461: | ||
| **** | **** | ||
| - | sudo tar -czf ~/' | + | sudo tar -czf ~/' |
| ===== Database ===== | ===== Database ===== | ||
| Line 571: | Line 493: | ||
| **** | **** | ||
| - | ls ~/' | + | ls ~/' |
| ===== Restore Files ===== | ===== Restore Files ===== | ||
| Line 577: | Line 499: | ||
| **** | **** | ||
| - | sudo tar -xzf ~/' | + | sudo tar -xzf ~/' |
| ===== Git Fix ===== | ===== Git Fix ===== | ||
| * :!: Set email for '' | * :!: Set email for '' | ||
| - | * :!: T3 + Purity III need reinstalled | ||
| - | sudo su 'wwwrun' -s '/ | + | sudo su 'www-data' -s '/ |
| - | rm -Rf '/srv/ | + | rm -Rf '/var/ |
| - | git -C '/srv/ | + | git -C '/var/ |
| - | git -C '/srv/ | + | git -C '/var/ |
| - | git -C '/srv/ | + | git -C '/var/ |
| - | git -C '/srv/ | + | git -C '/var/ |
| - | git -C '/srv/ | + | git -C '/var/ |
| - | git -C '/srv/ | + | git -C '/var/ |
| - | git -C '/srv/ | + | git -C '/var/ |
| - | git -C '/srv/ | + | git -C '/var/ |
| - | git -C '/srv/ | + | git -C '/var/ |
| exit | exit | ||
/var/www/wiki/data/attic/servers/linux/nginx/joomla.1760639923.txt.gz · Last modified: by Sean Rhone
