Something very strange with php.ini load setting

schatzman

Member
Apr 9, 2017
23
2
3
europe
cPanel Access Level
Website Owner
hello,

im trying to turn off short_open_tag to off but with no success.
but as you can see in this screen shot form ea4 php multi editor (im using php 7) its already off..
Screenshot
so i dig a bit deeper, the 2 screen shot below are from phpinfo();
Screenshot
Screenshot

so you can see it still turned on?
I want ahead and run this line: ack -iR "short_open_tag = On" /
this is the outcome:
Screenshot

which file controlling it?! any help will be appreciated!

thanks
Matan
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

Is the PHPINFO file uploaded to the document root of the domain name, or a subdirectory within the document root? Since you are using PHP-FPM, you might be affected by the issue referenced on the following thread:

.user.ini files not recursive

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

Feel free to open a support ticket using the link in my signature so we can take a closer look.

Thank you.
 

KarolosW

Registered
Feb 1, 2017
1
0
1
Greece
cPanel Access Level
Root Administrator
Hello, I had the same issue and found this solution:

1) # nano /var/cpanel/userdata/user/domain.php_fpm.yaml
where
"user" is replaced with the cpanel user
"domain" is replaced with domain

2) ADD
php_admin_value[short_open_tag]: Off

3) Rebuild the PHP-FPM configuration
# /usr/local/cpanel/scripts/php_fpm_config --rebuild

for more info about the PHP-FPM values
Configurations Values of PHP-FPM - Documentation - cPanel Documentation