Monday , February 3 2025

Fatal error: Allowed memory size when executing a script or importing a dump into a database

The Fatal error: Allowed memory size error indicates that there is not enough time and limits on the server to complete the process that you started.

Here is the actual block for inserting into .htaccess, with which the limits from php.ini will be increased, after that you can import a large dump into the database through the PhpMyAdmin, or upload a large file via the web interface, and the scripts will not die during execution process:

php_value memory_limit 256M
php_value upload_max_filesize 256M
php_value post_max_size 256M
php_value max_execution_time 300
php_value max_input_time 300

About iryna

I'm Iryna, a web developer from Ukraine with a decade of experience solving complex technical challenges in the world of freelance. Throughout my career, I've worked on everything from troubleshooting server-side issues and optimizing website performance to enhancing user interfaces. On this blog, I share detailed solutions to the technical problems I’ve encountered and methods that have worked best for me. In addition to my technical expertise, I’m also passionate about digital drawing. I hope the tutorials and insights I provide here will help both fellow developers and creatives alike in their own projects.

Check Also

How to add 301 redirect to https for Yii2 without .htaccess

I’ve tested different redirect options for .htaccess, but sites keep giving “redirected you too many …

Leave a Reply

Your email address will not be published. Required fields are marked *