I am facing difficulties deploying a CakePHP application (version 4.5) on AWS Elastic Beanstalk. After performing the deployment (zipping the project’s files and folders and uploading them to AWS), the application shows an ‘OK’ status in Elastic Beanstalk. However, when accessing the generated link, I get the message ‘An Internal Server Error Occurred’ in the browser. The application works normally em development environment.
I have reviewed the full log files provided by Elastic Beanstalk but couldn’t find any specific information to help identify the cause of the error. I am also unsure which log file might contain the relevant details. Additionally, I’m uncertain whether the zip file I’m uploading includes all the required directories and files needed for the application to work correctly according to AWS and CakePHP standards.
I have already reviewed the deployment process and the project structure but still cannot pinpoint the issue. Could someone guide me on how to resolve this error or provide details about the essential directories and files that must be included in the zip package for a successful deployment on Elastic Beanstalk?