Closed (works as designed)
Project:
Barracuda
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2011 at 00:27 UTC
Updated:
20 Sep 2014 at 17:07 UTC
Jump to comment: Most recent
For the life of me, I can't recall where we used to override the default /opt/etc/php.ini file so after upgrades my settings would be retained.
I went through and searched the issue queue but maybe I overlooked it?
Hope I haven't duplicated an old issue!
thanks in advance.
Comments
Comment #1
omega8cc commentedBoth
/opt/etc/php.iniand/usr/local/lib/php.iniare overwritten on every upgrade, but both pre-upgrade files are moved to the/var/backups/dragon/t/*directory so you can easily restore them if you wish.Comment #2
snlnz commentedthanks for your reply, not sure it's worth restoring for two setting changes. :D
Comment #3
omega8cc commentedThis has been fixed in this commit: http://drupalcode.org/project/barracuda.git/commit/0c3dabf
You can touch empty control files to avoid overwriting your php.ini for web and cli and also my.cnf.
The empty
/opt/etc/custom.php.inifile will stop overwriting/opt/etc/php.iniand/usr/local/lib/php.inifiles.The empty
/etc/mysql/custom.my.cnffile will stop overwriting your/etc/mysql/my.cnffile.Comment #4
snlnz commentedAwesome thanks for this! That makes it easy. :)
Comment #6
wickwood commentedI'm not sure what I'm missing, but the changes I made to php.ini files are not being recognized.
Some time ago I made changes to post_max_size, upload_max_filesize, max_execution_time and max_input_time in /opt/etc/php.ini and touched /opt/etc/custom.php.ini and things were working fine until sometime recently when I discovered that all my BOA sites had a limit again of 100MB for uploading files.
Upon investigation I found this post and discovered that my changes were not made in /usr/local/lib/php.ini. I don't recall if I ever made the changes here or not, I don't think I did as I don't recall knowing about this file, but regardless the settings for post_max_size and upload_max_filesize were 100MB, so made those changes to the settings and others that I need.
I tried to restart things by running the Barracuda script, but the limits on my site file uploads were still 100MB. I doubled checked both /opt/etc/php.ini and /usr/local/lib/php.ini and the changes were still saved in both files.
So I restarted my Linode Ubuntu VPS and still all sites have the limit of 100MB.
I can't figure out what I'm doing wrong or missing. Any suggestions would be most appreciated!!! Of course I discovered this problem while trying to do something that has to be done yesterday, if you know what I mean.
Thanks for your help in advance!!
Steve
P.S. I wasn't sure if I should start a new thread or re-open this one. It seemed more appropriate to re-open this discussion. Hope that was the right thing to do. It seems that I'm always make mistakes regarding the correct netiquette when it comes to these forums.
Comment #7
omega8cc commentedPlease don't re-open already fixed issues. You need to open new support issue (but there is no such thing like critical priority for support) and attach all required install and config logs.
Comment #8
muschpusch commentedSince this one scores high in google: This is deprecated now check: #1553150: php.ini and my.cnf Config Files Get Overridden upon Upgrade or the BOA wiki