存档

文章标签 ‘Apache’

Apache+PHP+MySQL安装配置摘要@Windows

2010年9月1日 2 条评论

下载软件

安装配置Apache

修改httpd文件:

# PHP Configuration
PHPIniDir "D:/Program Files/PHP/"
LoadModule php5_module "D:/Program Files/PHP/php5apache2_2.dll"

修改mime.types文件:

# PHP Configuration
application/x-httpd-php    php
application/x-httpd-php-source    phps

安装配置PHP

PHP使用的是zip版,解压缩后将php.ini-recommended更名为php.ini

修改php.ini文件:

; Directory in which the loadable extensions (modules) reside
extension_dir = "D:\Program Files\PHP\ext"

; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
extension=php_mysql.dll
;

系统环境变量Path可增加:”D:\Program Files\PHP;D:\Program Files\PHP\ext”

安装配置MySQL

装完MySQL再装GUI Tools,因为喜欢MySQL System Tray Monitor。

软件版本

Windows:7(6.1.7600.16385)
Apache:2.2.15
PHP:5.2.14
MySQL:5.1.50
MySQL GUI Tools:5.0-r17

分类: 文档 标签: , , ,

Subversion+Apache安装配置摘要@Windows

2009年11月19日 1 条评论

下载软件

安装配置Subversion

没什么好说的。

安装配置Apache

将下载的ReposStyle解压到htdocs目录。

修改httpd文件:

# SVN Configuration
LoadModule dav_svn_module "D:/Program Files/Subversion/bin/mod_dav_svn.so"
LoadModule authz_svn_module "D:/Program Files/Subversion/bin/mod_authz_svn.so"

<Location /svn>
DAV svn
SVNListParentPath on
SVNParentPath "E:/Projects/_Repositories/"

Require valid-user
AuthType Basic
AuthName "Hattiss's Repositories"
AuthUserFile "E:/Projects/_Repositories/passwd"

SVNIndexXSLT "/repos-web/view/repos.xsl"
</Location>

创建认证用户文件

rem 以初始账户hattiss创建认证用户文件
>htpasswd.exe -c "E:\Projects\_Repositories\passwd" hattiss
Automatically using MD5 format.
New password: ************
Re-type new password: ************
Adding password for user hattiss

rem 增加账户nitata
>htpasswd.exe "E:\Projects\_Repositories\passwd" nitata
Automatically using MD5 format.
New password: ************
Re-type new password: ************
Adding password for user nitata

rem 修改账户hattiss的密码
>htpasswd.exe "E:\Projects\_Repositories\passwd" hattiss
Automatically using MD5 format.
New password: ************
Re-type new password: ************
Updating password for user hattiss

软件版本

Subversion:1.6.6
Apache:2.2.14
ReposStyle:2.0b1

分类: 文档 标签: ,