Changes between Version 15 and Version 16 of Ubuntu-11.10
- Timestamp:
- Oct 16, 2017, 7:37:00 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ubuntu-11.10
v15 v16 7 7 Every time I use vim you can use any editor you want, such as nano or gedit. 8 8 9 '''Install Trac''' (and useful plugins) fromrepository:9 '''Install Trac''' and some useful plugins from the repository: 10 10 11 11 {{{#!sh … … 13 13 }}} 14 14 15 If you're going to use sqlite for database, then install python-sqlite:15 If you're going to use sqlite for the database, then install python-sqlite: 16 16 17 17 {{{#!sh … … 25 25 }}} 26 26 27 '''Add Trac user :'''27 '''Add Trac user''' 28 28 29 29 {{{#!sh 30 sudo adduser --system --shell /bin/sh --gecos 'trac project manag ment' --group --disabled-password --home /var/trac trac30 sudo adduser --system --shell /bin/sh --gecos 'trac project management' --group --disabled-password --home /var/trac trac 31 31 }}} 32 32 33 '''Add www-data to Trac group''' so Apache can access Trac files 33 '''Add www-data to Trac group''' so Apache can access Trac files: 34 34 35 35 {{{#!sh … … 37 37 }}} 38 38 39 '''Login as Trac user''' start bash and swi ch to homedir:39 '''Login as Trac user''' start bash and switch to the home directory: 40 40 41 41 {{{#!sh … … 53 53 trac-admin android deploy android/deploy 54 54 }}} 55 and finish instal ation55 and finish installation. 56 56 57 57 '''Change permissions so group can write/read/execute''' … … 61 61 }}} 62 62 63 You can add as many projects as you want . And even later, all you have to do tocreate a new project, deploy it and you're set.63 You can add as many projects as you want and at any point in time. All you have to do is create a new project, deploy it and you're set. 64 64 65 '''Back to your user'''. 66 pressing Ctrl-D twice should get you back. 65 '''Back to your user''' 67 66 68 Now we'll configure Apache.67 Pressing Ctrl-D twice should get you back. 69 68 70 Open apache apache site file what you want to use for Trac (default should be fine). In my case I have Virtualhost for subdomain Trac. 69 '''Configure Apache webserver''' 70 71 Open the Apache site file that you want to use for Trac. The default file should be fine. In my case I have Virtualhost for subdomain Trac: 71 72 72 73 {{{#!sh … … 74 75 }}} 75 76 76 and looks like:77 and it looks like: 77 78 78 79 {{{#!apache … … 102 103 }}} 103 104 104 WSGIScriptAlias does all the magic. It gets its project name from url and redirects to trac.wsgi in that project. 105 If you're not running Trac sites as a subdomain but as a folder in your documentroot (i.e. `domain.ur/trac/myproject`) replace: 105 WSGIScriptAlias does all the magic. It gets its project name from url and redirects to trac.wsgi in that project. 106 107 If you're not running Trac sites as a subdomain but as a folder in your documentroot (i.e. `domain.ur/trac/myproject`), then replace: 106 108 {{{#!sh 107 109 ^/([^/]+) … … 114 116 (there's just added 'trac/'). And make sure that `/var/trac/projects` is in DocumentRoot. 115 117 116 '''Reload apache configuration'''118 '''Reload Apache configuration''' 117 119 118 120 {{{#!sh