From owner-freebsd-questions@freebsd.org Mon Apr 2 21:33:15 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 A6FB4F86991 for ; Mon, 2 Apr 2018 21:33:15 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: from mail-wr0-x229.google.com (mail-wr0-x229.google.com [IPv6:2a00:1450:400c:c0c::229]) (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 2A33173492 for ; Mon, 2 Apr 2018 21:33:15 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: by mail-wr0-x229.google.com with SMTP id d1so15711084wrj.13 for ; Mon, 02 Apr 2018 14:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8caVuxrbMbx7tAcLKdXsANvOI7AfDbW9E4WqzC6/sHM=; b=WRudvRZ5tphBcnaL9m/gr8uoX2oIQ4sBjii5BinQaRY12RBplViajo/ZcV0ev/gQHM ibPmiWvnLXgVyCtZTK33dScA7S7Np+zh9yi5IDufyxtVzPzU77uj2u0G5B8+M23WOtvU mqVX3HAuBYa8aTgVWKXI7I+Jpj3Eu0FXVMpQtDBtZPJt1B6nQuH1wjulFMCbQm4/aFVs O3mYwaUcFiMrsdE38TWmxNCqNqumbsgEAyfbhO39qS5GC2c+QKytrEVV33DNibm+kiZV gpaR3AytR/JLZfqviMlLbd+OLfNw2RJhnxPNPVLc+aQYLckfaryxVIUxiYGsh+OG7fm2 HZcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=8caVuxrbMbx7tAcLKdXsANvOI7AfDbW9E4WqzC6/sHM=; b=diCv3nXOyb3Jm8vdYHQVRQ/l9ICIaGEHupsX0+6zocMGw7jTgsLsC21CRI6ULoPRuw +2D+we4+1BLU9uZQTUEZqW+f04lWnYak3L1+8ZzZ8H8DZR1RlQ+dUD9aMH4/uNw8F3Kk CIExYBTOBkdipLC55pQQep4qsrM313TX83dsOqIqwShxdLcGSKOFUrlyb6g6pPy7Di4r ymvhSApkCuHwvDOpH1eEePWQpREdMZ3fywEM2ipLyV+t2h63OvZ19wpqdY0k2SdO7iCI Can4p3YRbBpBJTG0QnRARp/VvCX5GVETLoUa9JnDx/VRxPX1pMB8BodUoD0ApB9X+86r d2SA== X-Gm-Message-State: AElRT7HQu/DrLY6ykOpWMcfWgJmRtlWQRei+q1gh2w247tKZ/Kn6uz9d loOh5qHMXXdkgj165zOfajo= X-Google-Smtp-Source: AIpwx4+W6vPKGnjZoqSOioJmP5N04COFVGQ3PJKj2QJrY2LY9WyZO40P5G5GUwjGAwuExEtFKDpX4w== X-Received: by 10.223.161.135 with SMTP id u7mr7989558wru.184.1522704794131; Mon, 02 Apr 2018 14:33:14 -0700 (PDT) Received: from gmail.com (tao.xtaz.uk. [2001:8b0:fe33::10]) by smtp.gmail.com with ESMTPSA id l41sm2627540wrl.2.2018.04.02.14.33.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Apr 2018 14:33:13 -0700 (PDT) Date: Mon, 2 Apr 2018 22:33:11 +0100 From: Matt Smith To: William Dudley Cc: freebsd-questions Subject: Re: I broke my Apache 2.4 install and I need help! Message-ID: <20180402213311.GB3145@gmail.com> Mail-Followup-To: Matt Smith , William Dudley , freebsd-questions References: <20180402204202.GA3145@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) 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 21:33:15 -0000 On Apr 02 16:57, William Dudley wrote: >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. > It's because a pkg upgrade is actually doing a pkg delete and then a pkg install. You are seeing that message because it's telling you that if you no longer want to use apache after deleting it then you can remove that file. But then it's actually installing the upgraded version once again. Ok, next idea. Are there any files called httpd.conf.sample? If so you can probably copy that. Packages usually install a .sample file and then copy them to the proper file if it doesn't already exist. Failing that you may have to move the old apache directory out of the way so it doesn't exist at all and then force the reinstall, copy the file out of it into your original directory, and then move it back again. -- Matt