Skip to content

Commit

Permalink
Merge pull request #17 from RunOnFlux/develop
Browse files Browse the repository at this point in the history
Fix permission issue
  • Loading branch information
alihm authored Jan 5, 2024
2 parents 7bec55a + fafd839 commit b54648a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions php-fpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ sleep 10
# Kill the process
pid=$(cat $pidfile)
kill $pid
# start the loop that restarts php-fpm each 20 minutes
# loop that resests php-fpm and folder permissions each 30 minutes
while true; do
# Start the process
php-fpm -g $pidfile &
# Wait for 20 minutes
sleep 1200
# Wait for 30 minutes
sleep 1800
# Kill the process
pid=$(cat $pidfile)
kill $pid
# reset wp folder permissions
chmod -R g+rwx /var/www/html/
chown -R www-data:www-data /var/www/html/
done

0 comments on commit b54648a

Please sign in to comment.