Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

How can I increase the default size from 2,048KiB to 50MBs?

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Locked
  • Print view
Advanced search
5 posts • Page 1 of 1
AFN
Posts: 43
Joined: Sat Feb 01, 2014 2:03 am

How can I increase the default size from 2,048KiB to 50MBs?

Post by AFN » Wed Jul 29, 2015 2:53 pm

I have downloaded a mysql database that is about 20 MB however when I try to import the database it gives me an error which says "You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit.", so my question is how can I increase the default size from 2,048KiB which is about 2 MB to 50 MBs so I can import a database?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: How can I increase the default size from 2,048KiB to 50M

Post by skurudo » Wed Jul 29, 2015 2:59 pm

In /etc/php5/apache2/php.ini check again those:

Code: Select all

post_max_size = 64M
upload_max_filesize = 64M
and restart apache2 or httpd in CentOS
Top

AFN
Posts: 43
Joined: Sat Feb 01, 2014 2:03 am

Re: How can I increase the default size from 2,048KiB to 50M

Post by AFN » Wed Jul 29, 2015 3:15 pm

skurudo wrote:In /etc/php5/apache2/php.ini check again those:

Code: Select all

post_max_size = 64M
upload_max_filesize = 64M
and restart apache2 or httpd in CentOS
Thank you for your fast reply, when I login as root and I try to access "/etc/php5/apache2/" to make the appropriate changes, it says in that directory does not exist, however in /etc/ there is a file called "php.ini" and I see it only has "upload_max_filesize = XXMB" but not "post_max_size = XXM", so I am not sure if I should edit the "php.ini" just in the /etc/ folder.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: How can I increase the default size from 2,048KiB to 50M

Post by skurudo » Wed Jul 29, 2015 6:05 pm

Yep, there is difference in Debian-Ubuntu and CentOS
https://vestacp.com/docs/#config-log-lo ... hel-centos

Your file:
/etc/php.ini
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: How can I increase the default size from 2,048KiB to 50M

Post by skurudo » Wed Jul 29, 2015 6:08 pm

if you don't see in your config, you can add yourself.
post_max_size default value is "8M"
(from docs - http://php.net/manual/en/ini.core.php)
Top


Locked
  • Print view

5 posts • Page 1 of 1

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password