Control Web Panel
		WebPanel => PHP => Topic started by: ring_c on December 06, 2018, 04:15:47 PM
		
			
			- 
				Hi,
I was going through this (http://wiki.centos-webpanel.com/php-open_basedir) guide, but couldn't make the persoanl php.ini (per account, and not a global one) to work.
By the way, I beleive it was working properly before I upgraded to php-fpm yesterday.
Would appretiate if anyne can advise what I might be missing.
By the way, during the php-fpm upgrade, I was also compiling some other php versions. Might this cause such an issue?
TIA.
			 
			
			- 
				Sorry forgot to add the link to the guide I mentioned:
http://wiki.centos-webpanel.com/php-ini-per-folder
			 
			
			- 
				Just found out that I have to use .user.ini instead of php.ini since the update the PHP-FPM.
I can confirm it works great.
			 
			
			- 
				Are you running WordPress on any of them? I can't get WP to use local settings in the user.ini file.
			
 
			
			- 
				
Are you running WordPress on any of them? I can't get WP to use local settings in the user.ini file.
Yes. Only WP. Are you sure you have a .user.ini file (not user.ini) in place?
			 
			
			- 
				Yes I have a .user.ini and phpinfo() reads it but WordPress doesn't 
			
 
			
			- 
				In some way I can relate to that. I've increased the memory allocated to wordpress to 128mb, but wordpress (elementor's system info) shows it still at 40mb. I thought it's a bug, but now that you say that... damn!
			
 
			
			- 
				I've same problem. I changed the php.ini, then check file phpinfo.php, everything has been changed like php.ini but Allow max upload size does'nt. I tried also to restart vps.
			
 
			
			- 
				I still didn't find an answer to that.
			
 
			
			- 
				On further research its was an Apache config error which apparently is quite common. Specifically it was a trailing slash error in the domain.ca.conf file.
/usr/local/apache/conf.d/vhosts
<IfModule proxy_fcgi_module>
		<FilesMatch \.php$>
			SetHandler "proxy:unix:/opt/alt/php-fpm73/usr/var/sockets/jet.sock|fcgi://localhost/"
		</FilesMatch>
The trailing slash after localhost breaks the recursive search at least for ClassicPress / WordPress.
https://stackoverflow.com/questions/27226055/does-the-user-ini-file-work-for-subdirectories (https://stackoverflow.com/questions/27226055/does-the-user-ini-file-work-for-subdirectories)
			 
			
			- 
				For the sake of future searchers, I've found the answer for that issue. You can see it here:
http://forum.centos-webpanel.com/php/changes-in-php-ini-won't-work!/msg21430/#msg21430