#!/bin/bash echo "โšก Quick fix for Docker development..." # Quick permission fix without stopping containers echo "๐Ÿ” Quick permission fix..." sudo chmod -R 755 public sudo chmod 644 public/index.php # Test if container can read the file echo "๐Ÿงช Testing file access..." docker exec ckb-app-dev test -r /var/www/html/public/index.php && echo "โœ… File is readable" || echo "โŒ File not readable" # Test PHP execution echo "๐Ÿ˜ Testing PHP execution..." docker exec ckb-app-dev php -v # Test Laravel echo "๐ŸŽฏ Testing Laravel..." docker exec ckb-app-dev php /var/www/html/artisan --version # Test HTTP echo "๐ŸŒ Testing HTTP..." curl -s -o /dev/null -w "HTTP Status: %{http_code}\n" http://localhost:8000 echo "" echo "๐Ÿ” Debug info:" echo "Host file: $(ls -la public/index.php)" echo "Container file:" docker exec ckb-app-dev ls -la /var/www/html/public/index.php echo "" echo "If still not working, run: chmod +x fix-permissions.sh && ./fix-permissions.sh"