Cannot install caddy on centos7

1. The problem I’m having:

I am trying to install caddy on centos7 with below command

1.yum install yum-plugin-copr
2.yum copr enable @caddy/caddy
3.yum install caddy

when I run the command 2 wihch is yum copr enable @caddy/caddy I got an error
And I dont know what to do.

2. Error messages and/or full log output:

when I run the command first there is a note shows up

You are about to enable a Copr repository. Please note that this
repository is not part of the main Fedora distribution, and quality
may vary.

The Fedora Project does not exercise any power over the contents of
this repository beyond the rules outlined in the Copr FAQ at
<https://fedorahosted.org/copr/wiki/UserDocs#WhatIcanbuildinCopr>, and
packages are not held to any quality or securty level.

Please do not file bug reports about these packages in Fedora
Bugzilla. In case of problems, contact the owner of this repository.

Do you want to continue? [y/N]: 

After I input y to continue there is an error says:

[Errno 14] HTTPS Error 404 - Not Found

3. Caddy version:

No version cause I cannot install caddy.

4. How I installed and ran Caddy:

I was unable to install caddy

a. System environment:

LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.9.2009 (Core)
Release: 7.9.2009
Codename: Core

b. Command:

yum install yum-plugin-copr
yum copr enable @caddy/caddy

c. Service/unit/compose file:

Dont know what this part is.

d. My complete Caddy config:

No config due to unable to install caddy

5. Links to relevant resources:

No links.

Please fill out the template. We need to know the OS amongst other info.

ok, sorry.

CentOS Linux 7 reached EOL almost a year ago on 2024-06-30. The caddy copr repo stopped building for it (via the EPEL 7 target) soon after that. When using a copr repo, the front page will indicate which targets it builds for. Trying to enable the copr repo for an OS version not listed there will result in a 404.

Before working on installing caddy, I recommend you reinstall your OS to a currently maintained version, such as CentOS Stream 9 or 10 (which work with the EPEL 9 and 10 targets in copr).

3 Likes

thanks