国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Table of Contents
Install Apache2.4 MySql5.7 PHP5.6, apache2.4mysql5.7 in windows environment The words are undoubtedly of great help, because the fool-proof installation and use method saves us a lot of unnecessary trouble. But as a qualified PHP developer, mastering the installation and configuration of PHP MySQL Apache is a must-have ability. Below I will introduce the installation and configuration methods of the current relatively new versions of PHP, Apache, and MySQL one by one.
Discuz forum setup
Discuz! X3 installation graphic tutorial
Home Backend Development PHP Tutorial Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

Jul 12, 2016 am 08:53 AM

Install Apache2.4 MySql5.7 PHP5.6, apache2.4mysql5.7 in windows environment The words are undoubtedly of great help, because the fool-proof installation and use method saves us a lot of unnecessary trouble. But as a qualified PHP developer, mastering the installation and configuration of PHP MySQL Apache is a must-have ability. Below I will introduce the installation and configuration methods of the current relatively new versions of PHP, Apache, and MySQL one by one.

The following article refers to the 3 sources, plus the repair and improvement notes of the problems encountered during the construction process:

《Construction of PHP environment and installation of Discuz!》

http://www.myxzy.com/post-386.html

http://www.discuz.net/thread-3258186-1-1.html

Most of the current one-click installation packages are 32-bit and do not support 64-bit. If used directly on a 64-bit system, an error will be reported, so here I will talk about how to build Apache PHP MySQL on a Windows 64-bit system. Environmental!

The Windows 2008 64-bit Simplified Chinese version I am using for demonstration here, apache, php, and mysql mostly use the 64-bit version. The local environment was created, so I used the default settings.

1. Download PHP, Apache and Mysql software and VC library.

The following are the official website addresses of PHP, Apache and Mysql.

PHP: http://windows.php.net/qa/

Mysql: http://www.mysql.com/downloads/mysql/

Apache: http://www.apachelounge.com/download/win64/

The php, apache, mysql and vc libraries used in this tutorial, download address: Baidu Netdisk

2. Things to note before installation.

Please pay attention to the website where you download PHP and Apache. There are prompts on it to install the Visual C library.

Apache2.4.4 requires VC10 library support, Microsoft Visual C 2010 SP1 Redistributable Package (x64)

PHP5.6 requires VC11 library support, Visual C Redistributable for Visual Studio 2012 Update 1

Note 1: If Apache2.4.4 does not install the VC10 library, the following error will appear.

Error message: "This program cannot be started because MSVCR100.dll is missing from your computer. Try reinstalling the program to solve this problem."

Note 2: If PHP5.5.0beta2 does not install the VC11 library, the following error will appear. Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

3. Install Apache (under the root directory of drive D) Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

(1) Open the httpd.conf file under D:discuzApache24conf, use Notepad to open and edit, make the following modifications and save.

In line 37, ServerRoot "c:/Apache24" is changed to ServerRoot "D:/discus/Apache24"; //The location of the Apache program.

It doesn’t matter if the ServerAdmin on line 204 is changed or not;

Remove the "#" sign in front of ServerName in line 213;

Change DocumentRoot "c:/Apache24/htdocs" on line 237 to DocumentRoot "D:/discus/Apache24/htdocs"; //Root directory of the website

Line 238 is changed to ;

Line 271 DirectoryIndex index.html is changed to DirectoryIndex index.html index.php index.htm //Support more default pages

Line 354 ScriptAlias ??/cgi-bin/ "c:/Apache24/cgi-bin/" is changed to ScriptAlias ??/cgi-bin/ " D:/discus/Apache24cgi-bin/"

Line 370 is changed to

(2) Start Apache.

Start --- Run, enter cmd to open the command prompt. Enter the following commands respectively (press enter on each line)

d:

cd Apache24bin

httpd

If httpd.conf is configured correctly, there will be no prompt after entering httpd and pressing Enter. Do not close the command window (closing the command window means closing Apache), access it through a local browser. If "It works" appears, it means that apache has been installed correctly.

(3) Add Apache to the system serviceInstall Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

Close the httpd command window, otherwise an error will be reported.

Start --- Run, enter cmd, and open a command prompt. Enter the following commands respectively (press enter on each line)

d:

cd Apache24bin

httpd.exe -k install -n "servicename" \Join the service. servicename is the name in the service and can be customized.

If you want to uninstall this service, you must first stop the service, and then enter httpd.exe -k uninstall -n "servicename" to uninstall the service.

4. Install PHP (under the root directory of drive D)

Here PHP5.5.0 is configured with php5apache2_4.dll. There is no need for the PHP.ini file anymore, just use the PHP default.

(1) Open httpd.conf under Apache24conf and add

at the end

# php5 support

LoadModule php5_module "d:/discuz/php/php5apache2_4.dll"

AddHandler application/x-httpd-php .php

# configure the path to php.ini

PHPIniDir "d: /discuz /php"

(2) Restart the Apache server.

Create a new index.php in the website folder D:/discuz/Apache24/htdocs with the content of Save it. When accessing the php information, it means that php has been successfully installed. As shown below.

Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

5. MySQL installation

MySQL installation is simply through the cmd command. (Enter each line)

d:

cd mysqlbin

MySQLd --install MySQL

net start MySQL

In the php directory

Line 730; extension_dir = "ext", remove the preceding ";" and change it to extension_dir ="d:discuzphpext"

Find extension and add the following two lines

extension=php_mysql.dll

extension=php_mysqli.dll

extension=php_mbstring.dll (mainly used here for phpMyAdmin to support Chinese)

Restart httpd to test

;D:discuzphpext

phpMyAdmin 4.1.2Installation

http://www.phpmyadmin.net/home_page/downloads.php official website download

Extract it to your website and directory and rename phpMyAdmin (my website root directory is: D:discuzApache24htdocs)

Find the libraries/config.default.php file in the phpMyAdmin directory

Look for password and find two lines, fill in the mysql user and password

$cfg['Servers'][$i]['password'] = '*****';

$cfg['Servers'][$i]['user'] = 'root';

Set $cfg['PmaAbsoluteUri'] = ''; to the phpMyAdmin directory path (such as: http://localhost/phpMyAdmin/)

$cfg['DefaultLang'] = 'en'; Here you can set the encoding zh

$cfg['DefaultConnectionCollation'] = 'utf8_general_ci'; Set database encoding

Test (both apache and mysql have been started) open http://localhost/phpMyAdmin/ and the following page appears, the installation is successful

Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

Fill in the username and password you set previously and log in

Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

Discuz forum setup

Create a new website and directory folder web under the D drive,

Copy the original phpMyAdmin under D:discuzApache24htdocs to the web

Modify the DocumentRoot in the conf/httpd.conf file under apache to DocumentRoot "D:/web"

changed to

Restart apache

Edit the test file web.php under D:/web file, edit

Open http://localhost/web.php in the browser and the following picture appears successfully

Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

Discuz! X3 installation graphic tutorial

Download x3.1

http://www.comsenz.com/downloads/install/discuzx

2. Unzip and upload the Discuz! Three files are obtained after compression:
 Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial
upload All files under this directory are available program files that we need to upload to the server;
readme directory is the product Introduction, authorization, installation, upgrade, conversion and version update log instructions;
The utility directory is the tools included with the forum, including upgrade programs. Here are two ways to explain: the first is local and the second is space

二、解壓并上傳 Discuz! X3 程序到服務(wù)器且修改相應(yīng)目錄權(quán)限?
1、上傳 Discuz! X3 程序到服務(wù)器上?
解壓縮得到如下圖所示的三個(gè)文件:?
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial?
upload 這個(gè)目錄下面的所有文件是我們需要上傳到服務(wù)器上的可用程序文件;?
readme 目錄為產(chǎn)品介紹、授權(quán)、安裝、升級(jí)、轉(zhuǎn)換以及版本更新日志說明;?
utility 目錄為論壇附帶工具,包括升級(jí)程序。

這里分開兩種方式說明:第一種本地,第二種空間

(1)復(fù)制upload里面的所有文件到web下面?
(2)如果是上傳到空間則將其中 upload 目錄下的所有文件使用 FTP 軟件以二進(jìn)制方式

(常見 FTP 軟件二進(jìn)制的設(shè)置方法:點(diǎn)擊查看詳細(xì)說明)上傳到空間。如下圖所示:?
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

(1) Copy all the files in upload to the web
(2) If uploading to space, use FTP software to convert all the files in the upload directory to binary format (Common FTP software binary setup methods: click to view detailed instructions) Upload to space. As shown below:
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

(1) Enter http://localhost/install/ and the installation directory will appear

Start a new installation (where http://www.domain.com/bbs is your site access address)
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial
After reading the authorization agreement, click "I agree" and the system will Automatically check the environment and file directory permissions, as shown below:
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial
The detection is successful, click "Next" to enter the detection server environment and set up UCenter interface, as shown in the figure below: Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial
1. Select "New installation of Discuz!
2. Select "Only install Discuz! It is UCenter version 1.6.0. If the previously installed UCenter Server has not been upgraded, it is usually version 1.5.1 or 1.5.2. You need to upgrade Ucenter to version 1.6.0 first, otherwise the installation program will prompt an error and cannot continue. . Here we take a new installation of Discuz!

(2)上傳完畢后,開始在瀏覽器中安裝 Discuz! X3,在瀏覽器中運(yùn)行?http://www.domain.com/bbs/install/

開始全新安裝(其中http://www.domain.com/bbs?為你的站點(diǎn)訪問地址)?
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial?
閱讀授權(quán)協(xié)議后點(diǎn)擊“我同意”,系統(tǒng)會(huì)自動(dòng)檢查環(huán)境及文件目錄權(quán)限,如下圖所示:?
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial?
檢測(cè)成功,點(diǎn)擊“下一步”,即進(jìn)入檢測(cè)服務(wù)器環(huán)境以及設(shè)置 UCenter 界面,如下圖所示:?
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial?
1、選擇“全新安裝 Discuz! X (含 UCenter Server)”?
如果您之前沒有安裝過我們的產(chǎn)品,需要全新安裝的話,請(qǐng)選擇此項(xiàng)。?
2、選擇“僅安裝 Discuz! X (手工指定已經(jīng)安裝的 UCenter Server )”?
如果您之前安裝過我們的產(chǎn)品,現(xiàn)在只是升級(jí)的話,請(qǐng)選擇此項(xiàng)并保證之前的 UCenter 是 UCenter 1.6.0 版本,如果之前安裝的 UCenter Server 沒有進(jìn)行升級(jí)操作的話,一般為 1.5.1 或 1.5.2 版本,您需要首先升級(jí) Ucenter 到 1.6.0版本, 否則安裝程序會(huì)提示錯(cuò)誤,無法繼續(xù)。這里以全新安裝 Discuz! X 為例。

新建數(shù)據(jù)庫

Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

輸入密碼

Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

創(chuàng)建數(shù)據(jù)庫

mysql> create database?discus;

discus (數(shù)據(jù)庫名稱,可以自己指定)

出現(xiàn)Query OK, 1 row affected (0.02 sec) (說明成功)

退出mysql

exit;

點(diǎn)擊“下一步”,進(jìn)入安裝數(shù)據(jù)庫的界面,如下圖所示:?
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

填寫好 Discuz! X 數(shù)據(jù)庫信息及管理員信息。?
點(diǎn)擊“下一步”,系統(tǒng)會(huì)自動(dòng)安裝數(shù)據(jù)庫直至完畢,如下圖所示:?
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial?
安裝成功后,出現(xiàn)歡迎開通 Discuz!云平臺(tái)以及 Discuz! 應(yīng)用中心的安裝的界面:?
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial?
如果您想馬上開啟云平臺(tái),可以點(diǎn)擊“開通 Discuz!云平臺(tái)”,創(chuàng)始人登錄站點(diǎn)后臺(tái),如下圖所示:?
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial?
開通即可,如果暫時(shí)不想開通 Discuz!云平臺(tái)可以選擇“暫不開通”需要開通的時(shí)候登錄后臺(tái)開通即可。?
如果您想馬上安裝 Discuz! 應(yīng)用的話,可以點(diǎn)擊“馬上去裝應(yīng)用”,創(chuàng)始人登錄站點(diǎn)后臺(tái),如下圖所示:?

?

選擇要安裝的應(yīng)用,安裝即可?
安裝完畢后進(jìn)入 Discuz! X 首頁查看網(wǎng)站:?
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial

至此,Discuz! X3 已經(jīng)成功地安裝完畢!您可以登錄 Discuz! X 站點(diǎn)并開始設(shè)置了。

(2) After the upload is completed, start installing Discuz! X3 in the browser and run http://www.domain.com/bbs/install/
Create a new database Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial Enter password Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial Create database mysql> create database discuss; discus (database name, you can specify it yourself) Query OK, 1 row affected (0.02 sec) appears (indicating success) Exit mysql exit; Click "Next" to enter the database installation interface, as shown below:
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial Fill in the Discuz!
Click "Next" and the system will automatically install the database until completion, as shown in the figure below:
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial
After successful installation, a message will appear welcoming you to activate the Discuz! cloud platform and Discuz! application. Center installation interface:
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial
If you want to open the cloud platform immediately, you can click "Open Discuz! Cloud Platform" and the founder logs in to the backend of the site, as shown in the figure below:
Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial
Just activate it. If you don't want to activate Discuz! Cloud Platform for the time being, you can choose "Don't activate it temporarily". When you need to activate it, just log in to the backend and activate it.
If you want to install the Discuz! application immediately, you can click "Install the application now" and the founder logs in to the backend of the site, as shown below: Select the application you want to install and install it
After installation, enter Discuz! ://www.bkjia.com/uploads/allimg/160421/1A0545033-18.gif" alt="Install Apache2.4 MySql5.7 PHP5.6 under windows environment, apache2.4mysql5.7_PHP tutorial" width="461" height="263" border="0" />
At this point, Discuz! X3 has been successfully installed! You can log into the Discuz!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1122387.htmlTechArticleInstall Apache2.4 MySql5.7 PHP5.6, apache2.4mysql5.7 under windows environment. It is consistent to learn PHP before. Only use the phpStudy integrated development environment, which is undoubtedly very helpful for novices, because...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What are some best practices for versioning a PHP-based API? What are some best practices for versioning a PHP-based API? Jun 14, 2025 am 12:27 AM

ToversionaPHP-basedAPIeffectively,useURL-basedversioningforclarityandeaseofrouting,separateversionedcodetoavoidconflicts,deprecateoldversionswithclearcommunication,andconsidercustomheadersonlywhennecessary.StartbyplacingtheversionintheURL(e.g.,/api/v

How do I implement authentication and authorization in PHP? How do I implement authentication and authorization in PHP? Jun 20, 2025 am 01:03 AM

TosecurelyhandleauthenticationandauthorizationinPHP,followthesesteps:1.Alwayshashpasswordswithpassword_hash()andverifyusingpassword_verify(),usepreparedstatementstopreventSQLinjection,andstoreuserdatain$_SESSIONafterlogin.2.Implementrole-basedaccessc

What are the differences between procedural and object-oriented programming paradigms in PHP? What are the differences between procedural and object-oriented programming paradigms in PHP? Jun 14, 2025 am 12:25 AM

Proceduralandobject-orientedprogramming(OOP)inPHPdiffersignificantlyinstructure,reusability,anddatahandling.1.Proceduralprogrammingusesfunctionsorganizedsequentially,suitableforsmallscripts.2.OOPorganizescodeintoclassesandobjects,modelingreal-worlden

What are weak references (WeakMap) in PHP, and when might they be useful? What are weak references (WeakMap) in PHP, and when might they be useful? Jun 14, 2025 am 12:25 AM

PHPdoesnothaveabuilt-inWeakMapbutoffersWeakReferenceforsimilarfunctionality.1.WeakReferenceallowsholdingreferenceswithoutpreventinggarbagecollection.2.Itisusefulforcaching,eventlisteners,andmetadatawithoutaffectingobjectlifecycles.3.YoucansimulateaWe

How can you handle file uploads securely in PHP? How can you handle file uploads securely in PHP? Jun 19, 2025 am 01:05 AM

To safely handle file uploads in PHP, the core is to verify file types, rename files, and restrict permissions. 1. Use finfo_file() to check the real MIME type, and only specific types such as image/jpeg are allowed; 2. Use uniqid() to generate random file names and store them in non-Web root directory; 3. Limit file size through php.ini and HTML forms, and set directory permissions to 0755; 4. Use ClamAV to scan malware to enhance security. These steps effectively prevent security vulnerabilities and ensure that the file upload process is safe and reliable.

How can you interact with NoSQL databases (e.g., MongoDB, Redis) from PHP? How can you interact with NoSQL databases (e.g., MongoDB, Redis) from PHP? Jun 19, 2025 am 01:07 AM

Yes, PHP can interact with NoSQL databases like MongoDB and Redis through specific extensions or libraries. First, use the MongoDBPHP driver (installed through PECL or Composer) to create client instances and operate databases and collections, supporting insertion, query, aggregation and other operations; second, use the Predis library or phpredis extension to connect to Redis, perform key-value settings and acquisitions, and recommend phpredis for high-performance scenarios, while Predis is convenient for rapid deployment; both are suitable for production environments and are well-documented.

What are the differences between == (loose comparison) and === (strict comparison) in PHP? What are the differences between == (loose comparison) and === (strict comparison) in PHP? Jun 19, 2025 am 01:07 AM

In PHP, the main difference between == and == is the strictness of type checking. ==Type conversion will be performed before comparison, for example, 5=="5" returns true, and ===Request that the value and type are the same before true will be returned, for example, 5==="5" returns false. In usage scenarios, === is more secure and should be used first, and == is only used when type conversion is required.

How do I perform arithmetic operations in PHP ( , -, *, /, %)? How do I perform arithmetic operations in PHP ( , -, *, /, %)? Jun 19, 2025 pm 05:13 PM

The methods of using basic mathematical operations in PHP are as follows: 1. Addition signs support integers and floating-point numbers, and can also be used for variables. String numbers will be automatically converted but not recommended to dependencies; 2. Subtraction signs use - signs, variables are the same, and type conversion is also applicable; 3. Multiplication signs use * signs, which are suitable for numbers and similar strings; 4. Division uses / signs, which need to avoid dividing by zero, and note that the result may be floating-point numbers; 5. Taking the modulus signs can be used to judge odd and even numbers, and when processing negative numbers, the remainder signs are consistent with the dividend. The key to using these operators correctly is to ensure that the data types are clear and the boundary situation is handled well.

See all articles