Skip to main content
Solved

Netboot/SUS Server

  • May 14, 2015
  • 11 replies
  • 68 views

Forum|alt.badge.img+5

Does anybody else have issues with checkmarking updates in SUS? For one thing, when I "select all" and then hit apply, they all come back as unchecked when the page refreshes. For a second issue, I seem to only be able to checkmark 995 updates total. Any additional updates that are checked will not apply properly.

Best answer by itsops

I noticed this in the /etc/httpd/logs/ssl_error_log:

PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

So I changed /etc/php.ini and set max_input_vars = 10000

After that change and restarting httpd, I can checkmark all of the updates.

11 replies

Forum|alt.badge.img+7
  • Contributor
  • May 14, 2015

I've noticed that as well. Not a huge deal, I just leave one of the updates from 2005 unchecked.


Forum|alt.badge.img+5
  • Author
  • New Contributor
  • Answer
  • May 19, 2015

I noticed this in the /etc/httpd/logs/ssl_error_log:

PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

So I changed /etc/php.ini and set max_input_vars = 10000

After that change and restarting httpd, I can checkmark all of the updates.


Forum|alt.badge.img+7
  • Contributor
  • May 19, 2015

@itsops You should add this change to the netsus github.


Forum|alt.badge.img+5
  • Author
  • New Contributor
  • May 19, 2015

There was an issue opened on github that seemed to be related, and I posted the same solution response there. Is that what you meant?


Forum|alt.badge.img+3
  • New Contributor
  • May 19, 2015

Are you guys using the OVA or installing your own NetSUS? Because I'm not seeing this files you are looking at.


Forum|alt.badge.img+5
  • Author
  • New Contributor
  • May 19, 2015

We are not running the OVA. We're running the NetSUS package on Redhat, and maybe that was why we had the issue in the first place.

If you are running the OVA and have this problem as well, you probably just need to find where php.ini is on the system and update it. Try this command:

find / -name php.ini


Forum|alt.badge.img+7
  • Contributor
  • May 27, 2015

@itsops I did the find command and it found two different php.ini files. I found the max_input_vars in /etc/php5/cli/php.ini and changed it from 1000 to 10000. Then I did the service apache2 restart command to restart httpd. It still does not apply my select all. Did I do everything correctly?


Forum|alt.badge.img+5
  • Author
  • New Contributor
  • May 27, 2015

@krusej23 The /etc/php5/apache2/php.ini file is the correct one. Remember to restart apache after updating it:

sudo service apache2 restart


Forum|alt.badge.img+7
  • Contributor
  • May 27, 2015

@itsops I am not finding a max_input_vars in the apache2 php file. There is a max_input_time that is set to 3600 but that is the only thing that is max_input.

I am running Ubuntu 14.04 if that makes a difference.


Forum|alt.badge.img+5
  • Author
  • New Contributor
  • May 27, 2015

@krusej23 Add these lines below the max_input_time line then:

; How many GET/POST/COOKIE input variables may be accepted
max_input_vars = 10000


Forum|alt.badge.img+7
  • Contributor
  • May 27, 2015

@itsops That worked now. Thank you very much for the help!