0

I am using a LAMP stack from Bitnami with Ubuntu. I am trying to increase post_max_size in file php.ini.

I changed these values:

post_max_size = 60M
upload_max_filesize = 60M

Then reset with sudo /opt/bitnami/ctlscript.sh restart php-fpm (taken from the Bitnami documentation). No changes take effect.

I have tried removing all the text from php.ini. I get date errors at the top of phpinfo, but it still shows the post_max_size is 20M. I tried to sudo vi /opt/bitnami/php/etc/php.ini. It is showing all my changes. I run phpinfo(). It says:

Configuration File (php.ini) Path    /bitnami/lampstack-linux-x64/output/php/lib
Loaded Configuration File    /opt/bitnami/php/etc/php.ini

It still has the wrong 20 MB as post_max_size. This is nowhere in that INI file. I have looked at all other .ini files on my server, but it is not in any of them. I have stopped and started both php-fpm and Apache to make sure they took down my site, and they both did.

How can I fix this?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Trey
  • 394
  • 1
  • 4
  • 17
  • 2
    There maybe more than one `php.ini` check with `` where you php gets its ini file from – RiggsFolly Apr 15 '16 at 17:11
  • It says Loaded Configuration File /opt/bitnami/php/etc/php.ini . This is what Im changing. – Trey Apr 15 '16 at 17:15
  • What are your rules about overriding in your VHost/Server configuration? In general, if you have write access to the server configuration, then avoid .htaccess, because it will usually slow down your webserver. – noreabu Apr 15 '16 at 17:15
  • @norebu I got rid of the stuff from htaccess, I was just saying that I couldnt get that to work either. I want to use the php.ini – Trey Apr 15 '16 at 17:17
  • Did you try to turn off Apache, modify your `php.ini` and restart Apache? – mathieu_b Apr 15 '16 at 17:36
  • Yeah, I tried that. I have no clue why this isnt working :/ – Trey Apr 15 '16 at 19:16
  • Do you have a `fpm/php.ini`? somewhere – RiggsFolly Apr 16 '16 at 01:23
  • No fpm/php.ini. I checked all the php.ini files on my server. None of them have 20M set as the post_max_size – Trey Apr 18 '16 at 16:58

1 Answers1

1

You need to change the file:

/opt/bitnami/apps/prestashop/conf/php-fpm/php-settings.conf 

And do:

sudo /opt/bitnami/ctlscript.sh restart php-fpm
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
belvg
  • 26
  • 1