Increase PHP Memory Limit en cPanel
When necesito increase la memory PHP?
Si ves errors like Fatal error: Allowed memory size exhausted or your WordPress muestra pantalla blanca, es probable que necesites más memory PHP. Esto pasa with sitios complejos, plugins pesados or tiendas WooCommerce with muchos productos.
Método 1 — From el Selector de PHP en cPanel (recomendado)
- Access cPanel
- Search for la sección "Software"
- Click en "Select PHP Version"
- Click in the pestaña "PHP Options"
- Search for
memory_limitand cambia el value. Recomendamos 256M or 512M - Click en "Save"
Método 2 — From el file .htaccess
Agrega esta línea in your file .htaccess within public_html:
php_value memory_limit 256M
Método 3 — From wp-config.php (WordPress)
Opin the file wp-config.php and agrega before of the línea /* That's all, stop editing! */:
define('WP_MEMORY_LIMIT', '256M');
✅ Valuees recomendados:
Blog simple: 128M
WordPress with plugins: 256M
WooCommerce / tienda: 512M
Blog simple: 128M
WordPress with plugins: 256M
WooCommerce / tienda: 512M