WAMP Environment Configuration

Source: Internet
Author: User

MySQL 5.7.12

PHP 7.1

Apache 24

Windows 64bit

Once the code is downloaded,

1, first import the sql.sql of the directory into the database
2. Open the application\config\database.php file and locate the Database configuration field

As follows:
$db [' Default '] [' hostname '] = ' localhost '; General default can be
$db [' Default '] [' username '] = ' root '; Database user Name
$db [' Default '] [' password '] = ' root '; Database Password
$db [' Default '] [' database '] = ' sql '; Database name

In particular, (Tai hang): If you use PHP7 or above, you must use mysqli instead of MySQL

$db [' Default '] [' dbdriver '] = ' mysqli ';

Besides, the modules inside the php.ini also need to be opened.

Extension=php_bz2.dll
Extension=php_curl.dll
Extension=php_fileinfo.dll
Extension=php_ftp.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 is after mbstring as it depends on it
Extension=php_mysqli.dll
; Extension=php_mysql.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

3, login account for the admin password for admin

If only white screen does not have any error prompts, you need to change the production to development, to have errorlog output

Define (' Environment ', ' development ');

By the time Apache was installed,

Need to start with administrator, go to Apache bin directory, install

Httpd.exe-k install-n "Apache24"

Start again

Httpd.exe-k start-n "Apache24"

WAMP Environment Configuration

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.