Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Php codes are shown in source codes

Tags:

php

nginx

I have just moved to nginx and updated my php to php5.3. Now all my PHP code is displaying in the page source code like this:

 <div class="bar-icon">
        <!-- FaceBook Share -->  
                 <?php include ('facebook_icon_like.php')?> 
        <!-- /FaceBook Share --> 
  </div>

Please help.

like image 876
Harinder Avatar asked Sep 29 '26 02:09

Harinder


1 Answers

It means that your nginx engine doesn't have PHP enabled. Follow the instructions here and see if that helps.

like image 126
Palladium Avatar answered Sep 30 '26 17:09

Palladium



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!