Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2018 21:50:29 +0100
From:      Per olof Ljungmark <peo@nethead.se>
To:        freebsd-questions@freebsd.org
Subject:   Re: Multiple joomla3 sites on one server
Message-ID:  <051d1e8a-f57e-19f3-6f4a-497a41ddd92d@nethead.se>
In-Reply-To: <BN6PR2001MB17308D5DE326163659C6C68080D00@BN6PR2001MB1730.namprd20.prod.outlook.com>
References:  <BN6PR2001MB17308D5DE326163659C6C68080D00@BN6PR2001MB1730.namprd20.prod.outlook.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?051d1e8a-f57e-19f3-6f4a-497a41ddd92d>