Apache2 is only an platform for running web based aplication in our server. The language intrepreter is a must. The common language for server is php. So my local server is lack oh php. Cause when I ran php file, it show the entire content, not the result.
#sudo apt-get install php
So install it. I am running ubuntu server tho, so above is the command.