Trac + Subversion + Apache
Bonjour tout le monde.
D'abord l'explication en français, puis en anglais :D
Bonjour tout le monde,
J'ai déployé subversion, python et trac sur Windows Server 2003 R2. J'ai utilisé cette documentation http://trac.edgewall.org/wiki/TracOnWindows pour la configuration.
Tout fonctionne très bien en mode standalone (tracd). Je peux ajouter des tickets, voir les différentes versions de mon projet, etc.
J'ai vérifié que dans Apache, les lignes suivantes y soient bien :
Code:
1 2 3 4 5 6
| LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_svn_module "C:/Program Files/Subversion/bin/mod_dav_svn.so"
LoadModule authz_svn_module "C:/Program Files/Subversion/bin/mod_authz_svn.so"
LoadModule sspi_auth_module modules/mod_auth_sspi.so
LoadModule python_module modules/mod_python.so |
Ensuite, j'ai défini un hôte virtuel comme ceci :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| <VirtualHost 157.26.96.22:443>
ServerName subversion.cpaijb.ch:443
ErrorLog C:/xampp/apache/logs/subversion.cpaijb.ch-error_log
CustomLog C:/xampp/apache/logs/subversion.cpaijb.ch-access_log common
DocumentRoot "C:/SubVRepos/pages"
SSLEngine on
#SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile conf/ssl.crt/server.crt
SSLCertificateKeyFile conf/ssl.key/server.key
<Location /svn>
DAV svn
SVNParentPath C:/SubVRepos/Repositories
SSLRequireSSL
AuthzSVNAccessFile C:\SubVRepos\auth\access.conf
# SSPI Config
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIDomain "EISI"
# Do not authorize basic authentication !
# (password will be sent in plain text otherwise)
SSPIOfferBasic On
SSPIOmitDomain On
SSPIUsernameCase lower
AuthName "CPAI-JB Subversion repository"
Require valid-user
# End SSPI Config
</Location>
# TRAC Config
Alias /trac "C:/Python25/Lib/site-packages/Trac-0.11.5-py2.5-win32.egg/trac/htdocs"
<Location /projects>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv "C:/SubVRepos/trac/devCPAIJB"
PythonOption TracUriRoot /projects
# SSPI Config
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIDomain "EISI"
SSPIOmitDomain On
SSPIUsernameCase lower
Require valid-user
# End SSPI Config
</Location>
<Directory "C:/Python25/Lib/site-packages/Trac-0.11.5-py2.5-win32.egg/trac/htdocs">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "C:/Python25/Lib/site-packages/svn_python-1.6.4-py2.5-win32.egg">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost> |
Depuis un autre ordinateur, j'ai bien accès à mon site trac avec demande d'authentification. Je vois bien le site mais j'ai cette erreur : Warning: Can't synchronize with the repository (Unsupported version control system "svn": "DLL load failed: The specified procedure could not be found." ). Look in the Trac log for more information.
Je ne comprends pas pourquoi ! En lancer le site avec tracd, il n'y a aucun souci. Pourriez-vous m'aider s'il vous plaît ?
D'avance, un énorme merci !!!!
----------------------------------------------------------------------
Good morning,
I just speak a little english.
I deployed subversion, python and trac on a Windows Server 2003 R2. I used you documentation here : http://trac.edgewall.org/wiki/TracOnWindows
Everything works fine in standalone mode (tracd). I see my project subversion, it's fine.
Then I configure Apache and virtual host. In "httpd.conf", I have theses lines :
Code:
1 2 3 4 5 6
| LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_svn_module "C:/Program Files/Subversion/bin/mod_dav_svn.so"
LoadModule authz_svn_module "C:/Program Files/Subversion/bin/mod_authz_svn.so"
LoadModule sspi_auth_module modules/mod_auth_sspi.so
LoadModule python_module modules/mod_python.so |
Then I write my virtual host like this :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| <VirtualHost 157.26.96.22:443>
ServerName subversion.cpaijb.ch:443
ErrorLog C:/xampp/apache/logs/subversion.cpaijb.ch-error_log
CustomLog C:/xampp/apache/logs/subversion.cpaijb.ch-access_log common
DocumentRoot "C:/SubVRepos/pages"
SSLEngine on
#SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile conf/ssl.crt/server.crt
SSLCertificateKeyFile conf/ssl.key/server.key
<Location /svn>
DAV svn
SVNParentPath C:/SubVRepos/Repositories
SSLRequireSSL
AuthzSVNAccessFile C:\SubVRepos\auth\access.conf
# SSPI Config
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIDomain "EISI"
# Do not authorize basic authentication !
# (password will be sent in plain text otherwise)
SSPIOfferBasic On
SSPIOmitDomain On
SSPIUsernameCase lower
AuthName "CPAI-JB Subversion repository"
Require valid-user
# End SSPI Config
</Location>
# TRAC Config
Alias /trac "C:/Python25/Lib/site-packages/Trac-0.11.5-py2.5-win32.egg/trac/htdocs"
<Location /projects>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv "C:/SubVRepos/trac/devCPAIJB"
PythonOption TracUriRoot /projects
# SSPI Config
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIDomain "EISI"
SSPIOmitDomain On
SSPIUsernameCase lower
Require valid-user
# End SSPI Config
</Location>
<Directory "C:/Python25/Lib/site-packages/Trac-0.11.5-py2.5-win32.egg/trac/htdocs">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "C:/Python25/Lib/site-packages/svn_python-1.6.4-py2.5-win32.egg">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost> |
By an other computer, I can access to my trac site with authentification, but I have this error : Warning: Can't synchronize with the repository (Unsupported version control system "svn": "DLL load failed: The specified procedure could not be found." ). Look in the Trac log for more information.
Can you help me please ? I don't know what is the problem and I already read a lot of forum but no solution…
THANK YOU SO MUCH !!!!