CyberKeeda In Social Media

PHP Installed but browser is not loading php script, showing as a raw html text



So I encountered the problem , while loading php file with Apache.

I was expecting a page with php information as i have uploaded the phpinfo.php into /var/www/html
restarted apache,

Aww.. i got just text when i hit down the browser as

<?php
        phpinfo();
?>

Now, if your are running in the same problem, below mentioned is the fix.

open your http.conf file and append the below lines within it.

AddHandler php5-script .php

AddType text/html .php


Restart Apache and reload webpage again, the problem will be solved.


No comments:

Post a Comment

Designed By Kunal Saha