Edgewall Software

Changes between Version 53 and Version 54 of WebAdmin


Ignore:
Timestamp:
Feb 18, 2015, 10:07:31 PM (2 years ago)
Author:
Ryan J Ollos
Comment:

Information about old WebAdminPlugin removed.

Legend:

Unmodified
Added
Removed
Modified
  • WebAdmin

    v53 v54  
    1 = Web Admin Plugin =
    2 
    3 A plugin is available for administering your Trac projects through the web interface.  This plugin is still under development, but it already supports most of the tasks performed by [wiki:TracAdmin trac-admin].
    4 
    5  ''' ''Note'': the plugin is no longer necessary starting with version 0.11 of Trac, as it has been integrated into the core package. However don't forget to give permissions to your user. This is accomplished on the command-line (the last command shows what your permissions are). Replace <username> with the name you specified in the htpasswd file: '''
    6  {{{
    7 trac-admin /path/to/my/project
    8 permission add <username> TRAC_ADMIN
    9 permission list <username>
    10 }}}
    11  '''The rest of this page is not of interest for anyone using 0.11.x. Just refresh your page and you will see a tab in the right upper side of the page. '''
    12 
    13 The webadmin plugin can be downloaded from the Trac Subversion repository:
    14 {{{
    15 svn export http://svn.edgewall.com/repos/trac/plugins/0.10/webadmin/
    16 }}}
    17   ^(if the `http:` link doesn't work for you, you might have better success with the `https:` one)^
    18 
    19 Prepackaged eggs are attached to this page (you MUST build from svn for Trac 0.10.x). To use either of these, download the file and remove the `.zip` extension^1^, then drop it in the project's "plugins" directory, or [wiki:TracPlugins#ForAllProjects read the instructions to install it for all projects]:
    20  * [attachment:TracWebAdmin-0.1.2dev_r4240-py2.3.egg.zip?format=raw Download for Trac 0.9.3 or later (Python 2.3)]
    21  * [attachment:TracWebAdmin-0.1.2dev_r4240-py2.4.egg.zip?format=raw Download for Trac 0.9.3 or later (Python 2.4)]
    22 ''(requires Setuptools >= 0.6, it will fail to load the plugin if this is missing)''
    23 
    24 Older version for Trac 0.9 - 0.9.2:
    25  * [attachment:TracWebAdmin-0.1dev_r2440-py2.3.egg.zip?format=raw Download for Trac 0.9 (Python 2.3)]
    26  * [attachment:TracWebAdmin-0.1dev_r2440-py2.4.egg.zip?format=raw Download for Trac 0.9 (Python 2.4)]
    27 
    28 Follow the installation instructions at TracPlugins to set up the plugin.
    29 
    30 == Plugin Versions ==
    31 
    32 Note that you'll have to fetch the right revision depending on the version of Trac you have installed:
    33 
    34 || Trac || Web Admin ||
    35 || 0.9b1 || r2249 ||
    36 || 0.9b2 || r2317 ||
    37 || 0.9   || r2440 ||
    38 || 0.9.1 || ?     ||
    39 || 0.9.2 || ?     ||
    40 || 0.9.3 || r2765 ||
    41 || 0.9.4 || same  ||
    42 || 0.9.5 || same  ||
    43 || 0.9.6 || same  ||
    44 || 0.10.x || latest from source:sandbox/webadmin ||
    45 || ''0.11.x'' || '' no need for the plugin! '' ||
    46 For the most recent version of Trac from [source:branches/0.10-stable], you should also get the most recent version of the web admin.
    47 
    48 == Enabling the Plugin ==
    49 
    50 Since [2335], if you install the plugin globally, you'll also need to enable it in [wiki:TracIni trac.ini] as follows:
    51 {{{
    52 [components]
    53 webadmin.* = enabled
    54 }}}
    55 
    56 If you've just dropped the egg file into the environment `plugins` directory, it'll be enabled automatically.
    57 
    58 '''Finally''', do not forget to restart the apache server, if applicable (if you had a previous version installed). Otherwise cache issues (admin button disappearing) may arise.
    59 
    60 == Filesystem Permissions ==
    61 
    62 You need to make sure that whatever user is running your Trac instances is capable of writing to your {{{trac.ini}}} file.  If you're running the standalone tracd, this probably isn't a concern, but if you're running Trac as a CGI or inside FastCGI the chances are your webserver user (say {{{www-data}}} or {{{httpd}}}) probably isn't the owner of your Trac instances.  If your webserver runs as its own (non-shared) group, my preferred solution is to change the group ownership of {{{trac.ini}}} and make it group-writable.  If the webserver runs with some group like {{{nobody}}} or {{{nogroup}}}, then you'll need to come up with some alternate solution.  (Windows users should translate all this to their own permissions schemes as appropriate).
    63 
    64 == Permissions ==
    65 
    66 Don't forget to give TRAC_ADMIN permissions to one of your users.  That user will see an "Admin" tab in the user interface.  See TracPermissions for details. The TICKET_ADMIN permission also enables the "Admin" tab. It allows users to edit ticket field values (components, severities etc.) but does not give them control over permissions.
    67 
    68 == Regenerating egg-info ==
    69 
    70 If you install WebAdmin from a source checkout/export using `setup.py develop`, you may sometimes have to update the egg meta-data (generally whenever the `setup.py` script itself has changed). This  can be done using the `egg_info` command:
    71 {{{
    72 python setup.py egg_info
    73 }}}
    74 
    75 ----
    76 ^1^ Due to its double extension you would expect the file to be a zipped file within a zipped file (`.egg` inside of `.zip`).  Therefore, simply removing the `.zip` extension without performing an unzip and expecting the `.egg` file to open properly seems wrong.  But it does work. 
    77 
    78 == Known Issues ==
    79 
    80 [[TicketQuery(status=!closed&component=webadmin)]]
    81 
    82 ----
    83 See also TracPlugins, PluginList
     1See TracWebAdmin.