diff --git a/conf/nginx.conf b/conf/nginx.conf index 74fc4df..09207fd 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -8,12 +8,12 @@ location __PATH__ { } # Example PHP configuration (remove if not used) - index index.php; + index index.php index.html index.htm; # Common parameter to increase upload size limit in conjuction with dedicated php-fpm file #client_max_body_size 50M; - try_files $uri $uri/ index.php; + try_files $uri $uri/ /index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php5-fpm-__NAME__.sock; diff --git a/conf/php-fpm.ini b/conf/php-fpm.ini index 5c27d59..f3c6d3a 100644 --- a/conf/php-fpm.ini +++ b/conf/php-fpm.ini @@ -8,3 +8,4 @@ ; max_input_time = 300 ; memory_limit = 256M ; short_open_tag = On +session.save_path = /var/www/__NAMETOCHANGE__/tmp diff --git a/scripts/_common.sh b/scripts/_common.sh index 16e1c17..bd89c3c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -24,7 +24,7 @@ exec_composer() { COMPOSER_HOME="${workdir}/.composer" \ php "${workdir}/composer.phar" $@ \ - -d "${workdir}" --quiet --no-interaction + -d "${workdir}" --no-interaction } # Install and initialize Composer in the given directory diff --git a/scripts/install b/scripts/install index d52c77f..09a46ce 100755 --- a/scripts/install +++ b/scripts/install @@ -86,11 +86,12 @@ ynh_install_app_dependencies "$pkg_dependencies" ynh_app_setting_set $app final_path $final_path # Download, check integrity, uncompress and patch the source from app.src #ynh_setup_source "$final_path" -git clone "https://framagit.org/framasoft/PrettyNoemieCMS" "$final_path" +git clone "https://framagit.org/framasoft/PrettyNoemieCMS" -b update-project "$final_path" +ssh-keyscan -H github.com >> ~/.ssh/known_hosts init_composer "$final_path" -exec_composer "$final_path" require paragonie/random_compat +#exec_composer "$final_path" require paragonie/random_compat #================================================= # NGINX CONFIGURATION @@ -165,7 +166,7 @@ systemctl reload nginx #================================================= # Set permissions to app files -chown -R www-data:www-data $final_path +chown -R $app:www-data $final_path #================================================= # SETUP LOGROTATE