Discuz 搭建

Apache-2.4.12:http://www.apachelounge.com/download

PHP-5.5.24:http://windows.php.net/download

MySQL-5.5.43:http://dev.mysql.com/downloads/mysql

Discuz-3.2:http://download.comsenz.com/DiscuzX/3.2

 

 

解压 Apache 至 D:\Required\Apache-2.4.12,解压 PHP 至 D:\Required\PHP-5.5.24

 

PHP 配置:D:\Required\PHP-5.5.24\php.ini

1、Path:D:\Required\PHP-5.5.24;D:\Required\PHP-5.5.24\ext;

 

2、开启 Php 扩展:

extension_dir = "ext"

extension=php_mbstring.dll

extension=php_mysql.dll

extension=php_mysqli.dll

extension=php_pdo_mysql.dll

 

Apache 配置:D:\Required\Apache-2.4.12\conf\httpd.conf

1、ServerRoot "D:/Required/Apache-2.4.12"

 

2、Listen 88、ServerName www.example.com:88

 

3、DocumentRoot "D:/Required/Apache-2.4.12/htdocs"

 

4、<Directory "D:/Required/Apache-2.4.12/htdocs">

 

5、DirectoryIndex index.html index.php index.htm

 

6、ScriptAlias /cgi-bin/ "D:/Required/Apache-2.4.12/cgi-bin/"

 

7、<Directory "D:/Required/Apache-2.4.12/cgi-bin">

 

8、最后一行添加:

LoadModule php5_module "D:/Required/PHP-5.5.24/php5apache2_4.dll"

AddType application/x-httpd-php .php .html .htm

PHPIniDir "D:/Required/PHP-5.5.24"

 

9、将 Apache 添加到服务中:>D:\Required\Apache-2.4.12\bin\httpd -k install

你可能感兴趣的:(Disucz)