PHP Options vs php.ini
In PHP Options for a site, I have selected 7.2 and have set post_max_size and upload_max_filesize to 1G. After some trouble with a Wordpress theme, the theme tech support fixed the issue by putting a php.ini in the public root consisting of setting the two above options to 256MB.
"shouldn't my PHP Options already handle this? And yet, their solution fixed the problem.
What am I missing here? o.O
-
Hello @Ishware The only reason I can think of that it wouldn't have reflected the new value is if there was a php.ini, local.ini or .user.ini in the document root for the domain which was superseding the global values added for the PHP 7.2 php.ini file. Where exactly did you change the values originally? Thanks! 0 -
Note: The problem appears to have been resolved. But more details because I failed to give them: I completely failed to mention I'm running CloudLinux+CageFS, I'm sorry. I keep forgetting not everyone's using it. d'oh A while ago" I set the default PHP 7.2 options to long execution times and large upload limits just because that works well on my server. Most definitely since that time, it's worked because my main client keeps running into Wordpress upload limits because I keep forgetting to set new domains to use PHP 7.2; but doing so solves the problem. What's weird about this is that about a week or so ago when she noticed the problem, I tested on other Wordpress sites and the problem appeared to be on all Wordpress sites using Divi " so she opened a ticket with Divi, who solved it by putting a php.ini with just the two lines from my first post inside the public root of one of the sites. I definitely haven't added php.ini, local.ini, or user.ini to the document root anywhere. I just tested again on a site that I haven't touched and" it works again. So who knows? _____________________________________ " Like 2-3 months ago, if not more 0 -
Hi @Ishware are you using alt-php or ea-php? Not that it should make a huge difference but if you're modifying those values in the multiphp ini editor and modifying ea-php72 not alt-php72 it could be the cause of the issue as well. I'm just speculating at this point though because without access to the server it's difficult to determine why it's not being referenced. It could be that divi was looking for a local .ini file as well. 0
Please sign in to leave a comment.
Comments
3 comments