User Tools

Site Tools


servers:linux:nginx:friendica

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:friendica [2026/05/01 05:57] – Sean Rhoneservers:linux:nginx:friendica [2026/11/11 01:08] (current) – [FastCGI] Sean Rhone
Line 11: Line 11:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[linux:distros:server:opensuse_tumbleweed_server|openSUSE Tumbleweed (Server)]]+  * [[linux:distros:server:arm:opensuse_tumbleweed_server|openSUSE Tumbleweed (Server)]]
   * [[servers:linux:nginx_php_php-fpm|nginx + PHP + PHP-FPM]]   * [[servers:linux:nginx_php_php-fpm|nginx + PHP + PHP-FPM]]
   * [[servers:linux:nginx:lets_encrypt|Certbot (Let's Encrypt)]]   * [[servers:linux:nginx:lets_encrypt|Certbot (Let's Encrypt)]]
Line 20: Line 20:
   * https://friendi.ca/resources/requirements/   * https://friendi.ca/resources/requirements/
   * https://wiki.friendi.ca/docs/install#requirements   * https://wiki.friendi.ca/docs/install#requirements
-  * ''imagick'' is required ([[https://github.com/friendica/friendica/commit/0b78f43ee416a947c94e7d508e97cf1d2439cc45|0b78f43]]) 
  
-  sudo zypper install php-composer2 php8-curl php8-gd php8-gmp php8-pdo php8-mbstring php8-intl php8-mysql php8-zip php8-openssl php8-fileinfo php8-posix php8-APCu php8-imagick+  sudo zypper install php-composer2 php8-curl php8-gd php8-gmp php8-pdo php8-mbstring php8-intl php8-mysql php8-zip php8-openssl php8-fileinfo php8-posix
  
 ====== Download Source ====== ====== Download Source ======
Line 39: Line 38:
   sudo su 'wwwrun' -s '/bin/bash'   sudo su 'wwwrun' -s '/bin/bash'
  
-  cd '/tmp' && '/usr/bin/composer' --working-dir='/srv/www/social' --no-cache install --no-dev+  cd '/tmp' && '/usr/bin/php' -c '/etc/php8/cli/social.ini' '/usr/bin/composer' --working-dir='/srv/www/social' --no-cache install --no-dev --ignore-platform-req='ext-apcu' --ignore-platform-req='ext-imagick'
  
   exit   exit
Line 72: Line 71:
  
 pm = "ondemand" pm = "ondemand"
-pm.max_children = "4"+pm.max_children = "8"
 pm.process_idle_timeout = "30" pm.process_idle_timeout = "30"
  
Line 83: 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[max_execution_time] = "200" php_value[max_execution_time] = "200"
 php_value[memory_limit] = "512M" php_value[memory_limit] = "512M"
Line 88: Line 88:
 php_value[upload_max_filesize] = "10M" php_value[upload_max_filesize] = "10M"
 php_value[max_file_uploads] = "100" php_value[max_file_uploads] = "100"
 +
 php_value[register_argc_argv] = "On" php_value[register_argc_argv] = "On"
 +
 +; Temp
 +php_value[session.upload_progress.enabled] = "0"
 +
 +; End</code>
 +
 +==== CLI ====
 +
 +  sudo -e '/etc/php8/cli/social.ini'
 +
 +<code>
 +log_errors = "0"
 +error_reporting = "~E_ALL"
 +display_errors = "0"
 +display_startup_errors = "0"
 +html_errors = "0"
 +
 +session.save_path = "/var/lib/php8/sessions"
 +date.timezone = "America/New_York"
 +
 +max_execution_time = "200"
 +memory_limit = "512M"
 +post_max_size = "10M"
 +upload_max_filesize = "10M"
 +max_file_uploads = "100"
 +
 +register_argc_argv = "On"
 +
 +; Temp
 +session.upload_progress.enabled = "0"
  
 ; End</code> ; End</code>
Line 97: Line 128:
  
 <code> <code>
- location '~' '\.(php|phar)(/.*)?$' { +location '~' '\.(php|phar)(/.*)?$' { 
-  fastcgi_split_path_info '^(.+\.(?:php|phar))(/.*)$'; + fastcgi_split_path_info '^(.+\.(?:php|phar))(/.*)$'; 
-  fastcgi_intercept_errors 'on'; + fastcgi_intercept_errors 'on'; 
-  fastcgi_index 'index.php'; + fastcgi_index 'index.php'; 
-  include 'fastcgi_params'; + include 'fastcgi_params'; 
-  fastcgi_param 'SCRIPT_FILENAME' '$document_root$fastcgi_script_name'; + fastcgi_param 'SCRIPT_FILENAME' '$document_root$fastcgi_script_name'; 
-  fastcgi_param 'PATH_INFO' '$fastcgi_path_info'; + fastcgi_param 'PATH_INFO' '$fastcgi_path_info'; 
-  fastcgi_param 'HTTPS' 'on'; + fastcgi_param 'HTTPS' 'on'; 
-  fastcgi_pass 'unix:/run/php-fpm/social.sock'; + fastcgi_pass 'unix:/run/php-fpm/social.sock'; 
- }+}
  
 # End</code> # End</code>
Line 187: Line 218:
  
 ====== Settings ====== ====== Settings ======
- 
-  * :?: 2026: Location -> Country was missing ''USA'', but returned as ''United States of America'' that's unique on [[https://dir.friendica.social/search?field=country&q=United+States+of+America|Directory]] ((browser Inspect tool can be used to type anything)) 
  
 ===== frio Theme ===== ===== frio Theme =====
Line 195: Line 224:
   * Navigation bar icon color: ''ffffff''   * Navigation bar icon color: ''ffffff''
   * Link color: ''3d8bff''   * Link color: ''3d8bff''
-  * Set the background color: ''dedede'' +  * Set the background color: ''fbfaf9''
-  * Login page background color: ''484848''+
  
   * Copy or paste schemestring:   * Copy or paste schemestring:
  
-<code>{"nav_bg":"#3d8bff","nav_icon_color":"#ffffff","link_color":"#3d8bff","background_color":"#dedede","background_image":"","contentbg_transp":"100","login_bg_image":"","login_bg_color":"#484848"}</code>+<code>{"nav_bg":"#3d8bff","nav_icon_color":"#ffffff","link_color":"#3d8bff","background_color":"#fbfaf9","background_image":"","contentbg_transp":"100"}</code>
  
 ===== local.config.php ===== ===== local.config.php =====
Line 253: Line 281:
 WorkingDirectory=/tmp WorkingDirectory=/tmp
  
-ExecStart='/usr/bin/php' '/srv/www/social/bin/console.php' worker+ExecStart='/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' worker
  
 # End</code> # End</code>
Line 292: Line 320:
 WorkingDirectory=/tmp WorkingDirectory=/tmp
 Environment="COMPOSER_CACHE_DIR=/dev/null" Environment="COMPOSER_CACHE_DIR=/dev/null"
 +Environment="COMPOSER_DISCARD_CHANGES=true"
  
 ExecStart='/usr/bin/git' -C '/srv/www/social' reset --hard 'origin/develop' ExecStart='/usr/bin/git' -C '/srv/www/social' reset --hard 'origin/develop'
Line 299: Line 328:
 ExecStart='/usr/bin/git' -C '/srv/www/social/addon' pull origin 'develop' --rebase ExecStart='/usr/bin/git' -C '/srv/www/social/addon' pull origin 'develop' --rebase
  
-ExecStart='/usr/bin/composer' --working-dir='/srv/www/social' --no-cache install --no-dev+ExecStart='/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/usr/bin/composer' --working-dir='/srv/www/social' --no-cache install --no-interaction --no-dev --ignore-platform-req='ext-apcu' --ignore-platform-req='ext-imagick'
  
-ExecStart='/usr/bin/php' '/srv/www/social/bin/console.php' dbstructure update --force +ExecStart='/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure update --force 
-ExecStart='/usr/bin/php' '/srv/www/social/bin/console.php' dbstructure drop --execute+ExecStart='/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' dbstructure drop --execute
  
-ExecStartPost='/usr/bin/php' '/srv/www/social/bin/console.php' postupdate+ExecStartPost='/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' postupdate
  
 # End</code> # End</code>
Line 444: Line 473:
 ExecStart='/usr/bin/git' -C '/srv/www/social/addon' fsck --full --strict ExecStart='/usr/bin/git' -C '/srv/www/social/addon' fsck --full --strict
  
-ExecStart='/usr/bin/php' '/srv/www/social/bin/console.php' cache clear +ExecStart='/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' cache clear 
-ExecStart='/usr/bin/php' '/srv/www/social/bin/console.php' clearavatarcache+ExecStart='/usr/bin/php' -c '/etc/php8/fpm/php-fpm.d/social.conf' '/srv/www/social/bin/console.php' clearavatarcache
  
 # End</code> # End</code>
/srv/www/wiki/data/attic/servers/linux/nginx/friendica.1777629467.txt.gz · Last modified: by Sean Rhone