Jump to content

Maximum size for a downloadable product


Recommended Posts

Hello,

 

I buy new dedicated server and install centos and plesk admin panel. Now I install PS 1.6 and I have problem with VIRTUAL PRODUCT.

 

I get this error:

 

The uploaded file exceeds the "Maximum size for a downloadable product" set in preferences (2MB) or the post_max_size/ directive in php.ini (2MB).

 

My server administration set

 

[user@CentOS-66-64-minimal /]# php -i | grep post
always_populate_raw_post_data => Off => Off
post_max_size => 256M => 256M
[user@CentOS-66-64-minimal /]# php -i | grep upload
file_uploads => On => On
max_file_uploads => 20 => 20
upload_max_filesize => 256M => 256M
 
How to fix this problem?
Edited by evilmc (see edit history)
Link to comment
Share on other sites

that may be your system php configuration, not what apache is loading.

 

you should create a php file that executes the phpinfo() command, and then place that in your webroot.  Then access it from a browser and verify what your PHP settings are running within the webserver, not the command shell.

Link to comment
Share on other sites

Please, how fix this problem :/

 

I change limit and restart apache and again not works :/

 

54e2d544255c8ea4e70b636e73540d14.png

 

PS admin for product error:

 

24812840a8024d5004e5e2d4b98d01e9.png

 

How to change thisupload 8,00MB and upload 2MB? :/

 

ac2598dabf4b13e477a95de4fe41db9d.png

 

07c6498b23834d48f7cc2aa9b78145a7.png

 

Thanx

 

 

 

EDIT-----------------------------------

 

I fix the problem :/

 

28045ed83e86d1830f7659baceccf625.png

Edited by evilmc (see edit history)
Link to comment
Share on other sites

Hello there, 

There are few solutions to this issue, however as far as I can see indeed the php binary has been already edited. 

First and most importantly you are checking the php binary, however only the native one. For example if you have additional php running in CGI mode then most probably its settings are not located in the php.ini file you have edited. 

 

Secondly if all the other resolutions are failing then you should manually add a php.ini file into the admin folder with the following settings into the same:

post_max_size = 256M

upload_max_filesize = 256M

max_input_vars = 10000
 

Next you should check the phpinfo file and make sure that it will show the new changes. Once the new changes are shown in the info file then you can be sure that the environment is well configured. 

Best Regards,
FastComet Team

Edited by FastComet (see edit history)
Link to comment
Share on other sites

  • 3 years later...
  • 4 years later...
On 8/22/2018 at 10:11 AM, Lucagiaicheca said:

In PS 1.6 go to the Administration > Preferences tab in the Back Office and you'll find a "Maximum size for a downloadable product" setting.

Thank for your post! It has been more useful for me!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...