WordPress buffering issue
Install WP-CLI and Create Bash Script to Automatically Assign IP After Network Change
wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wpwp --info#!/bin/bash
# Get the local IP address
ip_address=$(hostname -I | awk '{print $1}')
# Display the IP address
echo "Local IP Address: $ip_address"
# Update WordPress options
wp option update siteurl "http://$ip_address" --path=/var/www/html/wordpress --allow-root
wp option update home "http://$ip_address" --path=/var/www/html/wordpress --allow-rootmv <filename> /usr/local/bin
chmod +x <filename>bash <filename>
bash sc.shLast updated