I configure the web server under nginx, but the short_open_tag in php_fpm is not included. Here are some data from phpinfo ().

  • System Linux amorphine-desktop 4.2.0-38-generic # 45 ~ 14.04.1-Ubuntu SMP Thu Jun 9 09:27:51 UTC 2016 x86_64
  • Server API FPM / FastCGI
  • Virtual Directory Support disabled
  • Configuration File (php.ini) Path / etc / php5 / fpm
  • Loaded Configuration File /etc/php5/fpm/php.ini
  • Scan this dir for additional .ini files /etc/php5/fpm/conf.d
  • Additional .ini files parsed /etc/php5/fpm/conf.d/05-opcache.ini, /etc/php5/fpm/conf.d/10-pdo.ini, /etc/php5/fpm/conf.d/ 20-curl.ini, /etc/php5/fpm/conf.d/20-gd.ini, /etc/php5/fpm/conf.d/20-json.ini, /etc/php5/fpm/conf.d /20-mcrypt.ini, /etc/php5/fpm/conf.d/20-mysql.ini, /etc/php5/fpm/conf.d/20-mysqli.ini, / etc / php5 / fpm / conf. d / 20-pdo_mysql.ini, /etc/php5/fpm/conf.d/20-readline.ini, /etc/php5/fpm/conf.d/20-xdebug.ini

  • PHP Version 5.5.9-1ubuntu4.17

  • short_open_tag Off

In /etc/php5/fpm/php.ini Explicitly specified:

short_open_tag = On ; Default Value: On ; Development Value: Off ; Production Value: Off 

The php5-fpm service restarted. The php_admin_value directives in pool.d are commented out.

  • one
    See if pool.d / *. Conf has php_admin_value directives that overwrite the value of short_open_tag - cheops
  • @cheops No, all directives are commited. - Pavel Weisberg

1 answer 1

There are two short_open_tag directives in all php.ini. It is noteworthy that these configs are default, and why there are several directives is unclear. There is already fixed the problem on the issue. Thank.

enter image description here