On 2023/11/10 22:04, MARCOS GONÇALVES TEIXEIRA wrote:
> erro in apache:
> [Fri Nov 10 12:58:35.740842 2023] [wsgi:error] [pid 15986:tid 
> 140462495180352] [client myIP] mod_wsgi (pid=15986): Failed to exec Python 
> script file '/var/www/trac/cgi-bin/trac.wsgi'.
> [Fri Nov 10 12:58:35.740891 2023] [wsgi:error] [pid 15986:tid 
> 140462495180352] [client myIP] mod_wsgi (pid=15986): Exception occurred 
> processing WSGI script '/var/www/trac/cgi-bin/trac.wsgi'.
> [Fri Nov 10 12:58:35.745253 2023] [wsgi:error] [pid 15986:tid 
> 140462495180352] [client myIP] Traceback (most recent call last):
> [Fri Nov 10 12:58:35.745277 2023] [wsgi:error] [pid 15986:tid 
> 140462495180352] [client myIP]   File "/var/www/trac/cgi-bin/trac.wsgi", line 
> 24, in <module>
> [Fri Nov 10 12:58:35.745282 2023] [wsgi:error] [pid 15986:tid 
> 140462495180352] [client myIP]     from trac.web.main import dispatch_request
> [Fri Nov 10 12:58:35.745292 2023] [wsgi:error] [pid 15986:tid 
> 140462495180352] [client myIP] ModuleNotFoundError: No module named 'trac'

"ModuleNotFoundError: No module named 'trac'" is logged. So that mod-wsgi
cannot find Trac. If you haven't install to standard directory, the installed
location should be configured using mod-wsgi directives in apache configuration
file.

e.g.

WSGIScriptAlias /trac /var/www/cgi-bin/trac.wsgi

↓

# Replace </path/to/your-virtualenv> with your virtualenv location 
WSGIDaemonProcess trac python-home=</path/to/your-virtualenv> 
display-name=%{GROUP}
WSGIScriptAlias /trac /var/www/cgi-bin/trac.wsgi process-group=trac 
application-group=%{GLOBAL}


See also:
https://modwsgi.readthedocs.io/en/master/configuration-directives/WSGIDaemonProcess.html
https://modwsgi.readthedocs.io/en/master/configuration-directives/WSGIScriptAlias.html

-- 
Jun Omae <jun6...@gmail.com> (大前 潤)

-- 
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 trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/1cb1adcb-b9b4-498a-9b54-53900b20137b%40gmail.com.

Reply via email to