servers:bsd:nginx:joomla
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| servers:bsd:nginx:joomla [2026/03/11 18:25] – omit=dev/production didn't work branch 7.0 Sean Rhone | servers:bsd:nginx:joomla [2026/10/05 01:18] (current) – Sean Rhone | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Information ====== | ||
| + | |||
| + | * Joomla ((https:// | ||
| + | * [[Information: | ||
| + | * https:// | ||
| + | |||
| + | * :?: Previously failed with Cypress and Sass, but they look like [[https:// | ||
| + | * 2026/03/11: '' | ||
| + | |||
| + | ===== Prerequisites ===== | ||
| + | |||
| + | * [[bsd: | ||
| + | * [[servers: | ||
| + | * [[servers: | ||
| + | * [[servers: | ||
| + | |||
| + | ====== Dependencies ====== | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | su - | ||
| + | |||
| + | pkg install git-lite php84-mysqli php84-composer node23 npm-node23 php84-simplexml php84-dom php84-iconv php84-sodium | ||
| + | |||
| + | ====== Download Source ====== | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | su - | ||
| + | |||
| + | git clone --branch ' | ||
| + | |||
| + | ====== Environment ====== | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | ===== Composer ===== | ||
| + | |||
| + | su - | ||
| + | |||
| + | cd '/ | ||
| + | |||
| + | ===== Node.js ===== | ||
| + | |||
| + | su - | ||
| + | |||
| + | cd '/ | ||
| + | |||
| + | ====== Databases ====== | ||
| + | |||
| + | mariadb -u ' | ||
| + | |||
| + | CREATE DATABASE joomla_db; | ||
| + | |||
| + | CREATE USER ' | ||
| + | |||
| + | GRANT ALL PRIVILEGES ON joomla_db.* to ' | ||
| + | |||
| + | FLUSH PRIVILEGES; | ||
| + | |||
| + | EXIT | ||
| + | |||
| + | ====== nginx + PHP-FPM Configuration ====== | ||
| + | |||
| + | ===== PHP-FPM Socket ===== | ||
| + | |||
| + | su - | ||
| + | |||
| + | ee '/ | ||
| + | |||
| + | < | ||
| + | [main] | ||
| + | |||
| + | ; User/Group | ||
| + | user = www | ||
| + | group = www | ||
| + | |||
| + | ; Socket | ||
| + | listen = 127.0.0.1: | ||
| + | listen.allowed_clients = 127.0.0.1 | ||
| + | |||
| + | ; Process Management | ||
| + | pm = ondemand | ||
| + | pm.max_children = 4 | ||
| + | pm.process_idle_timeout = 30 | ||
| + | |||
| + | ; General | ||
| + | php_value[date.timezone] = " | ||
| + | |||
| + | ; End</ | ||
| + | |||
| + | ===== FastCGI ===== | ||
| + | |||
| + | su - | ||
| + | |||
| + | ee '/ | ||
| + | |||
| + | < | ||
| + | # PHP-FPM | ||
| + | location ~ \.(php|phar)(/ | ||
| + | fastcgi_split_path_info ^(.+\.(?: | ||
| + | fastcgi_intercept_errors on; | ||
| + | fastcgi_index index.php; | ||
| + | include fastcgi_params; | ||
| + | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
| + | fastcgi_param PATH_INFO $fastcgi_path_info; | ||
| + | fastcgi_param HTTPS on; | ||
| + | fastcgi_pass 127.0.0.1: | ||
| + | } | ||
| + | |||
| + | # End</ | ||
| + | |||
| + | ===== Server Block ===== | ||
| + | |||
| + | su - | ||
| + | |||
| + | ee '/ | ||
| + | |||
| + | < | ||
| + | server { | ||
| + | listen 443 ssl; | ||
| + | # http2 on; | ||
| + | server_name ' | ||
| + | root '/ | ||
| + | index ' | ||
| + | |||
| + | include '/ | ||
| + | include '/ | ||
| + | |||
| + | client_max_body_size ' | ||
| + | |||
| + | # add_header Content-Security-Policy " | ||
| + | |||
| + | # access_log | ||
| + | # error_log | ||
| + | |||
| + | location /api/ { | ||
| + | try_files $uri $uri/ / | ||
| + | } | ||
| + | |||
| + | location / { | ||
| + | try_files $uri $uri/ / | ||
| + | } | ||
| + | |||
| + | location ~* / | ||
| + | return 403; | ||
| + | error_page 403 / | ||
| + | } | ||
| + | |||
| + | location ~* \.(ico|pdf|flv)$ { | ||
| + | expires 1y; | ||
| + | } | ||
| + | |||
| + | location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ { | ||
| + | expires 14d; | ||
| + | } | ||
| + | |||
| + | }</ | ||
| + | |||
| + | ====== Initial Setup ====== | ||
| + | |||
| + | * https:// | ||
| + | * :!: If Joomla gives a 500 error, it's likely the '' | ||
/usr/local/www/wiki/data/attic/servers/bsd/nginx/joomla.1773267937.txt.gz · Last modified: by Sean Rhone