You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When enabling git for a domain or importing a domain with git, apache2 won’t (re)start.
Jul 12 12:02:54 cloud11.website.com apachectl[11746]: AH00526: Syntax error on line 46 of /etc/apache2/sites-enabled/website.com.conf:
Jul 12 12:02:54 cloud11.website.com apachectl[11746]: Invalid command 'DAV', perhaps misspelled or defined by a module not included in the se>
Jul 12 12:02:54 cloud11.website.com apachectl[11743]: Action 'start' failed.
Jul 12 12:02:54 cloud11.website.com apachectl[11743]: The Apache error log may have more information.
Jul 12 12:02:54 cloud11.website.com systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Which causes the error at apache2 startup, because mod_dav and mod_dav_fs are not enabled by default.
I understood that DAV is no longer supported. If that is the case enabling git should also no longer add DAV lines to the config files. And git should only be supported through ssh and no longer through DAV. Which also means the git example commands shown should be updated as they right now tell users how to use git through DAV.
As an alternative it might be a good idea to check if mod_dav and mod_davfs are enabled. It looks like there is a check for mod_rewrite. If there was another check for mod_dav and mod_davfs and an exception is thrown when they are not enabled, then at least apache2 would restart properly.
The text was updated successfully, but these errors were encountered:
I suppose that if the Git module isn't setting up access via HTTP, there isn't much point using it other than for repository management. Unless there's another way to grant HTTP access to a repository?
Repository management in virtualmin would be rather convenient for me even if connections are only allowed through ssh. If DAV support is removed, the git folder should probably be moved out of the public_html folder.
That or enabling mod_dav with a big fat warning that it is not quite secure on a shared server.
Testing the beta install on Debian 11.
When enabling git for a domain or importing a domain with git, apache2 won’t (re)start.
The problem is that the git module adds DAV to the apache config file:
DAV on
Which causes the error at apache2 startup, because mod_dav and mod_dav_fs are not enabled by default.
I understood that DAV is no longer supported. If that is the case enabling git should also no longer add DAV lines to the config files. And git should only be supported through ssh and no longer through DAV. Which also means the git example commands shown should be updated as they right now tell users how to use git through DAV.
As an alternative it might be a good idea to check if mod_dav and mod_davfs are enabled. It looks like there is a check for mod_rewrite. If there was another check for mod_dav and mod_davfs and an exception is thrown when they are not enabled, then at least apache2 would restart properly.
The text was updated successfully, but these errors were encountered: