mirror of
https://github.com/YunoHost-Apps/galette_ynh.git
synced 2024-09-03 18:36:28 +02:00
Fixing nginx conf and folders permissions
This commit is contained in:
parent
56a04209b8
commit
14d2dfe052
2 changed files with 4 additions and 9 deletions
|
@ -14,16 +14,11 @@ location YNH_WWW_PATH {
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||||
|
|
||||||
# Filename to be changed if dedicated php-fpm process is required
|
|
||||||
# This is to be used INSTEAD of line above
|
|
||||||
# Don't forget to adjust scripts install/upgrade/remove/backup accordingly
|
|
||||||
#
|
|
||||||
#fastcgi_pass unix:/var/run/php5-fpm-YNH_WWW_APP.sock;
|
|
||||||
|
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param REMOTE_USER $remote_user;
|
fastcgi_param REMOTE_USER $remote_user;
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
# Include SSOWAT user panel.
|
||||||
|
|
|
@ -53,7 +53,7 @@ rm -r galette-$version
|
||||||
|
|
||||||
sudo chown -R root:www-data $final_path
|
sudo chown -R root:www-data $final_path
|
||||||
sudo chmod -R o-rwx $final_path
|
sudo chmod -R o-rwx $final_path
|
||||||
for folder in cache config exports logs photos templates_c tempimages
|
for folder in attachments cache exports files imports logs photos templates_c tempimages
|
||||||
do
|
do
|
||||||
sudo chmod u+rx $final_path/data/$folder
|
sudo chmod u+rx $final_path/data/$folder
|
||||||
sudo chmod g+rwx $final_path/data/$folder
|
sudo chmod g+rwx $final_path/data/$folder
|
||||||
|
|
Loading…
Reference in a new issue