Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
alihm committed Mar 4, 2024
1 parent 5da334a commit 27ef0be
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions php-fpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ 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 &
# Wait for 30 minutes

# reset wp folder permissions
chmod -R g+rwx /var/www/html/
chown -R www-data:www-data /var/www/html/
echo "Reseted Permissions."
sleep 1800
# Kill the process
pid=$(cat $pidfile)
Expand Down

0 comments on commit 27ef0be

Please sign in to comment.