Add php.ini settings to your laravel project on AWS

567 0 0 0

Last Updated : 2024-05-02 12:10:31

If you want to add additional php.ini settings in your project onAWS, You can simply edit the php.ini found in /etc irectory. Or you can also create a new file names .user.ini file and add it to your /public directory or the root of your application.

1) Create .user.ini file in your /public directory in a laravel project.
2) Add the following lines as the settings


post_max_size = 60M
upload_max_filesize = 50M
memory_limit=1536M
max_execution_time= 300


3) If you want to change the file name, you can do this by changing it in the /etc/php.ini file.

Mohammed Anwar

Mohammed Anwar

Experienced technical lead PHP, MySQL and Laravel Developer for 15+ years, with proven ability to develop and create high-quality and optimized web applications. Great ability to build and optimize database design, schema and queries. Versed programing trainer and instructor delivering web courses and helping others to get into the field in a timely manner. Fast and eager learner for new technologies .