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

omega8cc’s picture

Status: Active » Closed (works as designed)

Both /opt/etc/php.ini and /usr/local/lib/php.ini are 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.

snlnz’s picture

thanks for your reply, not sure it's worth restoring for two setting changes. :D

omega8cc’s picture

Project: Octopus » Barracuda
Component: Documentation » Code
Category: support » feature
Status: Closed (works as designed) » Fixed

This 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.ini file will stop overwriting /opt/etc/php.ini and /usr/local/lib/php.ini files.

The empty /etc/mysql/custom.my.cnf file will stop overwriting your /etc/mysql/my.cnf file.

snlnz’s picture

Awesome thanks for this! That makes it easy. :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

wickwood’s picture

Category: feature » support
Priority: Normal » Critical
Status: Closed (fixed) » Active

I'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.

omega8cc’s picture

Category: support » feature
Priority: Critical » Normal
Status: Active » Closed (works as designed)

Please 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.

muschpusch’s picture

Since 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

  • omega8cc committed 0c3dabf on HEAD
    BOA: Issue #1305542 by snlnz - Do not overwrite php.ini if empty /opt/...