From owner-freebsd-questions@freebsd.org Thu Mar 15 20:57:11 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 88116F52DCF for ; Thu, 15 Mar 2018 20:57:11 +0000 (UTC) (envelope-from peo@nethead.se) Received: from ns1.nethead.se (ns1.nethead.se [5.150.237.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns1.nethead.se", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2409C78198 for ; Thu, 15 Mar 2018 20:57:10 +0000 (UTC) (envelope-from peo@nethead.se) X-Virus-Scanned: amavisd-new at Nethead AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nethead.se; s=NETHEADSE; t=1521147036; bh=25KzaFHrYZp+KeTyuAfNsAmVLASbJUzyD0ZYGGBfVpA=; h=Subject:To:References:From:Date:In-Reply-To; b=qRe1dy5k3Na51Df46kpayrxO9+Mg1MhrnUtIdqBq5Sav7/7kkbNzJbe4HS3Rp6/N9 jZU/PjSImybsHq96P7f5kkSkGx+/CZsK2MdJ7lhM8Hq2uRVRn8NPCKVZ+Xc1SrY3tY JqLGzaK0TT6cW4XuV2+yHgRar2+JihaqQUics6O0= Subject: Re: Multiple joomla3 sites on one server To: freebsd-questions@freebsd.org References: From: Per olof Ljungmark Message-ID: <051d1e8a-f57e-19f3-6f4a-497a41ddd92d@nethead.se> Date: Thu, 15 Mar 2018 21:50:29 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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: Thu, 15 Mar 2018 20:57:11 -0000 Hi, On 03/15/18 20:49, Carmel NY wrote: > I am trying to figure out how, assuming it is even possible, to host three > joomla3 sites on one PC using apache24. > > By default, FreeBSD places joomla3 into the “/usr/local/www/joomla3” > directory. I have an “alias” set up in the httpd.conf file to direct requests > to the correct directory: Alias /Law "/usr/local/www/joomla3". Obviously, this > only works for one site. I need to configure three sites. I was told to copy > the joomla3 installation to a sub-directory under the root apache24 directory. > So, I created a sub-directory and copied the files to: > “/usr/local/www/apache24/data/Law”. I then created two new sub-directories in > the “data” directory and copied the joomla3 files there also. After making the > appropriate “Alias” entries in the httpd.conf file and restarting apache24, > everything seems to work correctly. I also copied the “Robots.txt” file > provided by joomla3 to the root directory > > Now, my question is, how do I update the joomla3 installation when a new > update is available? Can I just copy the new files from the joomla3 directory > directly into the newly created sub-directories? Would that overwrite new data > in those directories? It doesn’t appear to do so when I update the regular > joomla3 directory. > > I know I could wait until a new update is available and see what transpires; > however, I would rather not do it at all if it is not going to work. > Joomla has a built-in process to update, that is what we use, but if you have not changed any of the core files you can simply copy the new version over. I would recommend the built-in way though but note that this requires the core files to be owned by either the web server process or a ftp user so great care must be taken with permissions and .htaccess or in the server config. The ftp port does not have to be open to the public, it's just that Joomla needs a user being able to write the updates. The above goes for plugins and templates too. Best, //per