Apache2 + php5 + mysql under the windows installation and configuration diagrams

2010-02-16  来源:本站原创  分类:PHP  人气:268 

First ready software:

Download the official Apache: apache_2.0.55-Win32-x86-no_ssl.msi , more versions here ;

Download the official php: PHP-5.0.5-win32.zip , more mirror download address , more version of the download ;

Download the official mysql: MySQL-4.1.14-win32.zip , more mirror download address , more versions to download .

First, install Apache, a common web server configuration successful

Download a good run " apache_2.0.55-Win32-x86-no_ssl.msi ", the following interface appears:

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Apache HTTP Server 2.0.55 appears the installation wizard interface, point "Next" to continue

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Confirmation of agreement to license the software installation regulations, select "I accept the terms in the license agreement", point "Next" to continue

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Apache install Windows on the use of Information, please read the finished, press the "Next" to continue

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Set system information, fill in the Network Domain under your domain name (eg: goodwaiter.com), fill in the Server Name under the name of your server (for example: www.goodwaiter.com, is the host name plus domain name), in Administrator's Email Address Enter system administrator contact under the e-mail address (for example: [email protected]), the three information purposes only, including contact e-mail address will be provided when the system fails to visitors, three pieces of information are free to fill out, also line invalid. Here are two options, the picture chosen for the system to all users to install, use the default port 80, and as a system service starts automatically; the other is only the current user to install, use port 8080, manual start. General options as shown. Press "Next" to continue. ]

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Select the type of installation, Typical is the default installation, Custom custom installation for users, we here choose Custom, there are more options. Press "Next" to continue

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Interface, select the installation options appears, as shown, left click on "Apache HTTP Server 2.0.55", select "This feature, and all subfeatures, will be installed on local hard drive.", That "this part, and subordinate sub-parts, all installed on the local hard disk. " Click "Change ...", manually specify the installation directory.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

I here choose to install in the "D: \", you self-selected, generally not recommended to install the operating system where the disk, so that the operating system is broken, the restore operation to Apache configuration files are removed. Select "OK" to continue.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Back just interface, select "Next" to continue.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Confirm correct installation options, if you think it will check again, you can point "Back" step by step back to check. Point "Install" to embark on the front set of installation options to install.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Interface is being installed, please wait until the following screen.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Installation Wizard completed successfully, then the status bar should appear on the bottom right corner of the green icon below that Apache service is running, press "Finish" end of the Apache Software Installation

Let us know about this icon, it is convenient, left-click the icon, there are interfaces, there is "Start (Start)", "Stop (stop)", "Restart (restart) the" three options, can easily install the Apache server on the operation.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Well, now we have to test it by default configured to run the web interface, in the IE address bar fight "http://127.0.0.1", point "to", you can see the following page that Apache server has been installed successfully.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Now configure the Apache server, make it better for our service, in fact, if you do not configure your installation directory under the Apache2 \ htdocs folder is the default web site root directory, put files in there to do. Here we still have to configure if you have any questions or modify the configuration will always be, as shown, "Start," "All Programs", "Apache HTTP Server 2.0.55", "Configure Apache Server", " Edit the Apache httpd conf Configuration file ", click Open.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

XP, Notepad with some minor changes, a very useful feature is the ability to see the contents of the file line, column location, as shown below, click "View", check "Status Bar" on lower right corner of the interface more markers, "Ln 78, Col 10" means "line 78, column 10", so you can quickly locate the file for easy interpretation. Of course, you can also "edit", "Find" enter the keyword to quickly locate. Configuration file changes every time, saved, Bixu in effect after restart Apache server, you can talk with the Xiao Qian Mian icon Fangpian control server Suishi "restart."

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Now configure the Apache server started, "Ln 228", or search keyword "DocumentRoot" (that is, the web root) and find the place as shown below, and then "" the address into your Web root directory, address According to the map format, please write, mainly general document addresses "\" in the Apache where we wanted to change "/."

Apache2 + php5 + mysql under the windows installation and configuration diagrams

"Ln 253", similarly, you can find "

Apache2 + php5 + mysql under the windows installation and configuration diagrams

"Ln321", DirectoryIndex (directory, that is, only the specified directory in the case, the default display the file name), you can add a lot, the system will give priority to the order from left to right shows a single-byte characters separated by a space , for example, some Web site's home page is index.htm, where the cursor is on with "index.htm" file name is arbitrary, does not have to "index.html", such as "test.php" and so on, can.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

There is a choice configuration options may be configured before, it seems that over the amendment, no configuration, and is mandatory for all the language of the output file encoding, html file with language tags (this is to set the document language gb2312) of will be cast. If you open the page appears garbled, please check the website there is no language of the html tags, and if not, can add up the normal show. The "# DefaultLanguage nl" in front of "#" removed the "nl" change you want to force the output of the language, Chinese is "zh-cn", save, close.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Well, a simple Apache configuration is now over, and now use small icons the previous restart, all the configuration take effect, and that your site becomes a web server, if you add a firewall, open 80 or 8080 port, or allow the Apache process to access the network, otherwise I can not access. If you have a public network IP (ADSL or dial-up Internet generally are), you can invite friends to all be able to access the Internet using http:// your IP address (IP address lookup can access http://www.goodwaiter. COM , within the query that is) your website up; if you do not have public network IP, also within the network can be LAN IP address to other users, allowing them to your internal network through http:// IP address, access your website.

Second, php installation to module approach will combine php with apache web server to your server support php script

Php install the downloaded file php-5.0.5-Win32.zip right decompression.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Specify the location of decompression, I set "D: \ php"

Apache2 + php5 + mysql under the windows installation and configuration diagrams

View the folder after extracting the contents, find the "php.ini-dist" file, rename it to "php.ini", open the editor, find the following diagram where, Ln385, there is a "register_globals = Off" value This value is used to open the global variables, such as the value of the form gets here, if this value is set to "Off", can only use the "$ _POST ['variable name'],$_ GET [' variable name '] "and so to get sent over the value, if set to" On ", you can directly use the" $ variable name "to get sent over the value, of course, set to" Off "relatively safe, people will not easily page transmission of data between interception. This value is changed to "On" to see if their feeling is important to safety or convenience important?

Apache2 + php5 + mysql under the windows installation and configuration diagrams

There is also a place to edit, function is to enable php to directly call the other modules, such as access to mysql, as shown below, Ln563, choose to load the module, remove the front ";", it says to load this module, and loaded more also take up more resources, but also many do not where to go, like I use mysql, it is imperative to "; extension = php_mysql.dll" before ";" removed. All the module files are extracted on the php directory "ext", I am here is a screenshot of all loaded modules can be loaded up, and in front of ";" not removed is because the "ext "directory by default without this module loaded can not find the file and error prompts. Here are just for reference, generally do not need to load so much, need to add on to, and edited and saved, close.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

If the previous step loading of other modules, we must specify the location of the module, or when prompted to restart Apache, "can not find the specified module" error, here presents a simple way to directly php installation path, inside ext path to the windows system path specified in the - in the "My Computer" on the right, "Properties", select "Advanced" tab, click the "Environment Variables" in "System Variables" to find "Path" variable, choice, Double-click or click the "Edit" will "; D: \ php; D: \ php \ ext" value added to the back of the original, of course, one of the "D: \ php" is my installation directory, you want it to their php installation directory, as shown below, all OK. System path to restart the computer after adding a good to take effect, you can now restart, the software can be installed or configured at all after a good restart.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Php module will now begin to form combined with Apache, so php into Apache, according to the method previously open Apache's configuration file, Ln 173, found here, added to the selected two lines as shown, the first line "LoadModule php5_module D: / php/php5apache2.dll "refers to the way load module php, the second line" PHPIniDir "D: / php" "is specified in php configuration file php.ini location, is, of course, one of the" D : / php "to change your previous choices php unzipped.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Or the Apache configuration file, Ln 757, by adding "AddType application / x-httpd-php. Php", "AddType application / x-httpd-php. Html" two lines, you can also add more substance is added to perform php file type, such as you to put on a line "AddType application / x-httpd-php. htm", then. htm file can also run php program, you can even add the line "AddType application/x-httpd- php. txt ", so that plain text file format can also run the php program.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Said before the default directory index file can change it, because it added a php, some files directly saved as. Php, we can also "index.php" default index file, a row on their own priorities I was the first place. Editing completed, save, close.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Now, php installation, integration with Apache already been completed, with a small icon in lower right corner of the screen restart Apache, your Apache server to support php.

Third, mysql installation, and php, Apache combined

Open the downloaded installation file mysql -4.1.14-win32.zip MySQL , double-click unzip, run "setup.exe", the following interface appears

Apache2 + php5 + mysql under the windows installation and configuration diagrams

mysql installation wizard starts, press the "Next" to continue

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Select the type of installation, there is "Typical (default)", "Complete (full)", "Custom (user defined)" three options, we choose "Custom", there are more options, but also to facilitate the installation process familiar

Apache2 + php5 + mysql under the windows installation and configuration diagrams

In the "Developer Components (developer section)" on the left-click, select "This feature, and all subfeatures, will be installed on local hard drive.", That "this part, and the subordinate sub-parts, all installed in the local hard disk. " In the above "MySQL Server (mysql server)", "Client Programs (mysql client program)", "Documentation (document)" has done this to ensure that all the files installed. Click "Change ...", manually specify the installation directory.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Fill in the installation directory, I was "D: \ mysql", is also not recommended on the same partition with the operating system, this can prevent the system backup restore, the data is cleared. Press "OK" to continue.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Back just interface, according to "Next" to continue.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Confirm previous settings, if there is wrong, according to "Back" to return redo. Press "Install" to start the installation.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Being installed, please wait until the following interface

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Here is asks you to register a mysql.com account, or use an existing account login mysql.com, generally do not need, and click the "Skip Sign-Up", press "Next" skip this step.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Software installation is now complete, and there above the interface, there is a good feature, mysql configuration wizard, do not have to, as before, his hand configuration my.ini, and the "Configure the Mysql Server now" marked hook in front of the point "Finish" the end of software installation and start the mysql configuration wizard.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

mysql configuration wizard start screen, press the "Next" to continue.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Select configuration, "Detailed Configuration (Manual exact configuration)", "Standard Configuration (standard configuration)," We chose "Detailed Configuration", to facilitate the configuration process familiar.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Select the server type, "Developer Machine (development test classes, mysql occupy very little resources)", "Server Machine (server type, mysql take up more resources)", "Dedicated MySQL Server Machine (dedicated database server, mysql occupy all the available resources) ", we choose according to their type, the general election" Server Machine ", not too little, it will not fill.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Select the general use of mysql database, "Multifunctional Database (Universal multi-function type, good)", "Transactional Database Only (server type, focused on transaction processing, general)", "Non-Transactional Database Only (non-transactional, more simple, mainly to do some monitoring, and the numbers used for MyISAM data type of support is limited to non-transactional), with its own purpose, choice, and I here select "Transactional Database Only", press "Next" to continue.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Of the InnoDB Tablespace configuration is to select a database file for the InnoDB storage space, if amended, to remember location, reloading the same time to choose the place, otherwise may cause database corruption, of course, make a backup of the database on no problem, no details here. I do not have changes, use the default location, simply press "Next" to continue

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Select your general mysql site visits, the number of simultaneous connections, "Decision Support (DSS) / OLAP (20 or so)", "Online Transaction Processing (OLTP) (500 or so)", "Manual Setting (Manual setting , to lose a few) ", I've selected" Online Transaction Processing (OLTP) ", its own server, should be enough, press" Next "to continue

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Whether to enable TCP / IP connection, set the port, if not enabled, you can only access their own machine mysql database, and enabled me to hook in front of marked, Port Number: 3306, press "Next" to continue

Apache2 + php5 + mysql under the windows installation and configuration diagrams

This is more important is the language code of the mysql set default database, the first is the Spanish code, the second is a common multi-byte utf8 encoding, not our common coding, where the third choice, and then Character Set where the choice or fill in the "gbk", of course, can also be used "gb2312", the font difference is gbk capacity, including all the gb2312 characters, and with the traditional Chinese characters, and other mess of words - to use mysql's When, in the implementation of data manipulation command before running a "SET NAMES GBK;" (running time on the trip, GBK can be replaced by other values, depending on where the settings may be), you can normally use Chinese characters (or other text), and If not properly display Chinese characters. Press "Next" to continue.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Choose whether to install the windows mysql service, you can also specify the Service Name (Service ID name), whether to mysql's bin directory to Windows PATH (to join, you can directly use the bin file under, instead of that directory name, such as connection, "mysql.exe-uusername-ppassword;" on it, not that mysql.exe complete address, it is convenient), I've marked the hook all, Service Name change. Press "Next" to continue.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

This step is asked to modify the default root user (super management) password (default is blank), "New root password" If you want to modify, enter the new password in this (if it is composing, and set a password before, here to change your password may be wrong, please leave blank, and "Modify Security Settings" in front of the hook removed, install the configuration be modified after the completion of the password), "Confirm (lose again)" within the reloading time, to prevent the wrong . "Enable root access from remote machines (whether to allow root user to other machines on the landing, if you want security, do not hook on, if convenient, to hook on it)." Finally "Create An Anonymous Account (Create a new anonymous user, anonymous user can connect to the database, not operational data, including the query)", are generally not hook up, is set up, according to "Next" to continue.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Confirm the setting is correct, if incorrect, press "Back" to return checks. Press "Execute" the settings take effect.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Is set up, press "Finish" end of the mysql installation and configuration - There is a more common mistake is not "Start service", usually appears in the previously installed mysql server, the solution, first ensure that the previously installed completely uninstall the mysql server; not work, check whether the above mentioned step, before the password is modified, according to the above operations; If still not, the mysql installation directory under the data folder backup, then delete the installation completed, it will install the data files generated folders deleted, moved back up the data File folder back and restart the mysql service on it, in which case, you may need to check the database, and then repair Yi Ci, prevent data errors.

With Apache and php combination, as has been mentioned, here to tell you, in the php installation directory, locate the previously re-named and edited php.ini, as shown below, Ln563, the "; extension = php_mysql.dll" before ";" remove, load mysql module. Save, closed, restart apache on it. Here you can select the other to load the module, remove the front ";", it says to load this module, and loaded more also take up more resources, but also many do not where to go. All the module files are extracted on the php directory "ext", I am here is a screenshot of all loaded modules can be loaded up, and in front of ";" not removed is because the "ext "directory by default without this module loaded can not find the file and error prompts. Here are just for reference, generally do not need to load so much, need to add on to, and edited and saved, close.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Similarly, after loading the module, we must specify the location of the module, or when prompted to restart Apache "specified module not found" error, here the most simple method is introduced directly to php installation path, inside ext specify the path to windows system path - in the "My Computer" on the right, "Properties", select "Advanced" tab, click the "Environment Variables" in "System Variables" to find "Path" variable, select, double-click or click the "Edit" will "; D: \ php; D: \ php \ ext" value added to the back of the original, of course, one of the "D: \ php" is my installation directory, you want to change it for their php installation directory, as shown below, all OK. System path to restart the computer after adding a good to take effect, you can now restart, the software can be installed or configured at all after a good restart.

Apache2 + php5 + mysql under the windows installation and configuration diagrams

Original: http://www.isblog.cn/user1/1032/archives/2006/3127.html

相关文章
  • Apache2 + php5 + mysql under the windows installation and configuration diagrams 2010-02-16

    First ready software: Download the official Apache: apache_2.0.55-Win32-x86-no_ssl.msi , more versions here ; Download the official php: PHP-5.0.5-win32.zip , more mirror download address , more version of the download ; Download the official mysql:

  • Apache + php + mysql under the windows installation and configuration diagrams (change) 2010-04-14

    First ready software: Download the official Apache: apache_2.0.55-Win32-x86-no_ssl.msi , more versions here ; Download the official php: PHP-5.0.5-win32.zip , more mirror download address , more version of the download ; Download the official mysql:

  • Apache + php + mysql in the windows installation and configuration diagrams 2011-04-25

    http://tech.163.com/06/0206/11/299AMBLT0009159K.html

  • Apache in the windows installation and configuration diagrams 2011-08-22

    First, install Apache, a common web server configuration successful Download a good run " apache_2.0.55-Win32-x86-no_ssl.msi ", the following interface: Appear Apache HTTP Server 2.0.55 installation wizard interface, "Next" to continue

  • Reprinted: Xp under the Apache + PHP + MySQL + Zend Optimizer + phpMyAdmin Installation and Configuration 2010-05-19

    Xp under the Apache + PHP + MySQL + Zend Optimizer + phpMyAdmin Installation and Configuration <br /> Published :2009-07-25 23:55:12 Views: 897 Posted: superadmin set the font medium and small] [ http://www.tzlink.com/info/show.php?aid=9420 First, t

  • cygwin under windows installation and configuration 2009-09-14

    For the use of Windows operating system as a development platform at the same time, like a friend type unix environment (Windows is not the most convenient development environment), this is installed in the Cygwin environment steps Rails Cygwin insta

  • memcached (windows) installation and configuration 2011-07-29

    Keywords: memcached (windows) installation and configuration 1 download windows version of Memcached: http://code.jellycan.com/memcached/ (2) after extracting the directory on the hard disk, such as: D: \ memcached. And then Run, type cmd into the co

  • Installed in CentOS5.4 Apache2 + PHP5 + MySQL (LAMP) 2010-06-13

    LAMP is Linux, Apache, Mysql, PHP stands for. This tutorial will explain you how to install a CentOS5.3 server with PHP5 (mod_php) and Mysql support for Apache2 web server. 1 In this tutorial, I will use the host IP address is 192.168.0.100. These se

  • [Script] Ubuntu site to quickly set up the environment apache2.php5.mysql.phpmyadmin 2011-01-03

    # In Ubuntu, you only need to write a shell script, then change the php configuration # when the two of them can open the php.ini file, the need to change the following two, can be removed will be # # extension = msql.dll # Extension = msql.so # Spec

  • In the Fedora install Apache2 + PHP5 + MySQL (LAMP) 2011-05-29

    LAMP is a L inux, A pache, M ySQL, P HP's initials. This tutorial will teach you how a Fedora 12 installed on the server Apache2web Server + PHP (mod_php) + MySQL. I have tested correctly, you can rest assured that use. 1. Introduction In this tutori

  • [Script] Ubuntu environment to quickly set up apache2.php5.mysql.phpmyadmin website 2011-01-03

    # On Ubuntu, you need only write a shell script, then change the php configuration # when two of the php.ini file can be opened, you need to change the following two, you can remove the # # extension = msql.dll # Extension = msql.so # Specific script

  • Ubuntu安装Apache2+PHP5+MySQL 2012-10-12

    1.安装mysql apt-get install mysql-server 2.配置mysql (1).设置root用户可以远程访问 mysql> GRANT ALL PRIVILEGES ON *.* TO [email protected]"%" IDENTIFIED BY "你的密码"; mysql> flush privileges; (2).修改/etc/mysql/my.cnf,需要root用户权限. 找到文件中的:bind-address=127.0.0.1在其

  • ubuntu10.04 install apache2, php5, mysql, phpMyAdmin 2011-04-16

    To facilitate the operation, you need root privileges to users to switch to the bottom, su root -p then enter the password. 1.ubuntu install mysql apt-get install mysql-server mysql-client Middle of the process will prompt you for root password and C

  • Ubuntu 12.04 server 安装 Apache2+PHP5+MySQL 2013-10-14

    LAMP是Linux web服务器组合套装的缩写,分别是Apache+MySQL+PHP.此教程教大家如何在Ubuntu12.04 LTS server 上安装Apache2服务器,包括PHP5(mod_php)+MySQL. 此教程中使用的相关IP等设置,在你的环境中要做相应修改. 1 我们使用root账户进行安装,首先切换到root账户,输入命令: sudo su 2 安装 MySQL 5 输入命令: apt-get install mysql-server mysql-client 安装过

  • Ubuntu 13.04 server 安装 Apache2+PHP5+MySQL 2014-01-04

    LAMP是Linux web服务器组合套装的缩写,分别是Apache+MySQL+PHP.此教程教大家如何在Ubuntu 13.04 LTS server 上安装Apache2服务器,包括PHP5(mod_php)+MySQL. 此教程中使用的相关IP等设置,在你的环境中要做相应修改. 1 我们使用root账户进行安装,首先切换到root账户,输入命令: sudo su 2 安装 MySQL 5 输入命令: apt-get install mysql-server mysql-client 安装

  • wxPython development environment under windows installation and configuration 2010-03-19

    To prepare the installation files: Python and wxPython Runtime Environment installed Installing python-2.6.2.msi, wxPython2.8-win32-unicode-2.8.10.1-py26.exe wxPython2.8-win32-docs-demos-2.8.10.1.exe and py2exe-0.6.9.win32-py2.6.exe python installati

  • SVN server under Windows installation and configuration 2008-10-07

    Preparation First to download the Windows version of the SVN server (using the search engine so you will not provide a download address), and here I to svn-win32-1.4.3 unzip the ZIP version, for example, extract it to the target directory, for exampl

  • windows installation and configuration under the wxpython 2010-02-23

    See laochake brother's article, which in themselves make a record, the article link: http://laochake.javaeye.com/blog/438667

  • emacs under windows installation and configuration, the first day of my emacs 2011-05-09

    My emacs: First day: Download http://www.gnu.org/software/emacs/ emacs-22.3-bin-i386 Configuration: 1, in D under the root directory create a new folder, named Emacs22.3 (it can be other path, with personal preference may be), the emacs-22.2-bin-i386

  • SQL Server 2008 installation and configuration diagrams 2011-04-22

    SQL Server 2008 we have experience from the many new features, but for SQL Server 2008 installation, or use the map to speak better. This article from the SQL Server 2008 installation will start with. This was originally intended to play in the first