Home php教程 php手册 配置Windows Server2008+iis+php+mysql所需下载安装包

配置Windows Server2008+iis+php+mysql所需下载安装包

Jun 06, 2016 pm 07:43 PM
windows Configuration

最近一个朋友让我帮忙给配置服务器iis+php+mysq 环境,遇到了很多问题,特此就在这里说一下。小弟只是在windwos2003 和windwos XP下配置过iis+php+mysql,去朋友那一看,原来是一个windows Server2008系统的服务器,本以为和windows2003没什么区别,却找来找

最近一个朋友让我帮忙给配置服务器iis+php+mysq 环境,遇到了很多问题,特此就在这里说一下。小弟只是在windwos2003 和windwos XP下配置过iis+php+mysql,去朋友那一看,原来是一个windows Server2008系统的服务器,本以为和windows2003没什么区别,却找来找去的配置不上,最后自己在家装了一台windows2008系统,研究了一天,终于配置好了iis+php环境(如有什么地方不对,还请各位大牛给纠正一下),具体操作如下:

 

 

配置Windows Server2008+iis+php+mysql所需下载安装包

1、mysql 下载地址 http://pan.baidu.com/s/1hq1c0io
2、Navicat 下载地址 http://pan.baidu.com/s/1pJGxnVd (为mysql管理工具,如果对mysql命令比较熟悉也可不下载安装)
3、php-5.2.1-Win32.zip 下载地址 http://pan.baidu.com/s/1pJuc8YZ
一、iis安装(iis安装)
1、打开控制面板(开始--控制面板)
2、点开程序(程序)
3、打开或关闭Windows功能
4、(左侧)角色
5、(右侧)添加角色
6、下一步
7、选择Web服务器(IIS)【记着勾选里面的东西】
8、勾选后点击安装
9、等待
10、安装成功关闭

二、配置iis的php环境
1、将php-5.2.1-Win32.zip 解压到C:\php(此目录可以自己决定,只要在后面的配置中写成自己的目录就行)
2、php.ini-development修改为php.ini
3、设置php模块路径;查找extension_dir = "./" 修改为 extension_dir = "C:\php\ext"
4、设置时区为中国时区;查找;date.timezone = 修改为 date.timezone =PRC
5、开启GET数据调用;查找register_globals = Off 修改为 register_globals = On
6、开启以CGI方式运行php;查找; cgi.force_redirect = 1 修改为 cgi.force_redirect = 0
7、查找; fastcgi.impersonate = 1; 修改为 fastcgi.impersonate = 1
8、查找;cgi.rfc2616_headers = 0 修改为 cgi.rfc2616_headers = 1
9、将下面的dll钱的 分号(;)去掉
;extension=php_dba.dll
;extension=php_gd2.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_pdo.dll
;extension=php_pdo_mysql.dll
10、保存php.ini
11、将php.ini 复制到 C:\Windows 目录下
12、将C:\php目录下的libmySQL.dll和php5ts.dll 复制到 C:\Windows\System32目录下

13、配置iis,打开控制面板
14、打开管理工具
15、打开Internet信息服务(IIs)管理器
16、选择iis中的WIN-X8WN3DY9XD2(这是我的计算机名称,其实就是起始页下面一项)
17、在中间选择 处理程序映射 双击,
18、选择右侧的 添加模块映射 并填写信息
请求路径: *.php
模块: IsapiModule
可执行文件: C:\php\php5isapi.dll
名称: php
19、选中Default Web Site ,点击右侧浏览,新建一个记事本,修改为index.php,写入
20、双击中间 默认文档 ,右侧添加 输入 index.php 点击确定,选中index.php 点击上移,直到移动到第一个
21、点击点击右侧浏览 *:80(http),在浏览器中就会出现 php的相关信息

二、安装mysql和Navicat
1、双击下载下mysql-5.5.35-win32.msi
2、点击next
3、勾选 I accept the therms in the License Agreement.点击next
4、有 Typical(默认)、Custom(用户自定义)、Complete(完全)三个选项。点击 Complete
5、点击Install
6、等待
7、弹出另一个窗口,点击next
8、点击Next
9、点击Finish
10、弹出新窗口点击 Next
11、有 Detailed Configuration(手动精确配置)、Standard Configuration(标准配置);选中Detailed Configuration,点击Next
12、有 Developer Machine(开发测试类,mysql占用很少资源)、
Server Machine(服务器类型,mysql占用较多资源)、
Dedicated MySQL Server Machine(专门的数据库服务器,mysql占用所有可用资源)
我们选中Server Machine,点击Next
13、有 Multifunctional Database(通用多功能型,好)、
Transactional Database Only(服务器类型,专注于事务处理,一般)、
Non-Transactional Database Only(非事务处理型,较简单,主要做一些监控、记数用,对MyISAM数据类型的支持仅限于non-transactional)
我们选中Transactional Database Only,点击Next
14、对数据库的路径,点击Next
15、有 Decision Support(DSS)/OLAP(20个左右)、
Online Transaction Processing(OLTP)(500个左右)、
Manual Setting(手动设置,自己输一个数)
我们选中 Online Transaction Processing(OLTP),点击Next
16、默认端口,不用更改,直接默认点击Next
17、设置编码,选择第三个,Character Set那里选择或填入gbk或utf8,也可以选择gb2312,点击Next
18、Install As Windows Service(是否按照windows服务,勾选),Include Bin Directory in Windows PATH(是否将mysql的bin目录加入到环境变量,勾选),点击Next
19、Root用户名的密码,必须填写,一般123456 ;
Enable root access from remote machines(是否允许root用户在其它的机器上登陆,一般勾选);
Create An Anonymous Account(新建一个匿名用户,匿名用户可以连接数据库,不能操作数据,包括查询,不勾选),点击Next
20、点击Execute
21、点击Finish,安装完成。

安装Navicat_for_MySQL_11.0.10_XiaZaiBa.exe
1、双击Navicat
2、点击安装
3、取消设置999网址导航,取消生成999网址导航,桌面快捷方式,点击完成。
4、打开后Navicat,点击 连接
连接名称:可以不填写
主机名或IP地址: localhost (本机)
端口: 3306(请填写您自己在安装过程中填写的端口,默认问3306)
用户名: root
密码: 我的是123456,不知道你自己填写的是什么
5、确定
6、双击localhost_3306,可以看到您的数据库了。

 

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

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.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

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)

How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated? How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated? Feb 21, 2025 pm 10:54 PM

The way to update ByBit exchanges varies by platform and device: Mobile: Check for updates and install in the app store. Desktop Client: Check for updates in the Help menu and install automatically. Web page: You need to manually access the official website for updates. Failure to update the exchange can lead to security vulnerabilities, functional limitations, compatibility issues and reduced transaction execution efficiency.

deepseek web version entrance deepseek official website entrance deepseek web version entrance deepseek official website entrance Feb 19, 2025 pm 04:54 PM

DeepSeek is a powerful intelligent search and analysis tool that provides two access methods: web version and official website. The web version is convenient and efficient, and can be used without installation; the official website provides comprehensive product information, download resources and support services. Whether individuals or corporate users, they can easily obtain and analyze massive data through DeepSeek to improve work efficiency, assist decision-making and promote innovation.

Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node? Mar 05, 2025 pm 05:57 PM

Detailed explanation and installation guide for PiNetwork nodes This article will introduce the PiNetwork ecosystem in detail - Pi nodes, a key role in the PiNetwork ecosystem, and provide complete steps for installation and configuration. After the launch of the PiNetwork blockchain test network, Pi nodes have become an important part of many pioneers actively participating in the testing, preparing for the upcoming main network release. If you don’t know PiNetwork yet, please refer to what is Picoin? What is the price for listing? Pi usage, mining and security analysis. What is PiNetwork? The PiNetwork project started in 2019 and owns its exclusive cryptocurrency Pi Coin. The project aims to create a one that everyone can participate

How to install deepseek How to install deepseek Feb 19, 2025 pm 05:48 PM

There are many ways to install DeepSeek, including: compile from source (for experienced developers) using precompiled packages (for Windows users) using Docker containers (for most convenient, no need to worry about compatibility) No matter which method you choose, Please read the official documents carefully and prepare them fully to avoid unnecessary trouble.

Coinsuper exchange software channel official website entrance Coinsuper exchange software channel official website entrance Feb 21, 2025 pm 10:39 PM

The official website entrance of the Coinsuper Exchange: https://www.coinsuper.com. The client download channels are: Windows client, macOS client, and mobile (iOS/Android). Registration requires an email, mobile phone number and password, and you need to complete real-name authentication before you can trade. The platform provides a variety of digital asset transactions, including Bitcoin, Ethereum, etc., with the transaction fee rate of 0.1% for both orders and acceptors. Security safeguards include cold wallet storage, dual-factor verification, anti-money laundering and anti-terrorism financing measures, and with security public

Ouyi okx installation package is directly included Ouyi okx installation package is directly included Feb 21, 2025 pm 08:00 PM

Ouyi OKX, the world's leading digital asset exchange, has now launched an official installation package to provide a safe and convenient trading experience. The OKX installation package of Ouyi does not need to be accessed through a browser. It can directly install independent applications on the device, creating a stable and efficient trading platform for users. The installation process is simple and easy to understand. Users only need to download the latest version of the installation package and follow the prompts to complete the installation step by step.

BITGet official website installation (2025 beginner's guide) BITGet official website installation (2025 beginner's guide) Feb 21, 2025 pm 08:42 PM

BITGet is a cryptocurrency exchange that provides a variety of trading services including spot trading, contract trading and derivatives. Founded in 2018, the exchange is headquartered in Singapore and is committed to providing users with a safe and reliable trading platform. BITGet offers a variety of trading pairs, including BTC/USDT, ETH/USDT and XRP/USDT. Additionally, the exchange has a reputation for security and liquidity and offers a variety of features such as premium order types, leveraged trading and 24/7 customer support.

Get the gate.io installation package for free Get the gate.io installation package for free Feb 21, 2025 pm 08:21 PM

Gate.io is a popular cryptocurrency exchange that users can use by downloading its installation package and installing it on their devices. The steps to obtain the installation package are as follows: Visit the official website of Gate.io, click "Download", select the corresponding operating system (Windows, Mac or Linux), and download the installation package to your computer. It is recommended to temporarily disable antivirus software or firewall during installation to ensure smooth installation. After completion, the user needs to create a Gate.io account to start using it.

See all articles