Increase Max File Size Upload for Wordpress in Docker
Open terminal
List down active containers
1
docker ps
Run bash inside the wordpress container
1
docker exec -it <container_name>
List all files, including hidden
1
ls -alh
Show contents of .htaccess file
1
cat .htaccess
Insert php values on empty line with sed
1
sed -i '/^# END WordPress.*/i php_value upload_max_filesize 256M\nphp_value post_max_size 256M' .htaccess