search
Homephp教程php手册PHP 5.4 + IIS 7.5

PHP 5.4 + IIS 7.5

Jun 14, 2016 am 12:02 AM
codeOpen sourceprogrammingprogramming languagesoftware development

突然想玩一玩wordpress和DeDeCMS,就决定在Win 7上弄个环境来试一试。

下载最新的PHP,目前最新的是php 5.4

http://windows.php.net/downloads/releases/php-5.4.0-nts-Win32-VC9-x86.zip 

下载最新的WordPress:http://cn.wordpress.org/wordpress-3.3.1-zh_CN.zip

下载最新的织梦:http://www.dedecms.com/products/dedecms/downloads/

 

首先配置php:

1. 把php安装包解压的一个目录下,我解压到了D:\Program Files\Green Program\php

2.拷贝一个php.ini-development副本,把它重命名为php.ini。

配置php.ini 文件,搜索如下配置并修改相应的配置值:

extension_dir = ".\ext"
log_errors = On

error_log = "C:/inetpub/temp/php-errors.log"

fastcgi.impersonate = 1
fastcgi.logging = 0
cgi.fix_pathinfo=1
cgi.force_redirect = 0

session.save_path = "C:/inetpub/temp/phpsessions/"(可选)

去除以下扩展前的引号:

extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_odbc.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
extension=php_zip.dll

IIS 7及以上 支持php使用fastcgi模式。

配置IIS 7需要在IIS添加一个处理程序映射

20123101

添加一个模块处理程序:

20123102

 

再在默认文档中添加index.php 为默认文档。

这样配置基本都ok了。

要运行WordPress 还的安装mysql,这个没什么难度直接一路next,就是在配置mysql的时候记得默认配置mysql编码为utf-8。

在iis新建一个网站,网站路径指向wordpress安装路径。

在浏览器中浏览wordpress:

20123103

成功!

 

不过遗憾的是,后来配置织梦的CMS,后台登录显示空白页面,不知道怎么回事?

Statement
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

Video Face Swap

Video Face Swap

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

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.