How to run Joomla 2.5 live from subfolder

Joomla versions 2.5, 1.7 and 1.6 are all end-of-life since December 31st 2014 and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
rgreeniwa
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Sat Jun 30, 2007 11:38 pm

How to run Joomla 2.5 live from subfolder

Post by rgreeniwa » Thu Jun 07, 2012 11:30 pm

We have a Joomla 2.5 test site running in a subfolder on a site that's currently live with Joomla 1.5.

We want to replace the live 1.5 site with the new 2.5 site. Can the new site be run from its subfolder and not have to completely move and overwrite our existing 1.5 site?

I know there are other threads here dealing with some variants of this issue, but they all seem to be dealing with Joomla 1.5, not 2.5.

User avatar
stutteringp0et
Joomla! Ace
Joomla! Ace
Posts: 1389
Joined: Sat Oct 28, 2006 11:16 pm
Location: Texas
Contact:

Re: How to run Joomla 2.5 live from subfolder

Post by stutteringp0et » Fri Jun 08, 2012 12:40 am

Alter your webserver configuration to point the document root to the new folder. Easy as pie.

This is how I'm developing a new site for one of my clients. Right now they can test and configure it live and when it's ready it's only a slight configuration and done.
My extensions: http://extensions.joomla.org/profile/pr ... ails/18398
Honk if this signature offends you.

rgreeniwa
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Sat Jun 30, 2007 11:38 pm

Re: How to run Joomla 2.5 live from subfolder

Post by rgreeniwa » Fri Jun 08, 2012 12:52 am

Thanks for the quick reply!

I'm embarrassed to say that I don't know how to "configure the web server" to point to the root. Is there a file to edit for that & if so, how is that done?

User avatar
stutteringp0et
Joomla! Ace
Joomla! Ace
Posts: 1389
Joined: Sat Oct 28, 2006 11:16 pm
Location: Texas
Contact:

Re: How to run Joomla 2.5 live from subfolder

Post by stutteringp0et » Fri Jun 08, 2012 3:21 am

If you're running apache, it's httpd.conf, probably located in /etc/apache2, or /etc/httpd (somewhere in /etc)

Lets say your website lives in /var/www (pretty common)

somewhere in the httpd.conf, you'll see /var/www

If your new site is in /var/www/newsite, then you would just modify the line from /var/www to /var/www/newsite and restart the webserver.
My extensions: http://extensions.joomla.org/profile/pr ... ails/18398
Honk if this signature offends you.

rgreeniwa
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Sat Jun 30, 2007 11:38 pm

Re: How to run Joomla 2.5 live from subfolder

Post by rgreeniwa » Fri Jun 08, 2012 4:09 am

I use Hostgator, so not sure I have access to the linux files you suggest.

My live site is in ..public_html/cayeresorts.com. The new site I need to go live is in ..public_html/cayeresorts.com/joomla25.

How does this equate to what you are talking about?

User avatar
stutteringp0et
Joomla! Ace
Joomla! Ace
Posts: 1389
Joined: Sat Oct 28, 2006 11:16 pm
Location: Texas
Contact:

Re: How to run Joomla 2.5 live from subfolder

Post by stutteringp0et » Fri Jun 08, 2012 4:52 am

Oh, yeah - they're not going to let you do that.

Um, you'll have to actually move the contents from your joomla25 directory.
My extensions: http://extensions.joomla.org/profile/pr ... ails/18398
Honk if this signature offends you.

User avatar
humvee
Joomla! Master
Joomla! Master
Posts: 14704
Joined: Wed Aug 17, 2005 10:27 pm
Location: Kent, England

Re: How to run Joomla 2.5 live from subfolder

Post by humvee » Fri Jun 08, 2012 9:04 am

[Mod note: Moved from Upgrade Forum to Installation Forum;]

User avatar
humvee
Joomla! Master
Joomla! Master
Posts: 14704
Joined: Wed Aug 17, 2005 10:27 pm
Location: Kent, England

Re: How to run Joomla 2.5 live from subfolder

Post by humvee » Fri Jun 08, 2012 9:10 am

Create an .htaccess file that will sit in your web_root/ directory and you can add modifications to this to achieve the redirection along with other aspects that you may want to consider.
Read this example http://docs.joomla.org/Htaccess_examples_%28security%29 and refer to other pages on "htaccess" in the docs for further details.

User avatar
stutteringp0et
Joomla! Ace
Joomla! Ace
Posts: 1389
Joined: Sat Oct 28, 2006 11:16 pm
Location: Texas
Contact:

Re: How to run Joomla 2.5 live from subfolder

Post by stutteringp0et » Fri Jun 08, 2012 4:18 pm

Yikes, a redirect? I'd rather do it the hard way than the ugly way.
My extensions: http://extensions.joomla.org/profile/pr ... ails/18398
Honk if this signature offends you.

rgreeniwa
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Sat Jun 30, 2007 11:38 pm

Re: How to run Joomla 2.5 live from subfolder

Post by rgreeniwa » Fri Jun 08, 2012 5:52 pm

I really appreciate both of your suggestions, but I'm afraid there's not enough specifics for me to feel confident about doing this. Here are some of my main questions:

1. If I go the copy route, then I just copy all the files & subdirectories from the new installation (../joomla25) to the root and not worry about overwriting the existing joomla 1.5 installation there? That done, should it work without any further modifications?

2. If I go Andy's route, do I just modify the .htaccess file to point to the ../joomla25 subfolder? If so, what entries need to be made in that file to do that? And, if I go this route, then can I assume no other files need be moved or altered?

All this would be done after a backup, of course, but we can't afford for this site to be broken for an indefinite period.

Thanks again for the help -- if both of you can be a bit more specific, it would be great. I would have assumed that this is a common need, since most folks would develop a new site in another folder until it's ready to run. But I haven't found any directions to follow in the Joomla documentation yet. Maybe I'm not using the right search terms...

rgreeniwa
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Sat Jun 30, 2007 11:38 pm

Re: How to run Joomla 2.5 live from subfolder

Post by rgreeniwa » Fri Jun 08, 2012 6:02 pm

I just realized I should clarify what we're trying to do a bit more:

We have a live Joomla 1.5 site (www.cayeresorts.com) that we wanted to run a joomla 2.5 template on, so rather than upgrading the current 1.5 installation, we just duplicated the content in a Joomla 2.5 site in a subdirectory in the same public_html. Now we need to get this 2.5 version live: www.cayeresorts.com/joomla25

Hope that helps!

User avatar
humvee
Joomla! Master
Joomla! Master
Posts: 14704
Joined: Wed Aug 17, 2005 10:27 pm
Location: Kent, England

Re: How to run Joomla 2.5 live from subfolder

Post by humvee » Fri Jun 08, 2012 9:54 pm

If you want to dispose of the 1.5 site entirely which was not too clear previously with all the other dribble that had been going on then:
  1. Simply (for security/safety sake) take a back-up of the 1.5 site and database, and keep this safe.
  2. Simply (for security/safety sake) take a back-up of the 2.5 site and database, and keep this safe.
  3. Delete the files relating to the 1.5 site from its current position. (do not delete any non-Joomla files that might exist in the web_root/ directory
  4. DROP the database relating to the 1.5 site.
  5. Move the files for the 2.5 site to the previous 1.5 location. (either with the host control panel if it allows or with an ftp client)
  6. Edit the configuration.php file for the 2.5 site to show the change of location to any paths if applicable.
  7. As the database is not being moved there is nothing to be done to that or its settings in the configuration.php file.

rgreeniwa
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Sat Jun 30, 2007 11:38 pm

Re: How to run Joomla 2.5 live from subfolder

Post by rgreeniwa » Fri Jun 08, 2012 11:37 pm

Thanks Andy --

Yes, we want to REPLACE the existing 1.5 version site with the 2.5 version (new template, some new content, etc.). Sorry if that wasn't clear before.

I've backed up both the existing and the new site with Akeeba, so it looks like I'm ready to bite the bullet...


Locked

Return to “Installation Joomla! 2.5”