Installing Apache+php5+mysql

Source: Internet
Author: User
Tags phpmyadmin

First, install the Apache2.4

1, download Apache2.4 source files, unzip.

2, Installation Services,

Installation configuration: to the Software installation directory C:\wamp\Apache24\conf, open the httpd.conf file, configure the following,

ServerRoot "C:/wamp/apache24".

DOS Input: CD C:\wamp\Apache24\bin

Install with the command httpd-k installation,

If it appears: (OS 5) Access denied. : ah00369:failed to open the Windows service manager, perhaps do forgot to log in as adminstrator?

Run cmd as an administrator.

3. Configure Apache

To the Software installation directory C:\wamp\Apache24\conf, open the httpd.conf file

 

    ServerName www.abc.com:80   //  Configure domain Names      documentroot  "c:/wamp/www"    //configuration site Storage directory     <Directory  "c:/ Wamp/www ">       #Listen  12.34.56.78:80    listen  80               // 80-Port     <ifmodule dir_module>    directoryindex for all IP on this machine  index.html index.php default.php    //Configure default Home file     < /ifmodule>     <directory  "C:/wamp/www" >    options  Indexes FollowSymLinks    AllowOverride None     Require all granted</directory>      ptions: Specifies which server attributes the server will enable. Value: None, all, indexes           none: Disables the Enable Server feature.           all: Turn on all server features.           indexes: If the home file does not exist, a list of directories is displayed.               configuring Apache to PHP5 Association     # php5 support   loadmodule  php5_module  c:/wamp/php5/ Php5apache2_4.dll   addtype  application/x-httpd-php .php .html .htm    # configure thepath to php.ini   PHPIniDir  "c:/wamp/ PHP5 "

Second, configure PHP

1. Download PHP

VC11 X64 thread Safe (thread safety) is the version that PHP and Apache use

VC11 X64 Non Thread safe (non-thread safe) is the version used by PHP and IIS

2. Unzip the file, copy the file php.ini-development, and rename it to PHP.ini

Configuration file PHP.ini Modification

      ;On windows:               extension_dir =  "C:\wamp\php5\ext"              ;;;;;;;;;;;;;;;;       ; File Uploads ;      ;;;;;;;;;;;;;;;;       upload_tmp_dir = "C:\wamp\www\file"                extension=php_bz2.dll         extension=php_curl.dll        extension=php_ fileinfo.dll        extension=php_gd2.dll         ;extension=php_gettext.dll        ;extension= Php_gmp.dll        ;extension=php_intl.dll        ;extension=php_imap.dll         ;extension=php_interbase.dll        ;extension=php_ldap.dll         extension=php_mbstring.dll         extension=php_exif.dll      ; Must be after  Mbstring as it depends on it        extension =php_mysql.dll        extension=php_mysqli.dll         ;extension=php_oci8_12c.dll  ; use with oracle database  12c instant client        ;extension=php_openssl.dll         ;extension=php_pdo_firebird.dll         extension=php_pdo_mysql.dll        ;extension=php_pdo_oci.dll         ;extension=php_pdo_odbc.dll         ;extension=php_pdo_pgsql.dll        ;extension=php_pdo_ sqlite.dll        ;extension=php_pgsql.dll         ;extension=php_shmop.dll

If curl is not supported, copy the SSLEAY32.DLL,LIBSSH2.DLL,LIBEAY32 from the PHP5 installation directory to the Bin folder in the Apache2.4 directory.

Third, install MySQL,

Download install MySQL, download phpMyAdmin, unzip the file, copy the folder to the above Web root directory c:\wmap\www, open the connection MySQL database by http://www.abc.com/phpmyadmin


Installing Apache+php5+mysql

Related Article

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.