Installing Apache,mysql And Php In Windows - Good text for beginners

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Others

Installing Apache,mysql And Php In Windows - Good text for beginners

Lyon
Here it is the text i have found in
CODE
http://www.jevontech.com/
, and i'm posting this text because i remember the dificults i had when i wanted to do this right...


Installing Apache , MySQL and PHP under Windows
Introduction
While many webservers run Linux, Unix or BSD most personals computers run on Windows.

So it would be quite comfortable if web designers and developers could develop on their home computer.So in this E-book we will focus on configuring your computer to use Apache, MySQL and PHP, so you can work on your home computer.

Step 1: Installing Apache
Apache is one of the most common webservers in the world.You can download and use it for free.

You can go to http://httpd.apache.org/download.cgi and download the webserver here yourself.

Make sure you download the version for Windows (Win 32) WITH installer (MSI Installer) .

There are currently 2 branches available of Apache .

Apache2 is the new branch, Apache 1.3 is the old one.I'd recommend installing the latest version of the Apache 2 branch.

When you finished downloading the installer package(somewhere around 6MB) you can install Apache. Just execute the installer and install Apache somewhere in a logical place.

Make sure Apache is installed, but this is only possible under Windows 2000 or XP.

When you install Apache as a server, a small tool called Apache Monitor is also installed.

It is somewhere in the notification area(lower right corner, near the clock).

When you double click the icon you can start/stop and restart the Apache server.

When you change something in the configuration file of Apache (called httpd.conf ) you always have to restart Apache!

When you have installed Apache you can open your web browser and surf to http://localhost/ .

You should now see the standard website from the Apache server that Apache was successfully installed.

So, your webserver is now up and running!!!! Congratulations!

If you installed Apache in the default path, you can go to “ C:\Program Files\Apache Group\Apache2\htdocs ” and place your own HTML pages there and see them by surfing to http://localhost/. If you want to write a HTML only website, you are done now.

If you also want to create more sophisticated website, let's proceed to the next software package.

Step 2: Installing MySQL
Now on to MySQL.

MySQL is a database.You can also download this one for free.

Surf to the MySQL website : http://dev.mysql.com/downloads/ to download the latest MySQL database server.The default install path is C:\mysql .It is best to leave this default path or else you will need a whole lot of more work to get it up and running.So install MySQL in the default path.

When MySQL is installed we need to test it, right?

We need a simple way to start and stop the MySQL server.

So, let's create a .bat file to start the MySQL server.(I assume you installed the MySQL server in the directory C:\mysql)

Open Notepad.

Enter the following text:

C:\mysql\bin\mysqld –console

Save this file as mysqlstart.bat on your desktop.

Create a new file in Notepad and enter the following text:

C:\mysql\bin\mysqladmin -u root shutdown

Save this file as mysqlstop.bat on your desktop.

If everything is right you should now be able to start your MySQL server by executing(double click) the mysqlstart.bat file and stopping it by double clicking mysqlstop.bat .

What can we now do with the MySQL server?

A lot! But let's first install PHP.

Step 3: Installing PHP
PHP is one of the most popular scripting languages used on the Internet nowadays.

You can create anything from guestbooks and shopping carts to complete auction sites and webmail applications with this language. So , let's install it .

Go to http://www.php.net/downloads.php and download the latest version.

Go to “Windows binaries” and then the ZIP package, not the installer.We need the ZIP package, because we installed Apache and the ZIP package works best with the Apache server.

When you finished extract the zip package into C:/php .

Now comes the most difficult part: We need to let Apache know that PHP is installed.

Copy the following files to the main Apache folder (probably C:\Program Files\Apache Group\Apache2\ ):

C:\php\php4ts.dll

C:\php\sapi\php4apache2.dll

C:\php\php.ini-recommended

Rename php.ini-recommended to php.ini .

Open this php.ini file in Notepad.

Look for the following line:

doc_root =

Set this to the Apache htdocs directory:

doc_root = “C:\Program Files\Apache Group\Apache2\htdocs”

This let's PHP know where the PHP files should be…

Now we need to let Apache know that PHP in installed.

Go to the configuration folder of Apache( :\Program Files\Apache Group\Apache2\conf\ ) and open httpd.conf in Notepad .

Add the following lines to the file (doesn't really matter where, I'll leave that up to you):

LoadModule php4_module php4apache2.dll

AddType application/x-httpd-php .php

Look for the following line:

DirectoryIndex index.html index.html.var

and add index.php to the end of the line like this:

DirectoryIndex index.html index.html.var index.php

So, now Apache knows that PHP is installed.

And now what?

Let's see what we can do with PHP :-)

Start Apache (or restart if you already have it running).

Open Notepad and enter the following:

<?php

echo phpinfo();

?>

Save this file as phpinfo.php in your htdocs directory (“C:\Program Files\Apache Group\Apache2\htdocs”).

If you now surf to http://localhost/phpinfo.php you should see a page that shows all the info about your PHP installation you ever want to know. This is the proof that PHP is properly working.



Carpe diem.

 

 

 


Reply

rovertos
Actually, there is an "all-in-one" installer for Apache/MySQL/PHP you can download. It is called PHPTriad. Look it up on google.

Reply

liliano
Thanks About Your tutorial
Its Really Hard to Set

Reply

mizako
I have read a lot of posts about installing Apach/Mysql and Php in trap17. Maybe this thread should continue one of those. I always recommend apachefriends for Apach/MySQL and PHP combination. It is really easy to install and uninstall.

Reply

bjrn
So... Which is the best Apache/MySQL/PHP installer for Windows?
I know about PHP Triad, phpdev and xampp.

The first time I installed Apache et al on Windows I just downloaded them one by one from the respective official sites and did everything manual, it wasn't hard in any way really, but using a package really speeds up the process.

So far I've only used devphp, which went well. I know xampp has Perl, which the others don't (as far as I know). But are there any other differnces? Does anyone have good or bad experiences with any of the ones I mentioned, or other packages?

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. free download latest apaches mysql - 10.89 hr back. (1)
  2. what combination of version of apache and php is good on windows - 31.51 hr back. (1)
  3. best place to install apache windows - 77.42 hr back. (1)
  4. installing a software package called "php-mysql" - 95.76 hr back. (1)
  5. how to create internet shop tutorial php apache mysql - 105.10 hr back. (1)
  6. install apache sql server and php on windows tutorial - 119.34 hr back. (1)
  7. video on installing apache, php and my admin on windows - 150.36 hr back. (1)
  8. lost apache monitor icon - 152.81 hr back. (1)
  9. installing apache php for beginners - 244.11 hr back. (2)
  10. apache php mysql query browser package windows - 262.84 hr back. (1)
  11. apach for windovs - 289.83 hr back. (2)
  12. php httpd mysql download "all in one" - 347.34 hr back. (1)
  13. video of installing apache, php and mysql - 350.46 hr back. (1)
  14. apache for beginners windows pdf - 351.78 hr back. (1)
Similar Topics

Keywords : installing, apache, mysql, php, windows, text, beginners

  1. Need Help With Flex Rich Text Editor Please!
    Im going mad because of the lack of flex support (0)
  2. Search For Video Files And Display Them
    Using a batch file in windows (0)
    In windows you need to be able to see the file's extension so you can rename a .txt file to .bat
    This batch code I wrote searches your C:\ drive for video files and drops the results into a
    file. That file is then processed into links on a web-page. The web-page is then opened for you to
    view. Click the links to view the file, right click -> save as to save to another place on your
    computer. I use it a lot after browsing videos on the web. It's fun to see what videos end up
    cached (left on the computer from browsing) Insert this into a file named vid-searc....
  3. Some Programmers Definition
    for Windows (1)
    Processor Mode - the various ways in which the processor creates an operating environment for
    itself. (See my other article for details under Hardware section) Dynamic Link Library - an
    executable file that acts as a shared library of functions. (for this too I have an article
    published in the forums) Graphics Device Interface - provides functions and related structures
    that an application can use to generate graphical output for displays, printers, and other devices.
    Windows provides GDI for all graphics output by applications and then maps it to intended device....
  4. Help Needed About Windows Api And Shell To Build A Shell
    Need help to make a shell for microsoft windows (1)
    Hi I want to buils a new shell for windows with new features and look and security with a new login
    mechanism and logging option incase of network environment(office),like aston shell ,talisam
    desktop,but i dont have proper details aof win32 api and registry changer i need to make to make the
    shell working,please can any one help if someone intrested in working in this project please do tell
    me thanks ....
  5. Ipb Mysql Probelm
    (1)
    hi im having problem with my IPB database when ever somone submits a post i get this error message
    IPS Driver Error CODE mySQL query error: UPDATE trap17_ipbmembers SET points=points+ WHERE
    id=1 SQL error: You have an error in your SQL syntax; check the manual that corresponds to your
    MySQL server version for the right syntax to use near 'WHERE id=1' at line 1 SQL error
    code: Date: Saturday 15th of April 2006 09:49:46 AM can somone please explain
    to me what is wrong? use code tags where appropriate. fixed. ....
  6. Windows Icons In A Webpage
    Why don't hey show? (6)
    Hi, I'm making a website (I'm in de layout design process) and I want to use ico icons in my
    page. I donwloaded some "xp-icons" and all worked fine. But because windows' own icons have a
    better quality I used ResourceHacker to take windowsicons from Shell32.dll (in system32 dir). In
    thumbnailview they are shown and Windows Picture Viewer shows them also, but when I used them in my
    webpage, they weren't shown. They also don't work as favicons. It is probably the format of
    the icon but is there some way (batch, tool,...) to convert the icons to a web-u....
  7. Mysql...
    and its limits? (11)
    I haven't been able to try out any mysql databases, but is more than one really required?
    I'm looking at most hosts and most offer unlimited mysql databases. Shouldn't one database
    be enough? I would guess one can hold several kinds of information in sub-databases, maybe?....
  8. Which Scripting Language To Start With
    Best question for beginners (8)
    I dont know any scripting languages: Perl, PHP, asp, javascript etc. Which language would be better
    to start with? Any link to start with?(or I should start with google?)Let me know what good books
    are available. Well that is after you guys have recommended the language to start with
    /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> ....
  9. Learning Mysql
    pls guide (3)
    hello out there, i have already looked through on this tutorial forum.. and still can find any
    topics which related to MySql basic.. i wanna learn about how to create MySql table and its
    concept!! just basic.. i've no knowledge on MySql before nor any other database server
    software.. but i do have littol konwledge on programming,scripting,html basic in concept.. pls dun
    gave me so many links so as i can be blur for none about how to get start!! /laugh.gif'
    border='0' style='vertical-align:middle' alt='laugh.gif' /> i can thou find from Googles sear....
  10. Mysql: What Do I Do First?
    (3)
    I know SQL statements and a little PHP. I want to create an online database and a friend gave me
    this cd with tutorials on PHP and MySQL development. I'm lost in all these deleting user,
    setting privileges part. Can anyone make me understand these things better? /blink.gif'
    border='0' style='vertical-align:middle' alt='blink.gif' /> ....
  11. All Database Query
    MySql, Sql Server, All Database Talk! (4)
    Dear All Friends! I have create this topic for everyone who have some problem with query
    analyses. You could post all your problem with database. We all would have and find a solution for
    you. Now let me start my small problem. This i have fixed but i just think of the best way. I
    got 3 tables: table_users ( user_id ,user_name,user_pass,user_group) table_group ( group_id
    ,group_name) table_usersingroup ( ursingro_id , user_id , group_id ) I need output like this:
    username | password | group test1 | ***** | (group1,gro....
  12. Simple Win
    windows 101 (2)
    Simple windows programming I have a question, i am trying to recreate a program, service pack 2, but
    is it true that 2 boxes then qqpes means the next part until ee is encrypted? HELP!....
  13. Installing A Server On Linux?, Doesn't Seem To Wor
    (0)
    I've been trying to install a server on my Mankdrake 10 linux distro machine, but it has failed.
    I followed a book, I followed several "install mysql" tutorial stuff and it doesn't seem to
    work. I am new to linux and I have never had even an RPM work on this computer. Its not a slow
    computer, but it runs a 1.7g Intel Celeron, 300+ Ram (256 + 128), built in graphics and sound -
    sound doesn't work, and screensavers are slow as hell. I think the os has lots a problems with
    the hardware (duh), and I'm not sure where to get drives (not that ill be able to use....
  14. Mysql
    Any help?.. (7)
    Alright, well. Let's face it, I can understand PHP, but MySQL seems like... Chinese to Japanese.
    Korean to Vietnamese. Totally different, but looks the same to some. Anyway, I was wondering.. Are
    there any understandable tutorials out there that involve php? WebMonkey confuses me (@_@) I'll
    be eternally in your debt. Edit: It seems I can understand MySQL fairly okay, it's phpMyAdmin
    that confuses me. /laugh.gif' border='0' style='vertical-align:middle' alt='laugh.gif' /> -
    Zenchi Discalimer: I'm a liar.....

    1. Looking for installing, apache, mysql, php, windows, text, beginners

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for installing, apache, mysql, php, windows, text, beginners

*MORE FROM TRAP17.COM*
advertisement



Installing Apache,mysql And Php In Windows - Good text for beginners



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE