How to Upload configuration files bigger than 2MB

L7 Applicator

How to Upload configuration files bigger than 2MB

Expedition uses APACHE as a web server and PHP as module for the scripts. By default PHP allow users to upload files with a maximum size of 2M, this can be updated by changing the PHP.ini

 

sudo vi /etc/php/7.0/apache2/php.ini

go to line where this variable is defined

upload_max_filesize = 2M

and replace by

upload_max_filesize = 250M

There is another parameter within that file can be increased to allow you use the multiedit with a big amount of rules

 

sudo vi /etc/php/7.0/apache2/php.ini

go to line where this variable is defined

post_max_size = 8M

and replace by

post_max_size = 128M

Increase the values to those variables and restart apache for the changes take effect.

 

sudo systemctl restart apache2
L3 Networker

Re: How to Upload configuration files bigger than 2MB

thanks!

 

this also works in case someone does not readily know commands to use vi and for whatever reason still have not learned the hotkeys escape keys etc... (for example... me)

 

 

sudo sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 250M/g' /etc/php/7.0/apache2/php.ini
sudo sed -i 's/post_max_size = 8M/post_max_size = 128M/g' /etc/php/7.0/apache2/php.ini

then

sudo systemctl restart apache2

 

 

L1 Bithead

Re: How to Upload configuration files bigger than 2MB

Please let me know how to get to sudo command I am not able to login to Expidition via Console in vsphere client.
L7 Applicator

Re: How to Upload configuration files bigger than 2MB

Chapter 1 of the Admin Guide it says but i will post it here :-)

 

Console:

 

username: expedition

password: paloalto

 

When using sudo if you are asked for a password is paloalto

 

Highlighted
L1 Bithead

Re: How to Upload configuration files bigger than 2MB

@alestevez

 

Thanks..got it..

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!