Apache
  Home arrow Apache arrow Page 4 - Installing PHP under Windows
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
APACHE

Installing PHP under Windows
By: Matthew Phillips
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 240
    2003-10-22

    Table of Contents:
  • Installing PHP under Windows
  • What is it?
  • Installation - Apache
  • Installation Cont'd - MySQL
  • Installation Cont'd - PHP
  • Testing It All

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Installing PHP under Windows - Installation Cont'd - MySQL


    (Page 4 of 6 )

    Next we will be installing MySQL, a free database program. This will be necessary for almost all php scripts beyond any very basic scripts.  Create a temporary directory – on the desktop is a good place; we will be getting rid of it soon anyway. Extract the MySQL ZIP file to the temp directory and run the setup.exe. Follow all the onscreen instructions. Once the setup program has finished and installed MySQL, delete the temporary directory.

    Click Start -> Run and type cmd in the box, click Ok. This will open a console window (or MS-Dos box). In the console window enter the following commands and check that you receive the correct response:

    Enter: cd c:\mysql\bin
    Enter: mysqld-max-nt --install
    Response: Service successfully installed.
    Enter: net start MySql
    Console should say: The MySql service is starting.
    Console should say: The MySql service was started successfully.

    Congratulations you have installed MySQL; however, before we are done here we are going to make MySQL more secure, by adding a password, so only you can change the databases.

    At the console window type the following commands (replace new_password with your new password):

    Enter: cd c:\mysql\bin
    Enter: mysql -u root mysql
    Response: Welcome to the MySQL monitor .....
    Enter: UPDATE user SET Password=PASSWORD('new_password')
    Enter: WHERE user='root';
    Response: OK...
    Enter: FLUSH PRIVILEGES;
    Response: OK...
    Enter: DELETE FROM user WHERE user='';
    Response: OK...
    Enter: DELETE FROM user WHERE Host='%';
    Response: OK...
    Enter: DELETE FROM user WHERE User='';
    Response: OK...
    Enter: DELETE FROM db WHERE Host='%';
    Response: OK...
    Enter: exit
    Response:  Bye
    Enter: exit
    Response: Console window closes.

    More Apache Articles
    More By Matthew Phillips


       · My configuration is:Windows XP, Apache Web Server 2.2.9, PHP 5.2.6 and MySQL...
       · Apparently this tutorial was for php 4 and all of the filenames/directories are...
       · When I open up the Dos screan:"Microsoft Windows XP [versie 5.1.2600](C)...
       · got it working ^^everything seems to workthe only thing that happend is th...
       · well, first of all, it says:"Create a new file called "test_insert_mysql.php" and...
       · I corrected the mistake, however, it does not seem to connect mysql with php.....
       · Uncomment (remove leading semi-colon) in php.ini...
       · echo $row->text . ‘<br>’;should be echo $row->text . "<br>";
       · I found a verry simple PHP Webserver with integrated PHP 5.6.2 support. So i dont...
       · You can check out the solution at this link which i think is a little newer and may...
     

    APACHE ARTICLES

    - Programmatically Manipulating Microsoft Exce...
    - Installing PHP under Windows
    - Compressing Web Content with mod_gzip and mo...
    - Compressing Web Output Using mod_deflate and...
    - Setting Up Apache 2.0.45 to Parse PHP Pages
    - Custom Error 404 Documents with PHP
    - Using Apache and PHP on Mac OS X
    - ASP: Active Sessions, Active Logins and Tota...
    - Working With Oracle on Windows: Part 1
    - The Quick-n-Dirty Guide to Setting Up Apache...
    - Installing Apache With SSL: The Complete Gui...
    - 7 Powerful .htaccess Customization Tips
    - Trap And Get Notified: A Practical Solution ...
    - One Way To Use Server Side Includes
    - Using ForceType For Nicer Page URLs







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    Stay green...Green IT