title: browser downloads php file from apache web server
body: <p>I have an apache web server. Let's say this server's domain is <em>example.com</em>.</p>
  
  <p>When I access <em>example.com</em>, then the <code>index.php</code> file is correctly displayed in the browser.</p>
  
  <p>However, when I access e.g. <em>example.com/~user</em>, then the <code>index.php</code> file of <code>/home/user/public_html/index.php</code> file is downloaded rather than displayed.</p>
  
  <p>How do I fix this problem? I changed <code>"expose_php = Off"</code> in <code>php.ini</code>, but nothing has changed.</p>