45,000 Jobs - Get an Interview Call,  Post Your Resume Here
SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




Installing Apache, PHP on Windows

        

Reply
 
LinkBack Thread Tools Display Modes
Old 21-03-06, 11:55 AM   #1 (permalink)
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
Old 11-04-06, 07:34 AM   #2 (permalink)
Junior Member
 
Join Date: Feb 2006
Location: India
Posts: 29
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 4 webrsk has disabled reputation
Hi to all Sureshkumar.net Forum Members,

I came again to c u all..coz of exams preparation not able to log here..ok hereaftr il b active here..so binny gave really easy way of installing php and apache..

Also i would like to share abt a pack called XAMPP..

XAMPP is an easy to install Apache distribution containing MySQL, PHP
and Perl. XAMPP is really very easy to install and to use - just
download, extract and start..
XAMPP versions:
    [*]a version for Linux systems (tested for Ubuntu, SuSE, RedHat, Mandrake and Debian),[*]a version for Windows 98, NT, 2000, 2003 and XP[/list]Visit the site and ull know how it make easier to install and configuring the Pack[Apache+PHP+PERL+MYSQL]....
    Also it contains latest version of these s/w..so it will be a gud pack to use it..

    http://www.apachefriends.org/en/index.html

    Any comments..Buzzz me upp..Tc

    Regards,
    Rsk*.*[img]smileys/smiley2.gif[/img]



__________________
Rsk*.*
webrsk is offline Offline   Reply With Quote
Reply

Tags
on , apache , installing , php , windows


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +6.5. The time now is 09:10 AM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.0