Php environment setup, php build _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
Tags change settings windows 7 x64
Build a php environment and build a php environment. Php environment setup. php setup 1. tools required: 1) Windows7x642) php5.5VC11x64ThreadSafe browsing 3) apachehttpd2.4 browsing 4) MySQL5.6 browsing 5) phpMyAdmin4.4.1 browsing 2. php environment setup and php setup
1. prepare required tools:

1) Windows 7 x64

2) php5.5 VC11 x64 Thread Safe browsing

3) browse apache httpd2.4

4) browse MySQL5.6

5) phpMyAdmin4.4.1 Browse

2. install 2.1 to install PHP

1) decompress php-5.5.23-win32-vc11-x64.zip to D: \ program_files \ php5.5

2) add D: \ program_files \ php5.5 and D: \ program_files \ php5.5 \ ext to the environment variable

3) copy php. ini-production to php. ini.

4) modify the D: \ program_files \ php5.5 \ php. ini file

Modify extension_dir = "ext" extension_dir = "D:/program_files/php5.5/ext"; extension = php_mbstring.dllextension = php_mbstring.dll (php multi-byte string extension; extension = php_mysql.dllextension = php_mysql.dll modification; extension = php_mysqli.dllextension = php_mysqli.dll

2.2 install Apache

1) decompress httpd-2.4.12-win64-vc11.zip to D: \ program_files \ Apache24

2) Use Notepad to open D: \ program_files \ Apache24 \ conf and modify

  

Modify ServerRoot "C:/Apache24"
ServerRoot "D:/program_files/Apache24"

Modify # ServerName www.example.com: 80 ServerName www.example.com: 80 modify DocumentRoot "c:/Apache24/htdocs" DocumentRoot "D:/program_files/Apache24/htdocs" Modify DirectoryIndex index.html index. php index.htm modify ScriptAlias/cgi-bin/"c:/Apache24/cgi-bin/" ScriptAlias/cgi-bin/"D:/program_files/Apache24/cgi-bin /"

Add at the end of a row

AddType application/x-httpd-php. php. html. htm
LoadModule php5_module "D:/program_files/php5.5/php5apache2_4.dll"

PHPIniDir "D:/program_files/php5.5"

3) install and start the apache service (administrator privilege required)

D:\program_files\Apache24\bin\httpd -k install
net start apache2.4

4) enter http: // localhost: 80 in the browser

It works!
2.3 install MySQL

1) decompress mysql-5.6.24-winx64.zip to D: \ program_files \ MySQL5.6

2) copy my-default.ini to my. ini and modify

 

# For advice on how to change settings please see
# Http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** Do not edit this file. It's a template which will be copied to
# *** Default location during install, and will be replaced if you
# *** Upgrade to a newer version of MySQL.

 

[Mysqld]

 

# Remove leading # and set to the amount of RAM for the most important data
# Cache in MySQL. Start at 70% of total RAM for dedicated servers, else 10%.
# Innodb_buffer_pool_size = 128 M

 

# Remove leading # to turn on a very important data integrity option: logging
# Changes to the binary log between backups.
# Log_bin

 

# These are commonly set, remove the # and set as required.
Basedir = D:/program_files/MySQL5.6
Datadir = D:/program_files/MySQL5.6/data
Port = 3306
Server_id = 1

 


# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# Join_buffer_size = 128 M
# Sort_buffer_size = 2 M
# Read_rnd_buffer_size = 2 M

 

SQL _mode = NO_ENGINE_SUBSTITUTION, STRICT_TRANS_TABLES

3) start MySQL

D:/program_files/MySQL5.6/bin/mysqld.exe --console

4) log on to the MySQL database and create a user

mysql -u root

CREATE USER 'devlop'@'localhost' IDENTIFIED BY '123456';
GRANT ALL PRIVILEGES ON *.* TO 'devlop'@'localhost' WITH GRANT OPTION;

For more MySQL User management, click here

5) install and start the MySQL service (administrator privilege required)

mysqld --install MySQL
net start MySQL
2.4 install phpMyAdmin

1) decompress phpmyadmin-4.4.1.1-all-languages.zip to D: \ program_files \ Apache24 \ htdocs \ phpMyAdmin

2) enter http: // localhost: 80/phpMyAdmin in the browser to log on to MySQL.

If you have any questions, contact QQ: 783713515.

Tips 1. tools required: 1) Windows 7 x64 2) php5.5VC11 x64 Thread Safe browse 3) apache httpd2.4 browse 4) MySQL5.6 browse 5) phpMyAdmin4.4.1 browse 2. install...

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.