I'm running an Apache server in a micro instance from Amazon AWS, and I need to change the session duration and the max upload limit.
When I edit php.ini
and restart Apache, changes don't show in Apache.
I wasn't able to find any info on this.
What can I do? is there any file overriding php.ini
that you know of?
Changes made to the php. ini file will not take effect until you restart the server.
To edit an instance's configurationStop the instance, if it is not already stopped. On the Instances page, click an instance name to display the Details page. Click Edit to display the edit page. Edit the instance's configuration, as appropriate.
It is located at /opt/bitnami/php/etc/php. ini. For example, to modify the default upload limit for PHP, update the PHP configuration file following these instructions.
Since PHP on Amazon Linux ran with FPM/FastCGI I had to do:
sudo systemctl restart php-fpm.service
before restarting apache, i.e
sudo systemctl restart httpd.service
Which config file are you editing? When you do a phpinfo()
what is the path shown under Loaded Configuration File
? Edit the php.ini
that it says it is loading & your changes should be reflected.
If you don’t know how phpinfo()
works, just create a file on your server called something like:
phpinfo_test.php
In that file place this code:
<?php
phpinfo();
?>
Now load phpinfo_test.php
from that web server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With