• Welcome to Auciou's Blog! Subscibe
  • HomeAbout AuciouArchivesContactSite MapLinks

  • Reinstall Apache and PHP for one step

    Auciou posted on October 08, 2009 at 06:41

    The 2 softwares we need:
    MiniApache (V2.0.5.2)
    php-5.2.8-Win32.zip

    The development environment of this article is Win XP. While the PHP runs with IIS, it is very slow. Run PHP with Apache, the speed will be faster for much. MiniApache (2.0.5.2) is a simplified Apache, it is just 308 K. As the introduction said, the functions that used frequently are not reduced.

    After I installed and tested for many times, I've known well this installation of MiniApache. In order to avoid reinstalling Apache and PHP after reinstalling the system, please install them in the Disk D, for example, I install at D:\server. Create the development environmen of yourself first, the steps of installation are:

    1. Extract the MiniApache at D:\server\apache.
    2. Open the file D:\server\apache\setup.cmd, by a text tool, find that c:\www\bin\apache -k install, c:\www\bin\apache -k uninstall, and c:\www\bin\apache -k restart, delete all of the keyword "c:\www\", they will become bin\apache -k install, etc., this makes the DOS command become the relative path. Otherwise while run setup.cmd, it takes error, disable to install.
    3. Configure the file D:\server\apache\conf\httpd.conf first, then install Apache. Such as change the port, create the virtual hosting, change the main directory of local site, all of them are written the correlative codes in the httpd.conf configuration file, in order to understand more easily for you, I omit this step. (Please click here to view detail, http://www.auciou.com/peace/79)
      httpd.conf file must be written the 3 lines as below:

      PHPIniDir D:/server/php5
      LoadModule php5_module D:/server/php5/php5apache2.dll
      AddType application/x-httpd-php .php

      Explanation: the second line is "Load Module", if without the third line, PHP cannot run, it just can display the HTML page.
      DirectoryIndex index.html this line is the default document of the directory, change to DirectoryIndex index.php index.html

    4. In the file of httpd.conf, replace all of the keyword "c:/www" to "D:/server/apache", otherwise it cannot run. Because the MiniApache's default directory of installation is c:/www, I install at D:/server/apache.
    5. Then run setup.cmd, choose 1, press Enter, if favoring, the installation of Apache will finish.
    6. Install PHP 5. Extract php-5.2.8-Win32.zip at D:\server\php5, rename the D:\server\php5\php.ini-dist to php.ini, do not need to configure.
    7. At this time, Apache and PHP have been installed completely. If PHP does not run, please open D:\server\apache\setup.cmd, choose 3, Enter, restart Apache.

    Hereafer, after reinstall the system, just double click D:\server\apache\setup.cmd, choose 1, Enter, install, Apache and PHP will be installed for just one step.

    2 Comments:
    1   Auciou October 09, 2009 at 04:12
    Trackback From Create the development environment of Apache

    As the preceding approach, after create the development environment of Apache, while reinstall the system, you may reinstall Apache and PHP for just one step.

    2   Auciou October 12, 2009 at 23:02
    Trackback From Use Apache as the local virtual hosting to preview the Blog

    All of my present development environments, are based on this background of Apache and PHP, need not to reinstall Apache and PHP after reinstall the system.

    Post a comment:
    Name: (* Required)
    URL:
    Code: q48u58e68s78t88 (* Required)

    Comments:

        Remember? Yes No

    Post a trackback directly

  • Auciou: Programmer

    Peaceful Seabed | My column

    Category:
    Program | Internet | Computer
    Blog Research | PHP | Philosophy


    TDNote | Gratitude | Matnue | Aucist | Aroat | Aufirm | IXNes | Anydiary | Cersta | Coumit | Tovate | Aroat | Aucist | Matnue | Sinvide | Serble | Auciou's column | Peaceful Seabed | Webshu | Sail every day | Sail every day

    Archives:
    January 2011 | January 2010
    December 2009 | October 2009 | September 2009 | April 2009
    December 2008 | November 2008
    May 2007 | April 2007
    August 2005 | July 2005 | June 2005
    May 2005 | April 2005 | March 2005
    February 2005 | January 2005

    Recent articles:
    My Go Daddy hosting is fast
    Create a house with your spouse on the interest
    Pending time which add a domain of hosting, was more than 36 hours
    Diary: 2010-01-15
    Many Linux hostings do not support the mod_expires module
    Figured out, there is still a way
    About the delicated IP of IXWebHosting
    About the QUERY_STRING parameter of URL
    About the ping value and speed of site
    The relation between program and .htaccess file
    Saved a delicated IP
    Judge that does a long-range file exist in PHP
    How to call the Confederation of Planets and the high evolving beings of alien/pray/make a wish
    Use Apache as the local virtual hosting to preview the Blog
    Create the development environment of Apache
    Reinstall Apache and PHP for one step
    The elements of program of preventing the spam and closing IP
    How to close the visit log of ixwebhosting
    Happy Wedding to a friend
    Make an easy Audio/Video converter


  • Copyright © 2007-2025 auciou.com All rights reserved.
    Programmed by Auciou.