Linux Webmaster
Home C# Tips and Code Linux Webmaster David's WEBDEX

This section contains a few tips I've run across for running a Linux web server and wanted to share.

Has your PHP stopped working after a RH update ?

 

Has your PHP stopped working after a RH update ?

I ran into this after installing an update to RH 7.2. PHP pages started serving up the PHP source code instead of running it. RH apparently changed a default value in /etc/php.ini .

You can either change the <? tags in your php code to <?php or you can change the value of short_open_tag in /etc/php.ini to On

*************** pasted from /etc/php.ini **************
; Allow the <? tag.
;Otherwise, only <?php and <script> tags are recognized.
short_open_tag = On
*****************end pasted ***************************

 

Copyright (c) 2002 by J. David Ball. All rights reserved.