Hi Folks,
I have a fair amount of experience with Apache and surrounds, but I am quite novice with Python and a complete fish out of water on the current project: Deploying Trytond as an Apache served Python application.
I’m running Fedora. I have added a user “Tryton” for this purpose and I have installed a virtual environment – /home/tryton/python. I have successfully run Trytond in this virtual environment manually:
trytond -c ~/.config/tryton/7.2/trytond.conf
I have the following trytond.conf, which I don’t suspect to be any problem:
WSGIDaemonProcess tryton user=tryton group=apache threads=5 home=/home/tryton/python
WSGIProcessGroup tryton
WSGIScriptAlias / /var/www/vhost/tryton.tryx.org/tryton_wsgi.py
<Directory /home/tryton/python/bin>
Require all granted
</Directory>
As referenced above, I have /var/www/vhost/tryton.tryx.org/tryton_wsgi.py:
import sys
import os
# Virtual environment's site-packages to the Python path
sys.path.insert(0, '/home/tryton/python/lib/python3.12/site-packages')
# Tryton application directory to the Python path
sys.path.insert(0, '/home/tryton/python/bin/trytond')
from trytond import config
from trytond.wsgi import app as tryton_server
def application(environ, start_response):
return tryton_server(environ, start_response)
Based on my research, I think this is all pretty vanilla stuff. When I request http://tryton.tryx.org, I get the disappointing:
**# Method Not Allowed**
**The method is not allowed for the requested URL.**
This is all new and exciting to me, so I’m looking for someone maybe a little less excitable, that has seen this before, and knows what it is and how to stop it.
Thanks for the help,
Chris.