Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have Apache working. I've made the required changes in the configuration file. I have made the required changes in the php.config file but still am unable to run PHP.

When i run http://localhost/test.php, it displays <?php phpinfo(); ?>.

Can somebody walk me through it so I know what I'm doing wrong. Have been trying to make it work for hours and am real stuck. Any help will be appreciated.

share|improve this question

migrated from Aug 22 '10 at 18:17

This question came from our site for professional and enthusiast programmers.

I suppose you install it on IBM360 system? – Col. Shrapnel Aug 22 '10 at 18:02
i have windows operating system and intel chipset..if thats what you are asking – farkhunda Aug 22 '10 at 18:03

You may just want use XAMPP instead since the installation is very simple and automatically takes care of Apache, PHP, and MySQL.

share|improve this answer
+1 for xampp. It's nice and easy. – Pekka 웃 Aug 22 '10 at 18:12
i installed WampServer but it unable to open apache server and i cannot make edits in the config file from its me error "could not execute menu item" – farkhunda Aug 22 '10 at 18:13

Well a walkthrough

LoadModule php5_module c:/php/php5apache2_2.dll
AddType application/x-httpd-php .php

  • Restart Apache (using Apache Monitor utility from the system tray)

  • done.

To test your installation, go to C:\Program Files\Apache Group\Apache\htdocs\ directory and create a file test.php with this line in it:
<?php phpinfo(); ?>
And finally browse to address

share|improve this answer

Your answer in the comments:

i have windows operating system and intel chipset..if thats what you are asking

lets one fear the worst ...

  • Apache for Windows comes as 32bit or 64bit or ASF binary (VCC++6) or Apachefriends binary (VC++9)

  • PHP 5.3 comes precompiled for windows also in a lot of flavors.

Which one of each did you actually install and where?

Nevertheless, I think it would be instructive even for a newbie to try to install these packages as separate components (as you tried). If nothing works, you'd use a precompiled package (WAMPP,XAMPP)

BTW: Best thing to do now might be a complete deinstallation of everyting Apache-Server and everything PHP. Then, start from scratch according to this description.



share|improve this answer

Since you are on windows, go for wampserver

Is migration playing with the comments? Answer to your menu item error,40722

share|improve this answer
i did its also not working – farkhunda Aug 22 '10 at 18:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.