Skip to content

Commit

Permalink
test permission
Browse files Browse the repository at this point in the history
  • Loading branch information
alihm committed Mar 4, 2024
1 parent 4f49158 commit 6917f27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions php-fpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ php-fpm -g $pidfile &
sleep 5
# Kill the process
pid=$(cat $pidfile)
kill $pid
#kill $pid
sleep 5
# loop that resests php-fpm and folder permissions each 30 minutes
while true; do

# Start the process
php-fpm -g $pidfile &
#php-fpm -g $pidfile &
# reset wp folder permissions
chmod -R g+rwx /var/www/html/
chown -R www-data:www-data /var/www/html/
echo "Reseted Permissions."
# Wait for 30 minutes
sleep 1800
sleep 5
# Kill the process
pid=$(cat $pidfile)
kill $pid
#pid=$(cat $pidfile)
#kill $pid
done

0 comments on commit 6917f27

Please sign in to comment.