PHP-FPM 8.1 & 8.2 Config

Rockyuk

Verified User
Joined
Aug 3, 2020
Messages
59
Hello Everyone,
This is driving me mad, I cannot seem to work out why some WordPress installations are detecting some parts of the php config in PHP-FPM. For example, it will find upload_max_filesize, memory_limit etc but not post_max_size. After doing phpinfo within the specific WordPress site it confirms that the config file is /usr/local/php81/lib/php.ini

But it seems to be picking and choosing what to take from it, any one have any ideas?

Thanks

Rockyuk
 
You can change values in php settings in user_level per each user separate.
 
You can change values in php settings in user_level per each user separate.
Yeah, I tried that and it still does not work unfortunately. I would like to do it globally anyway but that does not seem to be working either. Not sure if it is to doe with the PHP-FPM config etc
 
But it seems to be picking and choosing what to take from it, any one have any ideas?
Doublecheck in the users domain settings in DA that there also php 8.1 is selected.
Also check if you don't have any custom files like /usr/local/phpXX/lib/php.conf.d/90-custom.ini with php changes.
 
Doublecheck in the users domain settings in DA that there also php 8.1 is selected.
Also check if you don't have any custom files like /usr/local/phpXX/lib/php.conf.d/90-custom.ini with php changes.
Yep PHP 8.1 is selected and no custom.ini within that folder apart from the default ones
 
So then I presume also no user.ini in the public_html of the user.
Strange. Normally if no settings are adjusted the global php.ini files under the php version location are used.
And the required settings like post_max_size and such are normally enabled by default in php.ini if I'm not mistaken.

So unless that file is changed and maybe some typo is made somewhere or a permission error, I don't know what's going on.

Unless you are on Cloudlinux, then there is another place to look.
 
Apologies, I am on Cloudlinux, but I thought it took the php.ini from the default server location and not its own as I am not using CloudLinux's php selector.
 
I encountered it on my search, but can't find it anymore. If I've seen it correctly it should be set somewhere else.

On the CL docs I read something about this:
/opt/alt/phpXX/etc/php.ini
maybe you can do a search with find or locate for php.ini locations. I don't work with CL so I don't know where it is.
 
Ahhh, but I thought that was for only if you are using CL php selector? As I am using DA's native php-fpm I thought that would override CL php selector.
 
add to your website any simple php file with output of phpinfo - there you will see variables and where from they loaded.
 
add to your website any simple php file with output of phpinfo - there you will see variables and where from they loaded.
Yep did that already it's still not reading from that location.
 

Attachments

  • Family-Separation-Support-•-WP-ServerInfo.png
    Family-Separation-Support-•-WP-ServerInfo.png
    68 KB · Views: 79
have you checked last two paths from screen? also /usr/loca/directadmin/data/users/username/php***
 
also after changing something you must restart php-fpm81 also if your accounts in cagefs - you need to update it.
 
Back
Top