Artifact
a7e68df71b95d35321b9d9aeec3c8068f991926c:
Wiki page
[
Apache On Windows XP] by
jeffrimko
2011-07-09 16:10:25.
0000: 44 20 32 30 31 31 2d 30 37 2d 30 39 54 31 36 3a D 2011-07-09T16:
0010: 31 30 3a 32 35 2e 39 32 36 0a 4c 20 41 70 61 63 10:25.926.L Apac
0020: 68 65 5c 73 4f 6e 5c 73 57 69 6e 64 6f 77 73 5c he\sOn\sWindows\
0030: 73 58 50 0a 55 20 6a 65 66 66 72 69 6d 6b 6f 0a sXP.U jeffrimko.
0040: 57 20 37 39 33 0a 3c 62 3e 4e 4f 54 45 3a 20 3c W 793.<b>NOTE: <
0050: 2f 62 3e 54 68 69 73 20 67 75 69 64 65 20 77 61 /b>This guide wa
0060: 73 20 74 65 73 74 65 64 20 6f 6e 20 41 70 61 63 s tested on Apac
0070: 68 65 20 76 32 2e 32 2e 31 39 20 66 6f 72 20 57 he v2.2.19 for W
0080: 69 6e 64 6f 77 73 20 58 50 2e 0d 0a 0d 0a 49 74 indows XP.....It
0090: 20 69 73 20 65 61 73 79 20 74 6f 20 74 6f 20 68 is easy to to h
00a0: 6f 73 74 20 61 20 66 6f 73 73 69 6c 20 72 65 70 ost a fossil rep
00b0: 6f 73 69 74 6f 72 79 20 76 69 61 20 43 47 49 20 ository via CGI
00c0: 77 69 74 68 20 41 70 61 63 68 65 20 66 6f 72 20 with Apache for
00d0: 57 69 6e 64 6f 77 73 20 58 50 2e 20 46 6f 6c 6c Windows XP. Foll
00e0: 6f 77 20 74 68 65 73 65 20 73 74 65 70 73 3a 0d ow these steps:.
00f0: 0a 0d 0a 3c 6f 6c 3e 0d 0a 3c 6c 69 3e 49 6e 73 ...<ol>..<li>Ins
0100: 74 61 6c 6c 20 46 6f 73 73 69 6c 20 74 6f 20 61 tall Fossil to a
0110: 20 6c 6f 63 61 6c 20 64 69 72 65 63 74 6f 72 79 local directory
0120: 20 61 6e 64 20 61 64 64 20 74 68 65 20 64 69 72 and add the dir
0130: 65 63 74 6f 72 79 20 74 6f 20 74 68 65 20 50 41 ectory to the PA
0140: 54 48 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 TH environment v
0150: 61 72 69 61 62 6c 65 2e 3c 2f 6c 69 3e 0d 0a 3c ariable.</li>..<
0160: 6c 69 3e 49 6e 73 74 61 6c 6c 20 74 68 65 20 41 li>Install the A
0170: 70 61 63 68 65 20 77 65 62 20 73 65 72 76 65 72 pache web server
0180: 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 49 6e 20 74 .</li>..<li>In t
0190: 68 65 20 41 70 61 63 68 65 20 69 6e 73 74 61 6c he Apache instal
01a0: 6c 20 70 61 74 68 2c 20 66 69 6e 64 20 74 68 65 l path, find the
01b0: 20 3c 69 3e 63 67 69 2d 62 69 6e 3c 2f 69 3e 20 <i>cgi-bin</i>
01c0: 66 6f 6c 64 65 72 2e 3c 2f 6c 69 3e 0d 0a 3c 6c folder.</li>..<l
01d0: 69 3e 43 72 65 61 74 65 20 61 20 6e 65 77 20 3c i>Create a new <
01e0: 69 3e 2e 63 67 69 3c 2f 69 3e 20 66 69 6c 65 20 i>.cgi</i> file
01f0: 74 68 61 74 20 77 69 6c 6c 20 62 65 20 75 73 65 that will be use
0200: 64 20 74 6f 20 61 63 63 65 73 73 20 61 20 6c 6f d to access a lo
0210: 63 61 6c 20 46 6f 73 73 69 6c 20 72 65 70 6f 73 cal Fossil repos
0220: 69 74 6f 72 79 3b 20 65 2e 67 2e 20 3c 69 3e 65 itory; e.g. <i>e
0230: 78 61 6d 70 6c 65 2e 63 67 69 3c 2f 69 3e 3c 2f xample.cgi</i></
0240: 6c 69 3e 0d 0a 3c 6c 69 3e 45 64 69 74 20 74 68 li>..<li>Edit th
0250: 65 20 6e 65 77 20 66 69 6c 65 20 61 73 20 66 6f e new file as fo
0260: 6c 6c 6f 77 73 3a 0d 0a 3c 70 72 65 3e 0d 0a 3c llows:..<pre>..<
0270: 63 6f 64 65 3e 0d 0a 23 21 66 6f 73 73 69 6c 2e code>..#!fossil.
0280: 65 78 65 0d 0a 72 65 70 6f 73 69 74 6f 72 79 3a exe..repository:
0290: 20 43 3a 5c 70 61 74 68 5f 74 6f 5f 72 65 70 6f C:\path_to_repo
02a0: 73 69 74 6f 72 79 5c 65 78 61 6d 70 6c 65 2e 66 sitory\example.f
02b0: 6f 73 73 69 6c 0d 0a 3c 2f 63 6f 64 65 3e 0d 0a ossil..</code>..
02c0: 3c 2f 70 72 65 3e 0d 0a 3c 6c 69 3e 53 61 76 65 </pre>..<li>Save
02d0: 20 74 68 65 20 63 68 61 6e 67 65 73 20 74 6f 20 the changes to
02e0: 74 68 65 20 66 69 6c 65 20 61 6e 64 20 63 68 65 the file and che
02f0: 63 6b 20 74 68 61 74 20 74 68 65 20 72 65 70 6f ck that the repo
0300: 73 69 74 6f 72 79 20 69 73 20 61 63 63 65 73 73 sitory is access
0310: 69 62 6c 65 20 61 74 20 74 68 65 20 66 6f 6c 6c ible at the foll
0320: 6f 77 69 6e 67 20 55 52 4c 3a 20 3c 69 3e 68 74 owing URL: <i>ht
0330: 74 70 3a 2f 2f 68 6f 73 74 6e 61 6d 65 2f 63 67 tp://hostname/cg
0340: 69 2d 62 69 6e 2f 65 78 61 6d 70 6c 65 2e 63 67 i-bin/example.cg
0350: 69 3c 2f 69 3e 0d 0a 3c 2f 6f 6c 3e 20 0d 0a 0a i</i>..</ol> ...
0360: 5a 20 61 61 34 66 36 31 65 32 37 64 61 65 62 37 Z aa4f61e27daeb7
0370: 30 38 64 63 34 34 32 62 34 35 37 31 36 61 32 65 08dc442b45716a2e
0380: 65 61 0a ea.