On Sunday, March 16, 2014 6:58:33 PM UTC-7, [email protected] wrote:
>
> Ubuntu 12.04 LTS \n \l
> Welcome to trac-admin 0.12.2
>
> Model " Apache SVN TRAC"
>
> /etc/apache2/sites-enable/trac:
> <VirtualHost *:80>
>     ServerName trac.firehare.name
>     ServerAdmin [email protected] <javascript:>
>     DocumentRoot /var/www/myproject
>     <Location />
>         SetHandler mod_python
>         PythonInterpreter main_interpreter
>         PythonHandler trac.web.modpython_frontend
>         PythonOption TracEnv /var/www/trac/
>         PythonOption TracUriRoot /
>         SetEnv PYTHON_EGG_CACHE /tmp
>     </Location>
>     <Location />
>         AuthType Basic### Don't worry about it, I use the directive "tracd 
> -p 8000 --basic-auth="/var/www/trac/,/var/www/trac/.htpasswd,trac" 
> /var/www/trac/"  to start the trac
>         AuthName "CMET_WZU Trac Server"
>         AuthUserFile /var/www/trac/.htpasswd
>         Require valid-user
>     </Location>
>  
>     ErrorLog "/var/log/apache2/trac_errors.log"
>     CustomLog "/var/log/apache2/trac_accesses.log" common   
> </VirtualHost>
>
>
> I use the directive " htpasswd -c /var/www/trac/.htpasswd admin " to 
> create the userfile and enter the password for admin
> but when I put in the directive " trac-admin /var/www/trac permission 
> list", I can''t get the information for admin :
>

Creating a user for htpassword does not affect the permissions table. 
You'll need to use the "permission add" command to grant permission for the 
"admin" user. The "admin" user will have all the permissions of the 
meta-users anonymous and authenticated.

Can you authenticated when running TracStandalone without the web server?

Please try the following:
tracd -p 8000 --basic-auth="trac,/var/www/trac/.htpasswd,trac" /var/www/trac

I think that "base_project_dir" needs to be the project name, not the 
project path. At least, the latter doesn't work for me when running 
TracStandalone. 
See http://trac.edgewall.org/wiki/TracStandalone#UsingAuthentication

Another thing is that mod_python is deprecated and mod_wsgi should instead 
be used.
http://trac.edgewall.org/wiki/TracModPython
http://trac.edgewall.org/wiki/TracModWSGI

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to