Report this

What is the reason for this report?

PHP Short Tags not working.

Posted on June 10, 2015

Hello I’m having a problem with Short tags not working (php tags) I’ve edited my php.ini file but had no luck.

Now I know I shouldn’t really use them… but anyways can someone help me out please.



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!

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.

Did you reload your apache?

service apache2 restart

Or Nginx

nginx -s reload

Also, if you still have no luck after trying 23r01nf1n17y’s answer, try restarting php-fpm.

service php-fpm restart

Or

service php7.0-fpm restart

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.