Skip to content
Advertisement

Php.ini changes are not taken on Linux Bitnami Ubuntu

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?

Advertisement

Answer

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
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement