源代码与apache一起出现,为什么要重新编写? [关闭]

I own a site installed on my linux server but when I put PHP tags at the beginning of page, the source code appears..

How to avoid all the source code displayed ?

thank you in advance

This means that you are being served the file by Apache without it first being seen (processed) by PHP. Here are some troubleshooting tips as to why it isn't being processed by PHP:

  • Make sure that your file with the PHP tags ends in .php.
  • Make sure PHP is installed on your server. To install PHP on a debian server run sudo apt-get install php5