0

I have a Windows server 2003 service pack 2 installed on my virtual host. This is my server settings:

  • IIS version: 6.0
  • PHP version: 5.3.28
  • My website engine: Wordpress

When I try to open my site inside my browser, I see lot of php code inside browser. Other pages works fine but the first page is full of php code.

What is the problem?

Edit:

  • I have this site working fine on my local machine. The error is just inside the main server.
  • I changed short_open_tag to On but nothing changed.
  • Now I'm trying to remove the wordpress and install it from scratch.
S.Yavari
  • 876
  • 8
  • 25

3 Answers3

1

Probably a problem of pairing tags.

<?php Instructions ?>

Check each start and end tag. If you don't see an error, try do copy the code in a draft, delete all the page and then reconstruct it part by part to see where is the problem.

Hope this technique will help you.

Nicolas Henrard
  • 843
  • 8
  • 19
0

Did you follow all instructions in order to activate the IIS FastCGI module, as shown on this page ? http://www.php.net/manual/en/install.windows.iis7.php

Pete_Gore
  • 594
  • 1
  • 5
  • 20
0

The problem is solved just by removing wordpress and installing it again.

S.Yavari
  • 876
  • 8
  • 25