Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com Aug 22 '10 at 18:17

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

3  
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

4 Answers 4

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

http://www.apachefriends.org/en/xampp-windows.html

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 menu..gives me error "could not execute menu item" –  farkhunda Aug 22 '10 at 18:13

Since you are on windows, go for wampserver

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

http://www.wampserver.com/phorum/read.php?2,40722

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

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.

Regards

rbo

share|improve this answer

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 http://127.0.0.1/test.php

share|improve this answer

Your Answer

 
discard

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