简体   繁体   中英

Php.ini changes not takeing on linux bitnami ubuntu

I am using LAMP stack from bitnami with ubuntu. I am trying to increase post_max_size in php.ini. I changed these values

post_max_size = 60M
upload_max_filesize = 60M

Then reset with this sudo /opt/bitnami/ctlscript.sh restart php-fpm (taken from 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 20MB as post_max_size. This is nowhere in that INI. I have looked at all other ini files on my server, it is not on 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.

Does anyone know how to fix this? Thank you!

You need to change the file:

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

and:

sudo /opt/bitnami/ctlscript.sh restart php-fpm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM