From owner-freebsd-questions@freebsd.org Mon Apr 2 20:57:25 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E240CF84C69 for ; Mon, 2 Apr 2018 20:57:24 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: from mail-yw0-x231.google.com (mail-yw0-x231.google.com [IPv6:2607:f8b0:4002:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7742171BE6 for ; Mon, 2 Apr 2018 20:57:24 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: by mail-yw0-x231.google.com with SMTP id r29so5414745ywa.12 for ; Mon, 02 Apr 2018 13:57:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=z0PbT+jTSx+rnBvRCTWH/Fww1/QuBc7d5MtjYfvsJcs=; b=noIEZMEPamap/TbkLlu6BpNKIJswRzS41SI+DEQmzm/ll2MSkz/Xzmfkrou6Cxq7ha y73JbHpdAaNCuQbZjrG19QmJaQhTOx6TioNS7EDFItObfR2sImyYPIWLZQo+tkIJ2B6H ALV48hSEpH6ROMif5rC39kzGBm7llmFdkaXEO+cUVR2LwYX/CTvpyoHa/4mMZGED4F75 u122NT3e4IXVy3qemdf11WGTRnodz12BOXyNgdDdXvBkZfgb1Q+pJCPE9GklqckMT7xU LgUuD6FyLQNpAAbC4TwiXjVEPqsf7T1LGcDLP5PUdZsdAUmoIOYyuz9n01yZX6WunqYA i/1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=z0PbT+jTSx+rnBvRCTWH/Fww1/QuBc7d5MtjYfvsJcs=; b=O2e4jeAosndVZFwppZxSAuNjcqsBvyVRZ2T8pQDRsULnbRvfjLTKJRqOsbtwHYi0Hm uKiy3vSs+EvMeZhSNo1dfWpRt35pNuhP/Uvf3yH2vEUbUs+vXFV4n4Torq2+lVcEC4uX XbTMV5jKzSWi9mD+82/LoHrlnG44W50B8j0PS11byLRLub6atSwhh/PX+86FAkNWG6AB vfflA00Q16bW1zSCtdEAHDpcGHPBidzO6L4vCZMENuRXr7SYimgH6BcVlNM5S2F28EL7 ej4poQp2/bRXGl/5EtgAQKoy5l0lcemWZKjroMIR8Fhx2U7CUPRUpUxPICCi+waE1FV6 E3kA== X-Gm-Message-State: ALQs6tBiTOp8Du17TMCHwd2HTzZkpVrQQeLfXmKHn+dvC4yMG7Whq6Q1 uibPZ6Ea662PCyxnL/ChEWDWhWsjeq8rwl8/J+A= X-Google-Smtp-Source: AIpwx48nuKM90D3KbxiSIymCZDsmwiY0e5VdW4xRyURaAJyEXD7GTmElKYnethyqq+BhgvPHQN2zVhQW7P1IPUfvffc= X-Received: by 10.129.105.8 with SMTP id e8mr6254719ywc.443.1522702643885; Mon, 02 Apr 2018 13:57:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:2e48:0:0:0:0:0 with HTTP; Mon, 2 Apr 2018 13:57:23 -0700 (PDT) In-Reply-To: <20180402204202.GA3145@gmail.com> References: <20180402204202.GA3145@gmail.com> From: William Dudley Date: Mon, 2 Apr 2018 16:57:23 -0400 Message-ID: Subject: Re: I broke my Apache 2.4 install and I need help! To: Matt Smith , freebsd-questions Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2018 20:57:25 -0000 I did as you suggested (I made a backup prior.) (I also have good backups, just not of the file that FreeBSD/Apache said is "no longer needed"). I got this message: "You may need to manually remove /usr/local/etc/apache24/httpd.conf if it is no longer needed." And the re-install didn't re-write that file from my attempt at getting things running. Apache is still totally hosed. I am confused as to why it says httpd.conf is no longer needed, but everything is totally hosed after I removed it. Bill Dudley This email is free of malware because I run Linux. On Mon, Apr 2, 2018 at 4:42 PM, Matt Smith wrote: > On Apr 02 15:56, William Dudley wrote: > >> FreeBSD 10.3 >> >> I stupidly obeyed the line "you may delete the httpd.conf file" that >> I saw when I did "pkg upgrade apache24". >> >> I didn't have a backup of that ONE file. I know, stupid. >> >> Anyway, now my server is hosed. I'm hosting a handful of domains, >> and have letsencrypt certs installed, that WERE working fine last week. >> >> I'm now getting this error: >> >> SSL Library Error: error:0906D06C:PEM routines:PEM_read_bio:no start line >> (Expecting: DH PARAMETERS) -- Bad file contents or format - or even just a >> forgotten SSLCertificateKeyFile? >> >> And all my virtual hosts are broken (all serving the default page, >> ignoring >> the >> DocumentRoot in the sites-enabled/foo.com.conf files >> >> Heaven knows what's broken. I'll PAY someone to ssh into my system and >> sort it out. Googling error messages isn't working, and I'm just not >> expert enough on my own to sort this out, apparently. >> >> Thanks, >> Bill Dudley >> east coast USA >> >> This email is free of malware because I run Linux. >> > > Try running pkg upgrade -f apache24 > > That will force a reinstall of the package and put the now deleted > httpd.conf file back again. Which would be enough to get things working > again *if* you've never changed anything from the defaults. > > If you have changed that file then you will have to remember what you > changed and make the same changes. And think about getting backups! > > -- > Matt >