This issue likely occurs due to the absence of proper environment variables on your cPanel server. Ensure that AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_REGION are set up correctly in your cPanel environment. Also you can add them via the cPanel's environment variables section or include them in your .env file if supported.