From owner-freebsd-questions@freebsd.org Mon Apr 2 21:55:33 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 D7272F87E21 for ; Mon, 2 Apr 2018 21:55:32 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: from mail-yw0-x22a.google.com (mail-yw0-x22a.google.com [IPv6:2607:f8b0:4002:c05::22a]) (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 70837744D8 for ; Mon, 2 Apr 2018 21:55:32 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: by mail-yw0-x22a.google.com with SMTP id y64so5471936ywa.3 for ; Mon, 02 Apr 2018 14:55:32 -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=2/Gqo0/n5hDUwW/v7v7Z+moK7AA9/ZS95K9QPCh/z+k=; b=Qz9klIBDzg1UTa8oKZ71iz5YCSfPxpIDelLMJs0tuL0/f+/T5Sh4jS6MTW7J5Se02B acwHesydFPfBNyMBQd/7V0Ii6tITeSRakOO33owKybldhz1mnc+lmi+QQefouuhJq4ZZ r0t/RqGB7iO697lZ2S3KM+Gst8/RDQS9+DargHDhXY3x3ACds9O8eTnsOsV5UAD8472C Hrwf/yWdKTDGLFbeuMp26wyFphCMlXnBPNFnqA9JKRKq1Y1vYztKNwCq6btucOb4Kec8 N+bBkej2c9Cb+bKh2wSl5YTtdrRihvOVM4u4tsQcKoMFpL9iwFgHMkQ18HM4iW7Pi6DO pTig== 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=2/Gqo0/n5hDUwW/v7v7Z+moK7AA9/ZS95K9QPCh/z+k=; b=s80GBGdNE+Wf7Cx/T9S6si6wvwWFua+Jdn053CwYqfBnT1/WyM6cJX+yx0+sLaYdYh hsfbRpCXTBQB0HlYp+1Zh5+Ld6OyiE8khbm1gcpgSNu/dDZuELH/7uMFIKS9xZugc0qx +IElj19FnV6DrrFkbd4sa5S7ad5RuZSgKsmqCT9xC8ro2SdFgPGu/KyXUwwNYY96QhAg YhbwSeoRGehJ8iwAOsxXj22P3deFfd1YOMcSMVa24Bzju3S+4KLZezVUizxXYlW8uCrx r6IcH5MlPXvbllt1LIuWYIyaeGcd/mngJ3CYCicI/T1eny+oxHBq7vfUUfVeBEoTn48e l/EQ== X-Gm-Message-State: AElRT7E/EXt3IpdXYiEVRAHearpCK7upWB60IfhbiNHCzRd+00rqZtq4 ZBzx+nZy2eDf/kxgtiA4ec7uWV6CqdpwaA4w8YU= X-Google-Smtp-Source: AIpwx4+24r1ACwMNJX3yRice/uKl4Pdc67feZN6heRoiw0Y1pq0sRa7i6Zlb1NF9d0If9q7xNy0FrCsLwO7TC+dxMpE= X-Received: by 10.129.26.199 with SMTP id a190mr6524089ywa.207.1522706131783; Mon, 02 Apr 2018 14:55:31 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:2e48:0:0:0:0:0 with HTTP; Mon, 2 Apr 2018 14:55:31 -0700 (PDT) In-Reply-To: <20180402213311.GB3145@gmail.com> References: <20180402204202.GA3145@gmail.com> <20180402213311.GB3145@gmail.com> From: William Dudley Date: Mon, 2 Apr 2018 17:55:31 -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 21:55:33 -0000 When I blow away /usr/local/etc/apache24 (really, rename it to something else) and do "pkg upgrade -f apache24", I get the following messages: [1/1] Reinstalling apache24-2.4.33... ===> Creating groups. Using existing group 'www'. ===> Creating users Using existing user 'www'. [1/1] Extracting apache24-2.4.33: 100% You may need to manually remove /usr/local/etc/apache24/extra/httpd-autoindex.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/extra/httpd-dav.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/extra/httpd-default.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/extra/httpd-info.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/extra/httpd-languages.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/extra/httpd-manual.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/extra/httpd-mpm.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/extra/httpd-multilang-errordoc.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/extra/httpd-ssl.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/extra/httpd-userdir.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/extra/httpd-vhosts.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/extra/proxy-html.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/httpd.conf if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/magic if it is no longer needed. You may need to manually remove /usr/local/etc/apache24/mime.types if it is no longer needed. Why does it say this? It makes no sense. This is during the *install* phase, remember. The install creates an httpd.conf which is identical to http.conf.sample, of which I had a copy. Anyway, still hosed. Virtualhosts is totally broken, but apache will serve ONE web site. Bill Dudley This email is free of malware because I run Linux. On Mon, Apr 2, 2018 at 5:33 PM, Matt Smith wrote: > 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 >