title: View php webpage offline
body: <blockquote>
    <p>How can I see a webpage with extension php without uploading it to the server? </p>
  </blockquote>
  
  <p>I want to be able to see php files offline in order to preview a page before uploading it to the server. </p>
  
  <p>My searches revealed that I need to have php installed. My OS is Ubuntu, and I did install php5 and apache2, but I can't figure out how to setup the server in order to see my files which are in /home/user/WWW</p>
  
  <p>Is it possible to have a clear explanation how to setup a server properly and how to make it "see" my webpages? I'm not very advanced in web designing. I just want to design a simple webpage displaying my research. I found that writing in php makes things like header, footer easier to include in every page. On the other side, I really want to preview the files before uploading them...</p>