View Single Post
Old 21-03-06, 11:55 AM   #1 (permalink)
BINNY
Technical GURU
 
BINNY's Avatar
 
Join Date: Feb 2006
Location: India
Posts: 804
Blog Entries: 2
Thanks: 4
Thanked 35 Times in 24 Posts
Rep Power: 17 BINNY is a glorious beacon of light BINNY is a glorious beacon of light BINNY is a glorious beacon of light BINNY is a glorious beacon of light BINNY is a glorious beacon of light BINNY is a glorious beacon of light
HI,

Install Apache





Download Apache from Apache website: http://httpd.apache.org/download.cgi




1) Download this one




2) Search for Win32 Binary (MSI Installer)
Run the exe file...




3) Follow the instructions...
Wait for it to finish...
Once it is done...


4) Test it by typing http://localhost/ in your web browser


5) Default www folder


C:\Program Files\Apache Group\Apache2\htdocs





Replace C drive with your default drive...





6) You can place the files you want to show it on the server..






Installing PHP



1) Download PHP from PHP website: http://www.php.net/downloads.php




2) Download PHP 4.x.xx installer




3) Once you have downloaded it...
While installing select Advacned Mode
and there you will see option something like Display Notice, Warning etc...




4) Select Display All Errors (No need to display warnings and notice)




5) In the end from server list select Apache
It will show some alert box..
click on ok....




6) Now you will need to edit httpd.conf file to get php working




For CGI based php













Code:
ScriptAlias /php/ "c:/php/"


AddType application/x-httpd-php .php


Action application/x-httpd-php "/php/php.exe"









Add above lines into the httpd.conf and then restart the apache





If you have installed php 5 then you will need to point replace last line with this





Action application/x-httpd-php "/php/php-cgi.exe"



You can also install php as apache module..for that you need to add following code in httpd.conf instead of above mentioned one...













Code:
# For PHP 4 do something like this:


LoadModule php4_module "c:/php/php4apache2.dll"


AddType application/x-httpd-php .php





# For PHP 5 do something like this:


LoadModule php5_module "c:/php/php5apache2.dll"


AddType application/x-httpd-php .php





# configure the path to php.ini


PHPIniDir "C:/php"












Now to check whether PHP is installed or not,make one php file and see...
you can use this code













Code:
<?php


phpinfo();


?>







Save it as index.php and save it in your www directory...





It should show file with php information...





All done [img]smileys/smiley1.gif[/img]





I hope you guys found it easy....


__________________
BINNY
BINNY is offline Offline   Reply With Quote
 
45,000 Jobs - Get an Interview Call,  Post Your Resume Here