Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

359
Vistas
Set memory_limit to PHP FPM with .htaccess

i need to modify in the htaccess the memory_limit , max_input_vars and max_execution_time of php. In order not to modify the global configuration of php on the server.

In my virtualhost, I have this configuration:

<FilesMatch \.php> 
    SetHandler "proxy:unix:/var/run/php/php7.3-fpm.sock|fcgi://localhost/" 
</FilesMatch> 

In my htaccess I have tested these two configs without success:

<IfModule php7_module>
    php_value memory_limit 512M
    php_value max_input_vars 10000
    php_value max_execution_time 1800
</IfModule>

And

<IfModule mod_php7.c>
    php_value memory_limit 512M
    php_value max_input_vars 10000
    php_value max_execution_time 1800
</IfModule>

In the case of php7.3-fpm.sock, do I have to use it another way?

Thanks

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

in your configuration file, default path "/etc/php/7.3/fpm/pool.d/php7.3-fpm.conf" or your path, change to:

php_admin_value[memory_limit] = 512M
php_admin_value[max_input_vars] = 10000
php_admin_value[max_execution_time] = 1800

then restart your web service, and test your settings.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda