Configuring PHP with Apache.
Hi!
Actually, configuring PHP with Apache is the *most* tedious job i've ever done! Ill maki it easier for u guys. Download Apache from *apache.org and install it with the defaults. When it asks for domail name etc, enter "localhost" in the first 2 boxes and enter ur email address in the third.
Now download PHP from *www.php.net/get/php-5.0.4-Win32.zip/from/a/mirror
Unzip it to C:\PHP.
Now download *www.kalpik.5gigs.com/php.zip
This has 2 files. Extract php.ini into C:\PHP and httpd.conf into C:\Program Files\Apache Group\Apache2\conf
Replace all existing files.
Now, u will have a leaf type icon in your system tray with a green "play" button on it. Left click on it and select Apache2 -> restart. U will see several warnings about a file php_mysql something. Just keep pressing ok.
now goto start -> run -> services.msc
Here double click on Apache2 and change startup type from automatic to manual.
Now right click My Computer, select properties. Go to the advanced tab and click "Environment Variables" Now under "System Variables", there will be a value named "Path", double click on it.
Now if the variable value is ending in a ";" (semi colon), its ok otherwise, put a semi colon and write "C:\PHP;C:\PHP\ext" (Without quotes) over there. Select ok to exit the dialog box.
Now restart.
After restart, u will have the apache icon in ur tray with a red "stop" button. Click on it select Apache2 -> start. Now u should not see any warnings if everything is configured correctly.
Now open your browser and type "localhost" or "127.0.0.1" in the address bar. A page of Apache should open. If it opens, CONGRATS! U have succesfully configured Apache with PHP! Otherwise get back to me!
Try this and let me know!
Take care!
Kalpik