Page 1 of 1

How i can change max_input_vars and upload_max_filesize ?

PostPosted: 23. October 2017 14:20
by Zer00CooL
nano /opt/lampp/etc/php.ini

I want :
max_input_vars = 2786
phpinfo say : max_input_vars 1000


I want :
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M
post_max_size = 750M
upload_max_filesize = 750M
phpinfo say : upload_max_filesize 2M

Re: How i can change max_input_vars and upload_max_filesize

PostPosted: 23. October 2017 18:55
by Nobbie
What says phpinfo about which php.ini you are using? Additionally, phpinfo very often tells you about "Master Value" and "Local Value" - is there any difference?

Re: How i can change max_input_vars and upload_max_filesize

PostPosted: 25. October 2017 13:50
by Zer00CooL
XAMPP version: 7.1.7
Operating System: Debian Jessie 8.7.1

Configuration File (php.ini) Path /opt/lampp/etc
Loaded Configuration File /opt/lampp/etc/php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)

Alert PHPMyAdmin :
Alerte depuis l'onglet exporter de PHPMyAdmin
Attention, votre configuration PHP limite le nombre maximum de champs d'un formulaire.

->
Modifier la valeur de max_input_vars ou ajouter une ligne dans le fichier /opt/lampp/etc/php.ini :
max_input_vars = 2786
La valeur ne change pas et reste sur max_input_vars 1000 sur le résultat de phpinfo().
This value 2786 not work, phpinfo say 1000.


Same problem :
post_max_size = 750M
upload_max_filesize = 750M

Les valeurs ne changent pas dans phpinfo(). La limite de upload_max_filesize est de 2M.
This value not work, i see 2M with phpinfo()
For that, i found a solution :
Start manager Xampp
cd /opt/lampp
sudo ./manager-linux-x64.run
Cliquer le bouton de configuration MySQL pour modifier my.ini
Le fichier de configuration concerné est /opt/lampp/etc/my.cnf
Modifier la ligne myisam_sort_buffer_size = 8M avec la valeur 1888M.
PHPMyAdmin permet maintenant l'import .sql de fichiers de taille maximale de 750 Mio.
That's resolved.



I search now how i can change max_input_vars = 2786
Modifier la valeur de max_input_vars ou ajouter une ligne dans le fichier /opt/lampp/etc/php.ini :
max_input_vars = 2786
La valeur ne change pas et reste sur max_input_vars 1000 sur le résultat de phpinfo().
This value 2786 not work, phpinfo say 1000.

Re: How i can change max_input_vars and upload_max_filesize

PostPosted: 31. July 2018 07:23
by medaliskr
u need first to delete the semicolen
(;)max_input_vars = 10000

Re: How i can change max_input_vars and upload_max_filesize

PostPosted: 01. August 2018 00:35
by Zer00CooL
semicolen = " ; " ? Yes i have, but, my value not work. I found only the defaut value with phpinfo : 1000

Re: How i can change max_input_vars and upload_max_filesize

PostPosted: 01. August 2018 06:55
by Altrea
Did you restart Apache after changing the php.ini?
Did you edit the correct php.ini?

Re: How i can change max_input_vars and upload_max_filesize

PostPosted: 01. August 2018 12:49
by Zer00CooL
I need test but it's my mean. I have restart apache.

nano /opt/lampp/etc/php.ini
max_input_vars = 2786
Doesn't work.

Then, i have make that :

nano /opt/lampp/etc/php.ini
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M
post_max_size = 750M
upload_max_filesize = 750M

cd /opt/lampp
sudo ./manager-linux-x64.run

Cliquer le bouton de configuration MySQL pour modifier my.ini
Le fichier de configuration concerné est /opt/lampp/etc/my.cnf
Modifier la ligne myisam_sort_buffer_size = 8M avec la valeur 1888M.

PHPMyAdmin permet maintenant l'import .sql de fichiers de taille maximale de 750 Mio.
L'alerte de limite le nombre maximum de champs d'un formulaire n’apparaît plus.



https://www.visionduweb.eu/wiki/index.php?title=Installer_et_utiliser_XAMPP_sous_GNU_Linux#Configurer_PHPMyAdmin