Both sides previous revisionPrevious revisionNext revision | Previous revision |
servers:windows:nginx:joomla [2025/05/30 14:55] – Sean Rhone | servers:windows:nginx:joomla [2025/06/14 21:10] (current) – [Prerequisites] Sean Rhone |
---|
===== Prerequisites ===== | ===== Prerequisites ===== |
| |
* [[windows;11_ltsc|Windows 11 (24H2)]] | * [[windows;11_ltsc_server|Windows 11 (24H2)]] |
* [[servers;windows;nginx_php_php-cgi|nginx + PHP + PHP-CGI]] | * [[servers;windows;nginx_php_php-cgi|nginx + PHP + PHP-CGI]] |
* [[servers;windows;nginx;lets_encrypt|Certbot (Let's Encrypt)]] | * [[servers;windows;nginx;lets_encrypt|Certbot (Let's Encrypt)]] |
| * [[programs;windows;git|Git]] |
| * [[programs;windows;nodejs_npm|Node.js + npm]] |
| * [[servers;windows;mariadb|MariaDB]] |
| |
====== Dependencies ====== | ====== Dependencies ====== |
| |
* https://manual.joomla.org/docs/next/get-started/technical-requirements/ | * https://manual.joomla.org/docs/next/get-started/technical-requirements/ |
| |
===== Git ===== | |
| |
* https://git-scm.com/downloads/win | |
* Last tested: ''Git-2.49.0-64-bit.exe'' | |
| |
===== MariaDB Server ===== | |
| |
* https://mariadb.org/download/ | |
* Last tested: ''mariadb-11.8.2-winx64.msi'' | |
| |
* No Development components or Third party tools | |
* Use UTF8 as default server's character set | |
* [x] Enable Networking | |
| |
===== Node.js ===== | |
| |
* https://nodejs.org/en/download | |
* Last tested: ''node-v22.15.0-x64.msi'' | |
| |
* ''[x]'' Node.js runtime | |
* ''[ ]'' corepack manager | |
* ''[x]'' npm package manager | |
* ''[ ]'' Online documentation shortcuts | |
* ''[~]'' Add to PATH | |
* ''[x]'' Node.js and npm | |
* ''[ ]'' npm modules | |
| |
* ''[ ]'' Automatically install the necessary tools. | |
| |
====== Download Source ====== | ====== Download Source ====== |
| |
* https://github.com/joomla/joomla-cms/commits/5.3-dev/ | * https://github.com/joomla/joomla-cms/commits/5.4-dev/ |
| |
"%ProgramFiles%\Git\bin\git.exe" clone --branch "5.3-dev" --depth "1" --recurse-submodules "https://github.com/joomla/joomla-cms.git" "%SystemDrive%\www\main" | "%ProgramFiles%\Git\bin\git.exe" clone --branch "5.4-dev" --depth "1" --recurse-submodules "https://github.com/joomla/joomla-cms.git" "%SystemDrive%\www\main" |
| |
====== Database ====== | ====== Database ====== |
| |
"%ProgramFiles%\MariaDB 11.8\bin\mariadb.exe" -u "root" -p | "%ProgramFiles%\MariaDB 12.0\bin\mariadb.exe" -u "root" -p |
| |
CREATE DATABASE joomla_db; | CREATE DATABASE joomla_db; |
===== Composer ===== | ===== Composer ===== |
| |
* https://github.com/composer/composer/releases | * [[https://github.com/composer/composer/releases/latest/download/composer.phar|composer.phar]] |
* Latest ''composer.phar'' in ''www\ext'' folder | |
| |
MKDIR "%SystemDrive%\www\ext" | MKDIR "%SystemDrive%\www\ext" |
| |
<code> | <code> |
# PHP-CGI | |
location ~ \.(php)(/.*)?$ { | location ~ \.(php)(/.*)?$ { |
fastcgi_split_path_info ^(.+\.(?:php))(/.*)$; | fastcgi_split_path_info ^(.+\.(?:php))(/.*)$; |
# access_log logs/main-access.log; | # access_log logs/main-access.log; |
# error_log logs/main-error.log; | # error_log logs/main-error.log; |
| |
# Install dir post-install block | |
# | |
# location "/install" { | |
# location ~* \.(php)$ { | |
# deny "all"; | |
# } | |
# } | |
| |
location /api/ { | location /api/ { |
====== Scripts ====== | ====== Scripts ====== |
| |
MKDIR "%SystemDrive%\www\scripts\main" | ===== Folder ===== |
| |
"explorer.exe" "%SystemDrive%\www\scripts\main" | **** |
| |
| MKDIR "%SystemDrive%\www\scripts\main" |
| |
===== PHP-CGI ===== | ===== PHP-CGI ===== |
| |
===== Update ===== | ===== Update ===== |
| |
* https://github.com/joomla/joomla-cms/commits/5.3-dev/ | |
| |
"notepad.exe" "%SystemDrive%\www\scripts\main\Update.bat" | "notepad.exe" "%SystemDrive%\www\scripts\main\Update.bat" |
| |
"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" reset --hard | "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" reset --hard |
"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" pull origin "5.3-dev" --rebase | "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" pull origin "5.4-dev" --rebase |
| |
"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" gc --aggressive --prune="all" | "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" gc --aggressive --prune="all" |
====== Branch Update ====== | ====== Branch Update ====== |
| |
* 5.2 -> 5.3 | * 5.3 -> 5.4 |
* TODO: Re-check commands with ''5.4-dev'' | |
| |
"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" switch -t -c "5.3-dev" | "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" switch -t -c "5.4-dev" |
| |
"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" branch | "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" branch |
"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" reset --hard | "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" reset --hard |
| |
"%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" pull origin "5.3-dev" --rebase | "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\main" pull origin "5.4-dev" --rebase |
| |
====== Files ====== | ====== Files ====== |
| |
"tar.exe" -czf "%UserProfile%\Downloads\joomla-files-manual-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "main" | "tar.exe" -czf "%UserProfile%\Downloads\joomla-files-manual-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "main" |
| |
==== FreeBSD ==== | |
| |
**** | |
| |
"%USERPROFILE%\Downloads\OpenSSH-Win64\scp.exe" "%USERPROFILE%\Downloads\joomla-files-manual-"*".tar.gz" "%USERPROFILE%\Downloads\joomla.sql" espionage724@192.168.1.152:~ | |
| |
====== Database ====== | ====== Database ====== |
===== Backup ===== | ===== Backup ===== |
| |
CD "%UserProfile%\Downloads" | **** |
| |
"%ProgramFiles%\MariaDB 11.8\bin\mariadb-dump.exe" -u "root" -p --opt -r "joomla.sql" "joomla_db" | CD "%UserProfile%\Downloads" && "%ProgramFiles%\MariaDB 12.0\bin\mariadb-dump.exe" -u "root" -p --opt -r "joomla.sql" "joomla_db" |
| |
===== Restore ===== | ===== Restore ===== |
* [[#database|Initial set-up]] | * [[#database|Initial set-up]] |
| |
"%ProgramFiles%\MariaDB 11.8\bin\mariadb.exe" -u "root" -p --execute="CREATE DATABASE joomla_db" | "%ProgramFiles%\MariaDB 12.0\bin\mariadb.exe" -u "root" -p --execute="CREATE DATABASE joomla_db" |
| |
| "%ProgramFiles%\MariaDB 12.0\bin\mariadb.exe" -u "root" -p "joomla_db" < "%UserProfile%\Downloads\joomla.sql" |
| |
| ====== Quick Commands ====== |
| |
| ===== Scripts ===== |
| |
| **** |
| |
| "explorer.exe" "%SystemDrive%\www\scripts\main" |
| |
| ===== Bookmarks ===== |
| |
"%ProgramFiles%\MariaDB 11.8\bin\mariadb.exe" -u "root" -p "joomla_db" < "%UserProfile%\Downloads\joomla.sql" | * https://github.com/joomla/joomla-cms/commits/5.4-dev/ |
| * https://github.com/joomla/joomla-cms/branches |
| |