SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 42 | Next

David J Murphy

"Managing Software Development with Trac and Subversion"


Customizing trac.cgi
This section is for Microsoft Windows only. We can safely ignore it if we
are using Linux.
Chapter 3
[ 29 ]
For Microsoft Windows we need to create a copy of the main Trac script and tweak it
to use the version of Python we have installed.
1. Open a command prompt (Start menu, Run, type cmd, and click OK).
2. Type copy "C:\Python24\share\trac\cgi-bin" "C:\Projects\" and
press Enter.
3. Type exit and press Enter to close your command prompt.
4. Open C:\Projects\trac.cgi in a text editor.
5. Change the first line to:
#!C:/Python24/python.exe
6. Save and close the file.
Configuring Apache
Installation of our components is only part of the story, because we need to configure
them to work together. We are using our web server Apache to provide??”and
control, as we will discover later??”access to our components. At the moment it is
only configured for typical web server activities, so we need to expand on that.
Virtual Hosts
Apache supports hosting multiple hosts or domains on a single server, a
topic which is beyond the scope of this title. However, it may be useful to
be aware that the components and configuration we are using here
will work quite happily in such an environment. In fact such a
configuration may help reduce hardware requirements by making a
server multi-purpose.


Pages:
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54