¿Estas atascado? ¡Yo te ayudo!, pregunta aquí.

Modificar el tamaño maximo de archivo que puede subir Apache2

Todo sobre linux, programas para linux, configuraciones de sistema linux, etc..

Notapor alexiter » Vie Jun 10, 2016 10:48 am

Primero localizamos el fichero que nos interesa php.ini. FIJATE BIEN QUE SI NO FUNCIONA HAY OTRO ARCHIVO .INI DONDE TAMBIEN SE AGREGA AL FINAL DE ESTE POST.

The three files you have there are each meant for different uses.

/etc/php5/cli/php.ini is for the CLI PHP program, which you found by running php on the terminal.

/etc/php5/cgi/php.ini is for the php-cgi system which isn't specifically used in this setup.

/etc/php5/apache2/php.ini is for the PHP plugin used by Apache. This is the one you need to edit for changes to be applied for your Apache setup.

Es decir /etc/php5/apache2/php.ini es el bueno.

buscamos
upload_max_filesize = 2M
post_max_size = 2M

y le cambiamos el 2M por 100M (por ejemplo), guardamos y listo.

Pero puede ser que esto no nos funcione (como ha sido en uno de mis casos), asi que hacemos lo siguiente:

create a php file with <? phpinfo(); ?>

Look for "Scan this dir for additional .ini files".

Go to the above directory and create user.ini file like:-
post_max_size = 40M
upload_max_filesize = 40M

Restart Apache sudo service apache2 restart

Reload the phpinfo(); file. You will thanks me :)
alexiter
Site Admin
 
Mensajes: 157
Registrado: Dom Nov 17, 2013 9:54 pm

Volver a Linux

cron
  • Buscar mensajes nuevos
  • Buscar temas sin respuesta
  • ¿Quién está conectado?
  • Hay 19 Usuarios identificados :: 0 registrado, 0 ocultos y 19 invitados (basados en usuarios activos en los últimos 5 minutos)
  • La mayor cantidad de usuarios identificados fue 619 el Dom May 03, 2020 11:11 pm
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 19 invitados