Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 06:49:06

Author Topic: Which php.ini to change to increase upload database limit ?  (Read 9020 times)

0 Members and 1 Guest are viewing this topic.

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Which php.ini to change to increase upload database limit ? I changed php.ini from    'Advanced PHP Config' but has no effect on phpmyadmin which remains the same '(Max: 200MiB)'
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline imperio

  • Valuable Member
  • *
  • Posts: 80
  • Karma: +0/-0
    • View Profile
Re: Which php.ini to change to increase upload database limi
« Reply #1 on: 2013-08-24, 03:58:34 »
you need to restart apache after changing settings
service httpd restart
« Last Edit: 1970-01-01, 01:00:00 by Guest »
I like the KLOXO-MR

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: Which php.ini to change to increase upload database limi
« Reply #2 on: 2013-08-24, 04:11:10 »
I did that with the same result. I need to upload database using myphpadmin larger then 200M and I can't increase that default 200M value. When I try to upload larger file ( 1Gb) panel freeze and I need to restart kloxo service.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: Which php.ini to change to increase upload database limi
« Reply #3 on: 2013-08-24, 04:24:58 »
I use nginx + php-fpm_event


Which one of this files I should change to affect myphpadmin upload size limit ?

Code: [Select]

/etc/php.ini
/home/apache/etc/suphp/php.ini
/home/kloxo/httpd/installapp/ocportal/lang/EN/php.ini
/home/phpini/tpl/php.ini.tpl
/opt/php52s/etc/php.ini
/usr/local/lxlabs/kloxo/file/apache/etc/suphp/php.ini
/usr/local/lxlabs/kloxo/file/phpini/tpl/php.ini.tpl
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: Which php.ini to change to increase upload database limi
« Reply #4 on: 2013-08-24, 04:50:04 »
It looks like the correct file is locate here '/opt/php52s/etc/php.ini' . Isn't that strange ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: Which php.ini to change to increase upload database limi
« Reply #5 on: 2013-08-24, 05:28:12 »
I see many php.ini files over the server.

Mustafa, can you please explain as how changing them will affect the server behavior ?

-For example to increase myphpadmin databases upload limit we must change values in '/opt/php52s/etc/php.ini' file which does not look quite right..

-Who will be affect by changing the values on 'etc/php.ini' ? Is this the master php.ini ?

-How about 'Advanced PHP Config' ? Changing those values for each domain will take effect even etc/php.ini value is lower taking the max available memory on etc/php.ini ? (i.e. 'home/httpd/mydomain.com/php.ini' memory_limit=128M and 'etc/php.ini' memory_limit=64M)
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline agssbuzz

  • Junior Member
  • *
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Which php.ini to change to increase upload database limi
« Reply #6 on: 2013-08-24, 07:11:35 »
edit your .htaccess

Code: [Select]
<Ifmodule mod_php5.c>
    php_value upload_max_filesize 200M
    php_value post_max_size 200M
</Ifmodule>
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Which php.ini to change to increase upload database limi
« Reply #7 on: 2013-08-24, 09:16:54 »
The /opt/ php.ini is the correct one to change for phpadmin as it runs on the secondary php52 - it will not effect anyone unless you have it enabled as secondary php.

If you are using php-fpm only the admin can change the php.ini from kloxo.  Individual users have no effect on php config.  Mustafa is working on a change for this.

If you use suphp individual config for php works, but performance is slower.  So you have to decide which is more important.

If using php-fpm .htaccess files have NO effect either.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Which php.ini to change to increase upload database limi
« Reply #8 on: 2013-08-24, 09:18:10 »
Changing /etc/php.ini changes all clients - it is the global php.ini for your server.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: Which php.ini to change to increase upload database limi
« Reply #9 on: 2013-08-24, 12:29:34 »
Quote from: "chrisf"
Changing /etc/php.ini changes all clients - it is the global php.ini for your server.

I use nginxproxy + php-fpm_event

On my old shared server I had 1048M memory_limit for 2 websites. As I use this server only for my websites (around 8 php websites) should I increase etc/php.ini to 5Gb and then to split that around domains on 'Advanced PHP Config
' ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Which php.ini to change to increase upload database limi
« Reply #10 on: 2013-08-24, 13:15:26 »
You are using php_fpm - only Admin php advanced config will work.   Clients will have no effect if change Advanced PHP configs.

If this is private hosting (just you) set all of your limits in /etc/php.ini - every website you have on the server will take on these values for php - understand?

sh /script/restart-all

...after you edit php.ini to insure changes take effect.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.056 seconds with 18 queries.

web stats analysis