| Forum |
|
|||||||
| Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) | |
|
Version 2.0
Join Date: Jan 2004
Location: Mumbai
Posts: 977
|
here is go... Install Apache Download Apache from Apache website: http://httpd.apache.org/download.cgi Download this one Win32 Binary (MSI Installer) Run the exe file... Follow the instructions... Wait for it to finish... Once it is done... Test it by typing http://localhost/ in your web browser it should show somehting like Quote:
I know, I know, you must be thinking where the hell is www directory... by default it is stored in C:\Program Files\Apache Group\Apache2\htdocs Replace C drive with youur default drive... You can place the files you want to show it on the server.. I would suggest that you shall change the path of default www directory to some other drive.. the reason for this being, sometimes virus may currept default windows drive...and sometimes even autmatically format the drive too so it is better to keep the dir in differenr drive.. to change location of the www directory, do this.. Start - Prog Files - Apache HTTP Server.... - Configure Apache Web Server - Edit the Apache httpd.conf Configuration File Open the file.. Search for DocumentRoot replace the path with the path you want... done... restart the server.... Start - Prog Files - Apache HTTP Server.... - Control Apache Web Server - Restart done... So you got apache working fine with your new www directory... let's move on to PHP Download PHP from PHP website: http://www.php.net/downloads.php Download PHP 4.x.xx installer Once you have downloaded it... While installing select Advacned Mode and there you will see option something like Display Notice, Warning etc... Select Display All Errors (No need to display warnings and notice) In the end from server list select Apache It will show some alert box.. click on ok.... all done ? Nah one thing left... Now you will need to edit httpd.conf file to get php working nothing much to worry, pretty simple... For CGI based php Code:
ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" 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" Edit: Thanks to kalpik for this. You can also install php as apache module..for that you need to add follwoing 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(); ?> it should show file with php information... all done I hope you guys found it easy.... I have not checked it for spelling mistakes coz writing in hurry so please excuse me for that cheers Deep
__________________
- Deep Ganatra - www.whoisdeep.com www.twitter.com/DeepXP/ |
|
|
|
| Advertisements. Register and be a member of the community to get rid of them. | |
|
Advertisement
|
|
|
|
#3 (permalink) |
|
In The Zone
Join Date: Mar 2004
Location: Chennai
Posts: 329
|
One-shot Installer for Apache, MySQL, PHP..
Things are that easy these days.. Good tutorial though for.. |
|
|
|
|
#4 (permalink) |
|
Version 2.0
Join Date: Jan 2004
Location: Mumbai
Posts: 977
|
well, there will be one installer for anything, but installing one by one properly will be much better...
coz here you get options to customize and install the version you want (Apache 2 or 1.3, PHP 4 or 5) cheers Deep
__________________
- Deep Ganatra - www.whoisdeep.com www.twitter.com/DeepXP/ |
|
|
|
|
#5 (permalink) | |
|
In The Zone
Join Date: Mar 2004
Location: Chennai
Posts: 329
|
Quote:
|
|
|
|
|
|
#6 (permalink) |
|
Salieri Family
Join Date: Feb 2004
Location: Somewhere in Internet.......Have dynamic IP address
Posts: 353
|
Heyyyyyyy!!!! Thnx Dude I needed this.Will u plz tell me how to configure MySQL in apche like the above tutorial.
By the way, I wud like to remind all of the readers tht Apache is given in Feb Digit CD.PHP also given in Jan(Not so sure)
__________________
A person who wants everything in his life... May end up with nothing at all -Tommy[Mafia] |
|
|
|
|
#7 (permalink) |
|
Version 2.0
Join Date: Jan 2004
Location: Mumbai
Posts: 977
|
Mysql is too simple..
run exe file... then go to bin folder inside mysql folder clikc on winmysqladmin.exe it will start the mysql as well as add it in the services also... to manage mysql...get PHPmyadmin... feel free to shoot your queries cheers Deep
__________________
- Deep Ganatra - www.whoisdeep.com www.twitter.com/DeepXP/ |
|
|
|
|
#9 (permalink) | |
|
Salieri Family
Join Date: Feb 2004
Location: Somewhere in Internet.......Have dynamic IP address
Posts: 353
|
Hi Deep thnx 4 Mysql help.
Quote:
__________________
A person who wants everything in his life... May end up with nothing at all -Tommy[Mafia] |
|
|
|
|
|
#10 (permalink) | ||
|
Version 2.0
Join Date: Jan 2004
Location: Mumbai
Posts: 977
|
Quote:
Fixed it demoninside, i havent tried tomact yet on windows...i will try it sometime... Deep
__________________
- Deep Ganatra - www.whoisdeep.com www.twitter.com/DeepXP/ |
||
|
|
|
|
#13 (permalink) |
|
Salieri Family
Join Date: Feb 2004
Location: Somewhere in Internet.......Have dynamic IP address
Posts: 353
|
Ya you can do that....For that u must have 24x7 broadband connection.
Also ... There is a notable package which contains Databases,Server,PHP n all tht. It is Apache2triad. It includes: Servers: Apache MySql OpenSSL Xmail SlimFTPd Also postgre SQL ------------------- Interpreters: PHP Perl Python TCL Checkout: http://apache2triad.net/info.php Its very useful for developers.Its around 70MB I think.So it may be heavy to download it.Anyways 4 information.... It is provided in Apr. PCQuest.
__________________
A person who wants everything in his life... May end up with nothing at all -Tommy[Mafia] |
|
|
|
|
#16 (permalink) |
|
In The Zone
Join Date: Feb 2004
Location: Chennai
Posts: 300
|
My Recommendations :
WAMP : http://www.wampserver.com/en/ XAMPP: http://www.apachefriends.com/en/ You will really thank me. Both helps good
__________________
Vande Mataram - Two words that became a Fiery War Cry and Electrified the nation towards Freedom. A mantra that instills a sense of Pride and belonging. |
|
|
|
|
#17 (permalink) |
|
In The Zone
Join Date: May 2004
Location: Moving out of mumbai soon!
Posts: 240
|
man.. did all that an got phpBB running.. lolz.. only nobody outside can access it coz of NAT in Sify bband..
was fun tho.. nice
__________________
Believing you can do it is half the work..Believe in yourself. My cam sample pics http://www.thinkdigit.com/forum/viewtopic.php?t=24414 |
|
|
|
|
#18 (permalink) |
|
In Pursuit of "Happyness"
Join Date: May 2005
Location: New Delhi
Posts: 3,404
|
Hi! Even i have sify but ppl form outside can access my phpBB!!
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain |
|
|
|
|
#19 (permalink) | |
|
In Pursuit of "Happyness"
Join Date: May 2005
Location: New Delhi
Posts: 3,404
|
Quote:
Yor are installing php as a cgi-script. I strongly recommend installing php as an Apache module using the following lines in httpd.conf 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" Regards! Kalpik |
|
|
|
|
|
#21 (permalink) | |
|
In Pursuit of "Happyness"
Join Date: May 2005
Location: New Delhi
Posts: 3,404
|
Quote:
Kalpik |
|
|
|
|
|
#22 (permalink) |
|
Alpha Geek
Join Date: Jun 2004
Location: On Your monitor!
Posts: 560
|
on my machine i have used IIS rather than Apache. I feel it is much easier to configure IIs when compared to Apache.
Thanks for this A[ache tutorial deep. ..:: peace ::.. Jeba
__________________
India's answer to Imageshack |
|
|
|
|
#23 (permalink) |
|
Human Spambot
Join Date: Feb 2004
Location: Mumbai
Posts: 2,653
|
Nice tutorial Deep. I did it successfully because of it. Also, kalpik has put in valuable inputs for the improvement.
Thanks to both of you.
__________________
:: Free hosting and free domain names available in special cases. Conditions apply :: |
|
|
|
|
#24 (permalink) |
|
In The Zone
Join Date: Dec 2004
Location: Vice City
Posts: 461
|
Man where was the tutorial hidden....It was posted on 1 March and i have seen it today 21,July 2005...
lolz i am a daily visitor to QNA section but havent seen it...the weird thing is that i have installed PHP,MYSQL,APACHE some 7 days back and i searched many websites for these steps.... Anyways Deep good work...
__________________
-------------- Lovedeep Wadhwa |
|
|
|
|
#25 (permalink) |
|
In The Zone
Join Date: Dec 2004
Location: Vice City
Posts: 461
|
Guys i recommend phpMyAdmin for Mysql db management. Its just so easy to install. Just uncompress and some minor editing in config.inc.php file and it will save u from soo much hassle....
__________________
-------------- Lovedeep Wadhwa |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|