Skip to content

Commit

Permalink
test permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alihm committed Mar 4, 2024
1 parent 044a5f8 commit e5bde0b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions php-fpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ pid=$(cat $pidfile)
kill $pid
# loop that resests php-fpm and folder permissions each 30 minutes
while true; do
# reset wp folder permissions
chmod -R g+rwx /var/www/html/
chown -R www-data:www-data /var/www/html/

# Start the process
php-fpm -g $pidfile &
#php-fpm -g $pidfile &
# 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/
#pid=$(cat $pidfile)
#kill $pid

done

0 comments on commit e5bde0b

Please sign in to comment.