Trying to increase memory_limit for php but I can't seem to edit cgi/php.ini. It's all garbled. Has anyone else been able to increase the memory for php? This install is on an Rpi4 using Raspbian,
/etc/php/*/cgi/php.ini
is a plain text file, usually starting with an About php.ini comment at the top.
If it is all garbled, chances are it has been corrupted.
There may be several causes for this. Among the more common ones are an SD card nearing its end of life or otherwise defective, or your RPi is using an insufficient PSU.
To confirm the latter, you could do a precursory check for recent under voltage issues by running
zgrep -i "voltage" /var/log/syslog*
Thanks! No voltage issue. But it did need to do a repair of pihole a few weeks ago and the ftl database was locked up tight and needed to be blown away. It was about 1.6G. This is all running on an SSD.
Is the cli/php.ini close enough that I could just copy that one over?
Maybe, but I'd keep a close watch.
If file corruption has occured for one file, the same incidence may have affected other files as well, and you may not be aware of those (yet). This may result in inexplicable behaviour.
Instead of patching up a select few files manually, it may be better to start afresh with a new OS image. If the issue still reasserts itself afterwards, I'd definitely recommend a new SD card.
Yup, probably best to rebuild. Thanks !
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.