随笔 - 13, 文章 - 18, 评论 - 18, 引用 - 0
数据加载中……

Drupal 学习安装 -1

本来开始是想用xoops这个开源代码的,在sourceforge上搜索了一番后的结果。 后来既然是开源网站的选择,干脆选择一个比较更有
控制力的吧,最后决定选择使用drupal。
在我的机器上使用的是 Apache2.4
Server version: Apache/2.4.6 (Win32)
Apache Lounge VC10 Server built:   Jul 16 2013 11:02:15
php的版本是
PHP 5.4.21 (cli) (built: Oct 16 2013 21:09:16)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
MySQL的版本是
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 51
Server version: 5.6.11 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
PHP的版本要选择正确否则在 Apache/conf/的 httpd.conf中的配置语句
LoadModule php5_module "C:/php/php5apache2_4.dll"
会出现问题
整个语句为
LoadModule php5_module "c:/php/php5apache2_4.dll" 
AddType application/x-httpd-php .php 
AddDefaultCharset UTF8
PHPIniDir "C:/php"
在Apache/conf  httpd.conf中 
ServerRoot 需要修改
ServerRoot "c:/Apache24"
在Apache/conf  httpd.conf中 
<Directory />
    #AllowOverride none
    #Require all denied
     AllowOverride All
     AccessFileName .htaccess
</Directory>   这个和Clean Urls有关,
在Apache/conf  httpd.conf中 
DocumentRoot "c:/Apache24/htdocs"   文档root修改
<Directory "c:/Apache24/htdocs">
</Directory>
在Apache/conf  httpd.conf中 
<IfModule dir_module>
    DirectoryIndex index.php   初始默认启动文档设置
</IfModule>
在PHP中的php.ini ----从php.ini-production拷贝来
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
 extension_dir = "c:/php/ext"-------扩展路径,需要注明
在PHP中的php.ini, 关于模块加载
;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_exif.dll      ; Must be after mbstring as it depends on it
extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
;extension=php_oci8_11g.dll  ; Use with Oracle 11gR2 Instant Client
;extension=php_openssl.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
在PHP中的php.ini, 关于MYSQL数据脚本执行的时间限制,最好修改为60, 网络状态不好的时候,这样才能成功执行,安装。
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 60
<Directory "C://Apache24/htdocs/Drupal">--rewrite http.conf文件中
AllowOverride All
#AccessFileName .htaccess
</Directory>
还要放开mod_rewrite.so 放开注释.


posted on 2013-11-18 16:55 JackLi 阅读(16927) 评论(2)  编辑 收藏 引用

评论

# re: Drupal 学习安装 -1  回复  更多评论   

请在 http://www.apachelounge.com/download 下载对应的Apache24
2013-11-29 10:24 | JackLi

# re: Drupal 学习安装 -1  回复  更多评论   

Php 下载网址 http://windows.php.net/download/
2013-11-29 11:00 | JackLi

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理