PHP Short Tags not working.

June 10, 2015 2.5k views
PHP Apache

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.

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

Have another answer? Share your knowledge.