Laravel / PHP Error: Allowed memory size of 134217728 bytes exhausted – Easy Fix
Allowed memory size of 134217728 bytes exhausted – Easy Fix
Allowed memory size of 134217728 bytes exhausted – Easy Fix
Simple & Fast Solution
Agar aap Apache + .htaccess use kar rahe ho, toh:
Apni .htaccess file open karo
Sabse upar yeh line add karo
php_value memory_limit 1024M
Example (Final .htaccess top)
php_value memory_limit 1024M
<IfModule mod_rewrite.c>
RewriteEngine On
...
</IfModule>
Check Karne Ke Liye
Terminal me run karo:
php -r "echo ini_get('memory_limit');"
Example:
[host-name@vps public_html]$ php -r "echo ini_get('memory_limit');"
1024M
Other Solution:
Project root ya public_html me ek file banao: .user.ini
Add karo:
memory_limit = 1024M
Get In Touch 📞
Let’s discuss how we can grow your business and generate more customers.
Direct Contact
Available for freelance projects, business systems & lead generation solutions.