Thursday, February 27, 2014

PHP not being parsed by Apache on Ubuntu 13.10

Error

PHP code is not being parsed on Ubuntu 13.10 even through php CLI command

The php code appears as html comments if you did a view source for the php file 

Version: PHP 5.3.3

Solution

1- Edit the following files

/etc/php5/cli/php.ini
/etc/php5/apache2/php.ini 


2- Change the following setting to On

short_open_tag = Off

3- Restart the server

Or you can change your code to use<?PHP instead of <?




No comments:

Post a Comment