Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on a project (based on PHP, HTML and CSS) which is live on a Windows server. During development, we work inside a dev folder on the same server. So developers' access the link to the project would be "" whereas the actual link to the live version would be "".

Since the project has now gone live, we are planning to move our development files to another linux server running CentOS 6 which would be "". I have copied all my files to this new server. However, the pages do not load up fine.

The HTML part of the project, is not being able to display data that has been retrieved from the database by the php file. When I display the PHP retrieved information using the echo command it is correct. So I know that PHP is working fine. However, I am not sure as to why HTML cannot display this information.

Is this something to do with the way PHP and Apache have been configured on the new server? I am new to Linux. Can you please help me as to which part of the config files should I edit to make it work fine?

share|improve this question

closed as unclear what you're asking by Michael Hampton Jul 8 '13 at 5:35

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Exactly what is the problem you are having? – Michael Hampton Jul 8 '13 at 5:35

If your server is using PHP5 then add this in httpd.conf on your server

  AddHandler application/x-httpd-php5 .html .htm

If it's not PHP5 then use

  AddHandler application/x-httpd-php .html .htm
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.