PHP Short Tags not working.

Posted June 10, 2015 5.1k views

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.

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.

Submit an Answer
2 answers

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


service php7.0-fpm restart