I installed PHP 8 on a new AlmaLinux server, and in /etc/php.ini I set:
short_open_tag = On
I restart Apache, but, the code is still displaying on the screen. I made sure there’s not another short_open_tag in the ini file, and that there’s not another php.ini file on the server. It’s very strange that it’s not working. Eventually I will replace all the short tags with <?php, but, for now I just want to get a bunch of scripts running that use the short tag.
I did restart Apache several times, but the change wouldn’t take effect. I don’t use FPM, but, is there a way to restart PHP?
Only thing that makes sense is some kind of cacheing issue? No idea why it wouldn’t work until a server reboot. Not sure if this is something with Apache or AlmaLinux. I have a CentOS 7 server that is oddly running a slightly newer version of Apache (2.4.6). The AlmaLinux 8.6 server is running Apache 2.4.37. That’s the install that came via dnf.