Changes between Version 83 and Version 84 of TracOnFedoraCore
- Timestamp:
- Jan 26, 2015, 9:24:25 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnFedoraCore
v83 v84 1 1 = Trac on Fedora Core = 2 2 3 Installing Trac On Fedora Core 4 (and higher), and also on RHEL 4 or higher is easy with Yum and involves only 3steps:3 Installing Trac On Fedora Core 4 (and higher), and also on RHEL 4 or higher is easy with Yum and involves the following steps: 4 4 5 1) Verify you have configured Yum to use the Extras repository (which is enabled by default in Fedora Core 4 and higher) 6 and run the following command in a terminal window: 5 1. Verify you have configured Yum to use the Extras repository, which is enabled by default in Fedora Core 4 and higher, and run the following command in a terminal window: 7 6 8 7 {{{ … … 10 9 }}} 11 10 12 Yum will take care of all dependencies on which the Trac package depends (including the `python-clearsilver package`) and will fetch and install them for you automatically.11 Yum will fetch and install all dependencies on which the Trac package depends, including the `python-clearsilver` package. 13 12 14 ''NOTE:'' Unless you're on Fedora 7, in which case, you will need to also install `python-sqlite2` if you are using the default sqlite backend.13 ''NOTE:'' If you are on Fedora 7 and using SQLite as the database, you will need to also install `python-sqlite2`. 15 14 16 2) Create a new project environment. An environment is basically a directory that contains a human-readable configuration file and variousother files and directories.15 2. Create a new project environment: a directory that contains a human-readable configuration file and other files and directories. 17 16 18 17 Create a subversion repository if you don't already have one, for example in `/srv/svn`: … … 22 21 }}} 23 22 24 Next you need to decide where to store your trac project and create the directory, for example in the new directory `/srv/trac`:23 Next you need to decide where to store your Trac project and create the directory, for example in the new directory `/srv/trac`: 25 24 {{{ 26 25 $ sudo mkdir -p /srv/trac … … 32 31 }}} 33 32 34 Now make it owned by apache:33 Now make it owned by Apache: 35 34 {{{ 36 35 $ sudo chown -R apache /srv/trac … … 38 37 }}} 39 38 40 3) Next, you need to edit the file ''/etc/httpd/conf.d/trac.conf'' to point to your new project 41 environment, as in this example (using mod_python): 39 3. Next, you need to edit the file ''/etc/httpd/conf.d/trac.conf'' to point to your new project environment, as in this example using mod_python: 42 40 43 41 {{{ … … 74 72 </Location> 75 73 </IfModule> 76 77 78 74 }}} 79 75 80 The example above assumes you have a trac project environment setup in ''/srv/trac/foobar/'' directory, described in step 2 and an htpasswd file at `/opt/trac/trac.htpasswd` for authentication purposes (see also wiki:TracModPython (too generic)).76 The example above assumes you have a Trac project environment setup in ''/srv/trac/foobar/'' directory, described in step 2 and an htpasswd file at `/opt/trac/trac.htpasswd` for authentication purposes. See also wiki:TracModPython. 81 77 82 78 You will need to tell Apache to reload configuration after editing `trac.conf`: … … 86 82 }}} 87 83 88 Verify your Trac installation by pointing your browser at the correct URL for your Trac server (e.g. http://localhost/trac).84 Verify your Trac installation by pointing your browser at the correct URL for your Trac server, eg http://localhost/trac. 89 85 90 86 Notes on the Fedora Extras Trac package: … … 95 91 If you happen to come across any packaging issues, feature requests or problems on Fedora, you can submit a bugzilla bug for the Trac package at [https://bugzilla.redhat.com/bugzilla/easy_enter_bug.cgi]. 96 92 97 Be sure to check out the generic installation instructions in the [wiki:TracGuide TracGuide] 98 == Create admin user == 99 So that login will have a password file can refer to (as in this example for project ''foobar'' ). 93 Be sure to check out the generic installation instructions in the [wiki:TracGuide TracGuide]. 94 95 == Create admin user 96 97 So that login will have a password file can refer to, as in this example for project ''foobar'': 100 98 {{{ 101 99 htpasswd -c /srv/trac/foobar/conf/trac.htpasswd adminuser … … 104 102 and follow [http://trac.edgewall.org/wiki/WebAdmin webadmin] instruction to assign "adminuser" as the trac admin. 105 103 106 == SELinux ==104 == SELinux 107 105 108 106 Fedora Core 5 ships with SELinux enabled by default. You need to make the Trac and Subversion directory accessible to the webserver. If you put these contents under {{{/var/www/trac}}} and {{{/var/www/svn}}} to follow !RedHat's standard for location of web contents, you don't need to do anything extra for SELinux. But if you want an alternative location such as {{{/srv}}}, follow these guidelines and read the notes at [http://fedora.redhat.com/docs/selinux-apache-fc3/] for details.