How i can change max_input_vars and upload_max_filesize ?

Problems with the Linux version of XAMPP, questions, comments, and anything related.

How i can change max_input_vars and upload_max_filesize ?

Postby Zer00CooL » 23. October 2017 14:20

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
Zer00CooL
 
Posts: 7
Joined: 23. October 2017 11:31
XAMPP version: 7.1.7
Operating System: Debian Jessie 8.7.1

Re: How i can change max_input_vars and upload_max_filesize

Postby Nobbie » 23. October 2017 18:55

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?
Nobbie
 
Posts: 10620
Joined: 09. March 2008 13:04

Re: How i can change max_input_vars and upload_max_filesize

Postby Zer00CooL » 25. October 2017 13:50

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.
Zer00CooL
 
Posts: 7
Joined: 23. October 2017 11:31
XAMPP version: 7.1.7
Operating System: Debian Jessie 8.7.1

Re: How i can change max_input_vars and upload_max_filesize

Postby medaliskr » 31. July 2018 07:23

u need first to delete the semicolen
(;)max_input_vars = 10000
medaliskr
 
Posts: 1
Joined: 31. July 2018 07:19
XAMPP version: v.3.2.2
Operating System: windows

Re: How i can change max_input_vars and upload_max_filesize

Postby Zer00CooL » 01. August 2018 00:35

semicolen = " ; " ? Yes i have, but, my value not work. I found only the defaut value with phpinfo : 1000
Zer00CooL
 
Posts: 7
Joined: 23. October 2017 11:31
XAMPP version: 7.1.7
Operating System: Debian Jessie 8.7.1

Re: How i can change max_input_vars and upload_max_filesize

Postby Altrea » 01. August 2018 06:55

Did you restart Apache after changing the php.ini?
Did you edit the correct php.ini?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9365
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: How i can change max_input_vars and upload_max_filesize

Postby Zer00CooL » 01. August 2018 12:49

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
Zer00CooL
 
Posts: 7
Joined: 23. October 2017 11:31
XAMPP version: 7.1.7
Operating System: Debian Jessie 8.7.1


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 5 guests