Win8的IIS中架设php
在Windows 8 的IIS(8.0)中搭建PHP运行环境: 一:安装IIS服务器 1.进入控制面板程序和功能打开或关闭Windows 功能,找到 Internet信息服务, 记得选中CGI这一项 2.安装完成后在浏览器中打开localhost,查看是否能显示IIS的欢迎页面: 二:下载安装配置PHP
在Windows 8 的IIS(8.0)中搭建PHP运行环境:
一:安装IIS服务器
1.进入控制面板>>程序和功能>>打开或关闭Windows 功能,找到Internet信息服务,记得选中CGI这一项
2.安装完成后在浏览器中打开localhost,查看是否能显示IIS的欢迎页面:
二:下载安装配置PHP环境
1、下载PHP,官网地址:http://windows.php.net/download/,
注意:一定要下载X86版的,即使系统是64位的。并且要安装相应的VC运行库,比如VC11 x86的一定要下载VC11 x86的运行库。
2、将下载的zip压缩包解压到D盘下,解压后为E:\php;
3、进入控制面板>>管理工具>>Internet信息服务(IIS)管理器;
4、中间窗口选择“处理程序映射”双击,然后最右边选择“添加模块映射”
5.“可执行文件”一栏找到PHP的安装目录E:\php,右下角的文件类型改为“exe”即可看到“php-cgi.exe”文件出现了
6.然后可以给网站添加默认文档:default.php和index.php。
还要进行下面的配置:
7.进入E:\php目录,重命名文件php.ini-development改名为php.ini并复制到桌面;
8.下面需要修改桌面的php.ini文件,
打开php.ini文件后,使用快捷键ctrl+F搜索data.timezone修改为data.timezone="Asia/Shanghai”即修改当前的时区激活你需要的扩展选项,即将相应dll语句前的分号”;”删除
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_pdo_mysql.dll
再搜索extension_dir=将其修改为extension_dir = “E:\php\ext\”,修改并检查完毕后保存,然后把桌面的这个php.ini文件剪切到C:\Windows目录下即可(为什么开始不直接把文件复制到这里来修改呢,因为Windows 8涉及到权限问题,所以先复制到桌面修改,当然也可以放到其它目录修改)
9.php环境配置好了,我们就可以测试一下了,在建立的网站目录下新建一个index.php文件(注意是index.php,不是index.php.txt),内容为”“,然后再在浏览器中打开”localhost“,即可出现类似如下界面
PS1:(在命令行中进入php安装目录下,输入”php -m“命令可查看已开启的dll扩展模块)
Ps2:php网站开发的话少不了mysql数据库,关于mysql数据库环境配置安装图解见这里。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

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

Need to download the Gate.io app to start your cryptocurrency journey? This guide details the latest version download steps for iOS, Android, and Windows devices. Simply visit the official website, find the download link and select the appropriate option based on your device. For iOS, it will go directly to the App Store, while Android and Windows users will download the APK or installer for manual installation. Once installed, you can launch the app and set up your account to step into the world of cryptocurrency.

Solve the problem of third-party interface returning 403 in Node.js environment. When we use Node.js to call third-party interfaces, we sometimes encounter an error of 403 from the interface returning 403...

Choosing the right Bitcoin market viewing software is crucial, it can help investors grasp market conditions in real time and make smarter investment decisions. This article will guide you how to make a choice, covering personal needs assessment (trading frequency, analysis depth, information needs and budget), software type selection (exchange interface, professional software, market website/APP), core functional considerations (data reliability, chart tools, custom settings, community communication and platform compatibility), and direction recommendations (maturity financial platform, cryptocurrency aggregation platform, community recommendation software). Finally, it is recommended that you try a few more software and compare it to choose the tool that best suits your needs. Please remember that software is only an auxiliary tool, and you must be cautious when investing at your own risk.

The OKX trading platform can be downloaded through mobile devices (Android and iOS) and computers (Windows and macOS). 1. Android users can download it from the official website or Google Play, and they need to pay attention to security settings. 2. iOS users can download it through the App Store or follow the official announcement to obtain other methods. 3. Computer users can download the client of the corresponding system from the official website. Always make sure to use official channels when downloading, and register, log in and security settings after installation.

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

Article introduction Binance download portal varies by device and operating system. You need to first clarify the device type, then visit the official website Binance.com (note to check the domain name), look for the "Download" button in a prominent position on the official website, and select download according to different operating systems. The computer version download and install the installation program is prompted to install; Android needs to confirm security from the official website; iOS search and download it in the App Store. After downloading, you need to create or log in to an account, and pay attention to keeping the account information and keys.

Welcome to download the Bitget application to provide safe and reliable digital asset trading services. With our advanced platform, you can easily manage your portfolio and enjoy a smooth and user-friendly trading experience. Bitget applications provide high liquidity and in-depth markets to ensure you get the best execution price. We are committed to creating a safe and transparent trading environment for our users and always prioritize the security of your funds.
