OLS not parsing PHP files

#1
Hello,

I have just set up OLS on my Ubuntu 18.04 server. I have compiled PHP from Tools > Compile PHP and it succeeded successfully. I have also created a Virtual Host for a domain, added a script handler for the same (prefix: php handler: lsphp) and added it to the default listener. The site is just a dummy index.html and it is loading fine. However, when I try to load a phpinfo.php file that I've added for the domain, raw php is parsed on the browser instead. How do I fix this?

The phpinfo.php file has the following content:

PHP:
<?php

phpinfo();

?>
 
Last edited:
Top