Thursday, November 22, 2018

PHP setting for PHP5.3 and PHP 7 in Ubuntu



1) check php version
 php -v
 PHP 7.0.32-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies

 with Zend OPcache v7.0.32-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies

Found PHP is updated from 5.3 to 7.

need to re-config  /etc/php/7.0/apache2/php.ini
 1) Change
 short_open_tag = Off
to
short_open_tag = On

2) restart server
 sudo service apache2 restart

1 comment: