install_nextcloud.sh: change php fpm socket to '/run/php/php--fpm.www.sock'.
This commit is contained in:
parent
85ac4a80d6
commit
25073c8c82
@ -3583,7 +3583,7 @@ fi
|
||||
|
||||
# - Adjust 'trusted_domains'
|
||||
# -
|
||||
_parameter="overwrite.cli.url"
|
||||
_parameter="trusted_domains"
|
||||
_value="${WEBSITE}"
|
||||
_type="string"
|
||||
echo "" >> $log_file
|
||||
@ -3592,10 +3592,10 @@ echo "# -" >> $log_file
|
||||
echononl "Add '${WEBSITE}' to trusted domains.."
|
||||
|
||||
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}""
|
||||
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
|
||||
|
||||
if [[ $? -eq 0 ]]; then
|
||||
@ -3618,7 +3618,7 @@ fi
|
||||
# - Adjust 'overwrite.cli.url'
|
||||
# -
|
||||
_parameter="overwrite.cli.url"
|
||||
_value="${WEBSITE}"
|
||||
_value="https://${WEBSITE}"
|
||||
_type="string"
|
||||
echo "" >> $log_file
|
||||
echo "# - Adjust configuration parameter '$_parameter'" >> $log_file
|
||||
@ -4597,7 +4597,7 @@ if $apache2_installed ; then
|
||||
#ProxyErrorOverride On
|
||||
|
||||
<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>
|
||||
|
||||
<IfModule dir_module>
|
||||
@ -4794,7 +4794,7 @@ elif $nginx_installed ; then
|
||||
|
||||
|
||||
upstream php-handler {
|
||||
server unix:/tmp/php-${PHP_VERSION}-fpm.www.sock;
|
||||
server unix:/run/php//php-${PHP_VERSION}-fpm.www.sock;
|
||||
}
|
||||
|
||||
server {
|
||||
|
Loading…
Reference in New Issue
Block a user