Apache 2.4 in Ubuntu 16.04 not parsing php 5.6 files

Amey Abhyankar sco1984 at gmail.com
Tue Aug 21 06:15:43 UTC 2018


Hello,

I have installed Apache 2.4 & php 5.6 on my Ubuntu 16.04 laptop.
I installed php & apache using apt-get command.
I copied sample php file in /var/www/html dir

My sample php code as follows =

--------------------------------
<?php
echo "hi gm";
?>
<?
echo "short tag open";
?>
--------------------------------

Apache is working fine.
If I hit http://localhost/test.php it just shows the code as above.
Apache fails to parse the sample file.

I did lot of R&D by Googling possible solutions & ensured php5.6
module is enabled.

Any help? Thanks.

Regards,
Amey.




More information about the ubuntu-users mailing list