Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

361
Views
Establezca memory_limit en PHP FPM con .htaccess

necesito modificar en htaccess el límite de memoria, max_input_vars y max_execution_time de php. Para no modificar la configuración global de php en el servidor.

En mi host virtual, tengo esta configuración:

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

En mi htaccess he probado estas dos configuraciones sin éxito:

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

Y

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

En el caso de php7.3-fpm.sock , ¿tengo que usarlo de otra manera?

Gracias

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

en su archivo de configuración, ruta predeterminada "/etc/php/7.3/fpm/pool.d/php7.3-fpm.conf" o su ruta, cambie a:

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

luego reinicie su servicio web y pruebe su configuración.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!