海神


Drupal安装过程

2006-04-28

Apache/2.0.55 PHP/4.42 MySQL/4.1.18 drupal/4.6.6

1.Apache是安装包,更改几个位置:
DocumentRoot DirectoryIndex
在DocumentRoot下面的一个Directory也要改
虚拟目录
Alias /music "G:/mp3"
<Directory "G:/mp3">
    Options Indexes MultiViews
    IndexOptions FancyIndexing ScanHTMLTitles NameWidth=128 DescriptionWidth=256 HTMLTable VersionSort FoldersFirst
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

IndexOptions FancyIndexing ScanHTMLTitles NameWidth=128 DescriptionWidth=256 HTMLTable VersionSort FoldersFirst这行是指定排列的方式

2.PHP是压缩包,解压,把php4ts.dll拷到system32下,在apache的配置文件最下面加上:

# For PHP 4 do something like this:
LoadModule php4_module "D:/php-4.4.2-Win32/sapi/php4apache2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "D:/php-4.4.2-Win32"

在php目录下面把 php.ini-recommended 复制为 php.ini,更改几个位置:
extension_dir
把gd2和mysql的extension打开

有几个地方是drupal的要求,还不确定是否有必要
memory_limit = 12M
session.save_handler = user

还有一个是自己想的,觉得有必要改
include_path = ".;D:/php-4.4.2-Win32/PEAR"

3.MySQL安装完后,配置一下服务器
在装Drupal的时候会提示出错“Client does not support authentication protocol requested by server; consider upgrading MySQL client”,这时候要把MySQL配置一下,在MySQL的提示符下输入:
SET PASSWORD FOR 'root'@'localhost' = OLD_PASSWORD('wen');

4.安装Drupal

解压,建立数据库drupal,执行database/database.mysql脚本,更改sites/default/settings.php里的设置

$db_url = 'mysql://root:wen@localhost/drupal';
$base_url = 'http://localhost';  //4.6修改,4.7不改

打开地址http://localhost,先注册一个用户作为管理员,然后登陆,修改密码


5.汉化

在administer/modules里启用locale,菜单会增加localization,导入语言包,语言列表(list)中将中文语言包设置为可用(Enabled)和默认(Default),保存。



blog comments powered by Disqus