How To Install Horde CVS on IIS6 Windows Server 2003. - This document assumes the following: - If this is small-usaged server you want to use the CGI version of PHP. It's easier to setup but on the other hand the ISAPI version works much better. II have two links which describe this in detail: https://hosting.kingridge.org/support/index.php?\_m=knowledgebase\&\_a=viewarticle\&kbarticleid=47\&nav=0,2 and http://www.iis-resources.com/modules/AMS/article.php?storyid=615 - Windows Server 2003 has been installed with the default options. In other words %WINDIR%=C:\Windows and IIS6 has been installed with the default options. 2003 Server does not install IIS by default. I used Add/Remove Programs-Add/Remove Windows Components to install IIS6. - All available patches have been applied using: http://v4.windowsupdate.microsoft.com/en/default.asp - You have some knowledge of how to use the windows command line. - This document is specific to the following software versions. - PHP 4.3.7RC1 Download the php-4.3.7RC1-Win32.zip from http://www.php.net/downloads.php. Do NOT use the Windows Installer version. - MySQL 4.0.20 Download mysql-4.0.20a-win.zip from http://dev.mysql.com/downloads/mysql/4.0.html Unlike PHP it is recommended that you use the Windows installer version. - Aspell 0.05-3 Download the full installer from http://aspell.net/win32/ dictionaries can be downloaded at the same URL - !WinCvs13b17-2 -- Download !WinCvs13b17-2.zip from http://sourceforge.net/projects/cvsgui/ Even though this is a complete GUI Im only interested in cvs.exe so I can connect to the Horde cvs repository from the command line. Install PHP 4.3.7RC1 - Extract the files in the ZIP archive to C:\. Extracting the files will create a folder called C:\php-4.3.7RC1-Win32. Rename the folder to C:\php. - Copy C:\php\php4ts.dll to C:\Windows\System32. - Copy C:\php\php-ini-recommended to C:\Windows. Rename php-ini-recommended to php.ini - Just to be safe, change the permissions on php.ini to EVERYONE: Read & Execute, Read. Ignore any warning you might see when you apply the permissions. - Open C:\Windows\php.ini for editing - Search for extension_dir and change it to read: extension_dir = ".\extensions" - Search for browscap. Uncomment the browscap = line and change it to read: browscap = c:\windows\system32\inetsrv\browscap.ini - Search for cgi.force_redirect. Uncomment the cgi.force_redirect = line and change it to read: cgi.force_redirect = 0 - Search for upload. By default uploads are enabled. Decide where you want the upload temporary directory to live, if necessary create that folder. Decide what the maximum allowed upload size and set: _
upload_tmp_dir = whatever folder you like
upload_max_filesize = whatever size you like
_
The following services are dependent on the IIS Admin Service service.
Stopping the IIS Admin Service service will also stop these services.
World Wide Web Publishing Service
HTTP SSL
Do you want to continue this operation? (Y/N) [N]:
- The services will stop and you will be returned to the Command Prompt. To start the IIS services type: _
net start w3svc
- Open notepad and enter the following text: _
phpinfo(); ?>
- Save the file as C:\Inetpub\wwwroot\phptest.php _
PHP Version 4.3.7RC1
System
Windows NT HATRICK 5.2 build 3790
Build Date
May 25 2004 15:27:35
Server API
CGI/FastCGI
Virtual Directory Support
enabled
Configuration File (php.ini) Path
C:\WINDOWS\php.ini
PHP API
20020918
PHP Extension
20020429
Zend Extension
20021010
Debug Build
no
Thread Safety
enabled
Registered PHP Streams
php, http, ftp, compress.zlib
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
Install PEAR Using the Provided PHP Scripts
- Open a Command Prompt
- CD to C:\php
- Execute: go-pear.bat
Welcome to go-pear!
Go-pear will install the 'pear' command and all the files needed by
it. This command is your tool for PEAR installation and maintenance.
Go-pear also lets you download and install the PEAR packages bundled
with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, PHPUnit-0.6.2.
If you wish to abort, press Control-C now, or press Enter to continue:
- Press Enter to continue. Youll see: _
HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none:
- Enter the proxy information if needed, otherwise Enter to continue. Youll see: _
Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.
1. Installation prefix : C:\php
2. Binaries directory : $prefix
3. PHP code directory ($php_dir) : $prefix\pear
4. Documentation base directory : $php_dir\docs
5. Data base directory : $php_dir\data
6. Tests base directory : $php_dir\tests
7. php.exe path : C:\php\cli\php.exe
1-7, 'all' or Enter to continue:
- Make any changes you need and press Enter to continue. Based on these installation instructions the defaults are acceptable.
- Say YES to the following prompt: _
The following PEAR packages are bundled with PHP: DB, Net_Socket, Net_SMTP,
Mail, XML_Parser, PHPUnit-0.6.2.
Would you like to install these as well? [Y/n] :
- Youll see: _
Loading zlib: ok
Using local package: PEAR.............ok
Using local package: Archive_Tar......ok
Using local package: Console_Getopt....ok
Using local package: XML_RPC..........ok
Bootstrapping: PEAR...................(local) ok
Bootstrapping: Archive_Tar............(local) ok
Bootstrapping: Console_Getopt.........(local) ok
Using local package: DB...............ok
Using local package: Net_Socket.......ok
Using local package: Net_SMTP.........ok
Using local package: Mail.............ok
Using local package: XML_Parser.......ok
Downloading package: PHPUnit-0.6.2....ok
Extracting installer..................ok
install ok: PEAR 1.3.1
install ok: Archive_Tar 1.1
install ok: Console_Getopt 1.2
install ok: XML_RPC 1.1.0
install ok: DB 1.6.1
install ok: Net_Socket 1.0.1
install ok: Net_SMTP 1.2.5
install ok: Mail 1.1.2
install ok: XML_Parser 1.0.1
install ok: PHPUnit 0.6.2
******************************************************************************
WARNING! The include_path defined in the currently used php.ini does not
contain the PEAR PHP directory you just specified:
If the specified directory is also not in the include_path used by
your scripts, you will have problems getting any PEAR packages working.
Would you like to alter php.ini ? [Y/n] :
- Say YES to updating your php.ini file. Youll see: _
php.ini include_path updated.
Note: this entry is added at the very bottom of your php.ini.
Current include path : .;c:\php4\pear
Configured directory : C:\php\pear
Currently used php.ini (guess) : C:\WINDOWS\php.ini
Press Enter to continue:
- Press Enter and youll see: _
The 'pear' command is now at your service at C:\php\pear.bat
* WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under C:\php\PEAR_ENV.reg .
This file creates ENV variables for the current user.
Double-click this file to add it to the current user registry.
Press any key to continue . . .
- Press any key to return to the command prompt.
- Browse to C:\php and double-click on PEAR_ENV.reg to import the registry information.
- Next add the PEAR packages which are required by Horde (You should already be in C:\php, if not CD to that directory):
- Log From the command prompt: pear install log
[mysqld]
# set basedir to your installation path
basedir=C:\\mysql
# set datadir to the location of your data directory
datadir=C:\\mysql\\data
[WinMySQLAdmin]
Server=C:\\mysql\\bin\\mysqld-nt.exe
QueryInterval=10
- If you installed MySQL into a different folder youll need to change the basedir = to point to your installation point. Additionally you need to add a different path to the system path variable. If you want to store your databases in a different location, create that folder structure and change the datadir= to point to that location. Beware that if you want to use back slashes in your my.ini, you need to use \\ otherwise use forward slashes.
- Save the file as C:\Windows\my.ini _
mysqld console
_
mysqld: ready for connections.
Version: '4.0.20a-debug' socket: '' port: 3306
Press CTRL+C to stop MySQL
- Now we can install the MySQL daemon as a service by entering: _
mysqld install
_
net start mysql
_
mysql -u root
_
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');
_
mysql user=root password=your_password mysql
_
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5 to server version: 4.0.20a-debug
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
_
SET CVSROOT=:pserver:cvsread@anoncvs.horde.org:/repository
\WinCVS\CVSNT\cvs login
_
Logging in to :pserver:cvsread@anoncvs.horde.org:2401:/repository
CVS password:
- Type the password and press Enter. Youre now logged into the CVS repository.
- Type \WinCVS\CVSNT\cvs co -r HEAD horde
\WinCVS\CVSNT\cvs co -r HEAD framework
- Now that you have the basic framework installed you can continue to check out other modules you want. Personally I use IMP, Ingo, Jonah, Klutz (for fun) Kronolith, Mnemo, Nag, Passwd, and Turba.
- Once youve got all the modules you want execute \WinCVS\CVSNT\cvs logout