install_nextcloud.sh: change php fpm socket to '/run/php/php--fpm.www.sock'.

This commit is contained in:
Christoph 2023-05-01 16:34:42 +02:00
parent 85ac4a80d6
commit 25073c8c82

View File

@ -3583,7 +3583,7 @@ fi
# - Adjust 'trusted_domains' # - Adjust 'trusted_domains'
# - # -
_parameter="overwrite.cli.url" _parameter="trusted_domains"
_value="${WEBSITE}" _value="${WEBSITE}"
_type="string" _type="string"
echo "" >> $log_file echo "" >> $log_file
@ -3592,10 +3592,10 @@ echo "# -" >> $log_file
echononl "Add '${WEBSITE}' to trusted domains.." echononl "Add '${WEBSITE}' to trusted domains.."
cat <<EOF >> $log_file cat <<EOF >> $log_file
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" config:system:set trusted_domains 1 \\ sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" config:system:set ${_parameter} 1 \\
--value="${_value} --type="${_type}"" --value="${_value} --type="${_type}""
EOF EOF
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" config:system:set trusted_domains 1 \ sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" config:system:set ${_parameter} 1 \
--value="${_value}" --type="${_type}" >> $log_file 2>&1 --value="${_value}" --type="${_type}" >> $log_file 2>&1
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
@ -3618,7 +3618,7 @@ fi
# - Adjust 'overwrite.cli.url' # - Adjust 'overwrite.cli.url'
# - # -
_parameter="overwrite.cli.url" _parameter="overwrite.cli.url"
_value="${WEBSITE}" _value="https://${WEBSITE}"
_type="string" _type="string"
echo "" >> $log_file echo "" >> $log_file
echo "# - Adjust configuration parameter '$_parameter'" >> $log_file echo "# - Adjust configuration parameter '$_parameter'" >> $log_file
@ -4597,7 +4597,7 @@ if $apache2_installed ; then
#ProxyErrorOverride On #ProxyErrorOverride On
<FilesMatch \.php\$> <FilesMatch \.php\$>
SetHandler "proxy:unix:/tmp/php-${PHP_VERSION}-fpm.www.sock|fcgi://127.0.0.1" SetHandler "proxy:unix:/run/php/php-${PHP_VERSION}-fpm.www.sock|fcgi://127.0.0.1"
</FilesMatch> </FilesMatch>
<IfModule dir_module> <IfModule dir_module>
@ -4794,7 +4794,7 @@ elif $nginx_installed ; then
upstream php-handler { upstream php-handler {
server unix:/tmp/php-${PHP_VERSION}-fpm.www.sock; server unix:/run/php//php-${PHP_VERSION}-fpm.www.sock;
} }
server { server {