Build Apache + PHP + MySQL Server

Source: Internet
Author: User

System Windows 7 SP1 64-bit, build 32-bit server, the following software are selected 32-bit VC11 Runtime zip package, the software needs VC11 Runtime support, the 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 officially 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 Sub TS and NTS (thread safe, no thread safe), with Apache is the version to TS. http://windows.php.net/index.php

MySQL 5.6.23
Free choice of community version. http://dev.mysql.com/downloads/mysql/

PhpMyAdmin 4.3.13
Open source tools for manipulating databases through the Web interface are generally used. http://www.phpmyadmin.net/home_page/downloads.php

Configure Apache, config file httpd.conf,define srvroot "/apache24" to the absolute address of Apache, normal start Apache Open browser can see "It works" default page.
Loading PHP requires adding some information to the configuration file
Phpinidir "X:/xxx/xxx/php55"
LoadModule php5_module "x:/xxx/xxx/php55/php5apache2_ 4.dll "

Configure PHP, copy php.ini-development to php.ini, modify the absolute path of Extension_dir to  ext , and open the desired extension.
php_curl  a bit of a problem unable to load,curl  dependency  openssl,php  by  apache  loading,apache  directory with the same OpenSSL Version. Estimate is the module itself settings, replace Php_curl.dll file resolution, reference http://stackoverflow.com/questions/10939248/ php-curl-not-working-wamp-on-windows-7-64-bit/10977022.
php_ldap  also does not open properly, LDAP relies on  openssl and  LIBSASL, because libsasl  in the php  directory, you can specify apache  load, Add loadfile
"Xxxxxx/php55/libsasl.dll" (absolute path to Libsasl.dll), or copy LIBSASL to system path to resolve

MySQL copy My-default.ini to My.ini, modify absolute path
Basedir = absolute path to MySQL
DataDir = storage path for MySQL data

In addition there is a myphpadmin, copy Config.simple.inc to Config.inc, modify $cfg [' blowfish_secret '] = ' xxx '; (Any character)
This are needed for cookies based authentication to encrypt password in cookies

No problem after you can log into the database with PhpMyAdmin, the new version of the tool does not allow the root empty password, so you want to set the MySQL root password
Http://dev.mysql.com/doc/refman/5.5/en/resetting-permissions.html

Build Apache + PHP + MySQL Server

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.