PHP 7.0 short_open_tag won't enable when changed in php.ini. Required to setup software I want to use.

I’m trying to setup a web application that requires short_open_tag to be enabled in order to continue through the install wizard. I have set it to


in php.ini, but it still shows off in phpinfo, adn the software wizard also sees it as disabled. I’m using PHP 7.0 and Apache2.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

If you use nginx you should restart fpm

sudo service php7.0-fpm restart

not a nginx server. Maybe I will save someone time)

In your home directory, create a file called info.php.

In that file, put in the following: <?php phpinfo(); ?>

Then run it in your browser, look for “Loaded Configuration File”. It should give you a path like /etc/php5/apache2/php.ini. That’s the file you need to edit. Then restart apache.