Build an Apache + PHP + MySQL server

Source: Internet
Author: User
Tags openssl version
Build Apache + PHP + MySQL server system Windows 7 sp1 64-bit, build 32-bit server, the following software select 32-bit vc11 runtime zip package, the software needs to support vc11 runtime, official website (vc11 update 4) http://www.microsoft.com/en-us/download/details.aspx? Id = 30679 download the 32-bit version.

Apache 2.4.12
Apache Http Server official only provides source code (http://httpd.apache.org/docs/current/platform/windows.html#down) http://www.apachehaus.com/cgi-bin/download.plx

PHP 5.5.23
PHP for Windows is divided into TS and ETS (thread-safe, no thread-safe). with Apache, TS is required. Http://windows.php.net/index.php

MySQL 5.6.23
Select the Community version for free. Http://dev.mysql.com/downloads/mysql/

PhpMyAdmin 4.3.13
Open-source tools used to operate databases through web interfaces are generally used. Http://www.phpmyadmin.net/home_page/downloads.php

Configure Apache, the configuration file httpd. conf, Define SRVROOT "/Apache24" is changed to the absolute address of apache. If apache is started normally, the default page of "it works" is displayed in the browser.
To load PHP, add some information to the configuration file.
PHPIniDir "x:/xxx/php55"
LoadModule php5_module "x:/xxx/php55/php5apache2_4.dll"

Configure PHP, copy php. ini-development to php. ini, modify extension_dir to the absolute path of ext, and open the required extension.
Php_curl cannot be loaded due to a problem. curl depends on openssl, and php is loaded by apache. The apache Directory has the same openssl version. It is estimated that the module itself settings, replace php_curl.dll file solution, refer to the http://stackoverflow.com/questions/10939248/php-curl-not-working-wamp-on-windows-7-64-bit/10977022.
Php_ldap cannot be enabled. ldap depends on openssl and libsasl. because libsasl is in the php directory, you can specify apache loading and add Loadfile to httpd. conf.
"Xxxxxx/php55/libsasl. dll" (absolute path of libsasl. dll), or copy libsasl to the system path.

MySQL copies the my-default.ini to my. ini and modifies the absolute path
Basedir = absolute path of mysql
Datadir = path for storing mysql data

In addition, there is a myPhpAdmin file. copy config. simple. inc to config. inc and modify $ cfg ['blowfish _ secret'] = 'XXX'; (any character)
This is needed for cookie based authentication to encrypt password in cookie

You can use phpMyAdmin to log on to the database. The new version of the tool does not allow empty root passwords. Therefore, you need to set the mysql root password.
Http://dev.mysql.com/doc/refman/5.5/en/resetting-permissions.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.