|
Subject
|
Joomla Install Directories
|
| | Posted by | Outumuro (DH New User
) | | Posted on | 10/31/06 03:36 AM |
|
|
Is it possible for Joomla to be installed in one URL (like example.com/joomla) but be the site displayed at the main URL (like example.com)?
And if so... how?
Thanks in advance for any help, info, and suggestions. :)
|
|
|
|
Subject
|
Re: Joomla Install Directories
[re: Outumuro]
|
| | Posted by | Raz2133 (DH DreamNinja) | | Posted on | 10/31/06 04:36 AM |
|
|
In reply to:
Is it possible for Joomla to be installed in one URL (like example.com/joomla) but be the site displayed at the main URL (like example.com)?
Yes, this can be achieved a number of ways. Possibly the easiest is by adding the following line to your .htaccess file.
redirect 301 /index.html http://www.example.com/joomla/
There was a thread a while ago on doing a similar thing for a WordPress install which you might find interesting.
http://discussion.dreamhost.com/showflat.pl?Cat=&Board=forum_troubleshooting&Number=45808&page=&view=&sb=&o=&vc=1
Mark
-- Save $50 on DreamHost hosting using promo code SAVEMONEY ( Click for promo code details )
|
|
|
|
Subject
|
Re: Joomla Install Directories
[re: Outumuro]
|
| | Posted by | rlparker (DH DreamNinja) | | Posted on | 10/31/06 04:57 AM |
|
|
Those are very good instructions from Raz2123, and should do what you want, but I can't help but wonder why you don't just install the Joomla in your "home" directory?
There is certainly no reason why you *can't* do it the way you are describing; I'm just curious 
--rlparker
|
|
|
|
Subject
|
Re: Joomla Install Directories
[re: Raz2133]
|
| | Posted by | Outumuro (DH New User
) | | Posted on | 10/31/06 06:44 AM |
|
|
Hi Raz2133 & rlparker,
@[u]Raz2133[/u]: Thank you for the info. I'll keep the redirect example in case I need that. I did see that WordPress topic, it is a similar issue.
I'm hoping to find another solution if I can though other than redirection for my Joomla issue.
@[u]rlparker[/u]: Yes it would work, but I'm hoping not to use redirection (for this purpose) unless I have to.
-----
I tried to install (DH One-Click) Joomla to the home directory, but I got an error message that the directory was not empty and the installation failed. I have several folders and files there already (images, a forum, etc.).
I temporarily renamed the images folder and removed the files from the root, thinking maybe if nothing was named the same I could get Joomla installed into home... still failed as it seems Joomla needs a totally empty directory to install to.
Next I tried installing Joomla to /joomla but on Step 3 of the Joomla installer I used the URL and path of my home directory. The install completes, but then errors when accessing the Joomla Admin login (I sure this is because the install directory, URL and path all need to be identical... it was worth a shot).
I was hoping that Joomla would work like MT... install it anywhere I want, config it, login, and -then- tell it where I would like the content to reside.
I like MT and I will use that for what it is... a great blog. But MT is not Joomla... a true CMS.
Maybe another possibility is to back up the domain again, wipe it clean, install Joomla to home, then put everything else back in it's place. That would be a pain, other than redirection... I'm having brainlock. :P
I'm open to more suggestions. :)
|
|
|
|
Subject
|
Re: Joomla Install Directories
[re: Outumuro]
|
| | Posted by | rlparker (DH DreamNinja) | | Posted on | 10/31/06 07:37 AM |
|
|
It looks like you have a pretty good handle on the issues, and certainly one way to approach would be the "wipe" and redo, though I understand why you would rather not go that route (having done it myself more than once!)
One of the "quirks" of the "one-click" installs is that, in order for the Dreamhost "auto-install" scripts to handle them, and their updates, they *do* require their "target" directories to be empty. This is really only necessary when installing these applications using the "one-click" installer; if you install them traditionally (they are *very* automated already ), you *can* put them in a directory that has other directories and files (you just have to make sure you don't have more than one file with the same name . What this generally mean in practical use is that *one* application lives in the "domain.tld" directory, and the other live in either sub-directories or sub-domains (because of conflicting .htaccess files, re-write rules, index.php files, etc).
Since you have already built the required database (as part of the "one-click" install), you might consider just installing the code yourself by grabbing the latest Joomla package from joomla.org. Or, you can use the panel to "create another database", and then proceed if you wish.
While installing Joomla! yourself might seem to be complicated, it is really very simple and if you learn to do that, installing your own instances of Joomla!, WordPress, and other scripts yourself will give you a lot more flexibility.
I suggest you take a few minutes over at joomla.org reviewing the installation instructions before you decide how to proceed. You may well decide to "give it a go" yourself ion order to get the directory structure you want without a complete rebuild of the domain. Good luck, and post back if you want need more help or discussion.
Using sub-domains is also an option you should not overlook, as that gives you a lot of possibilities (Joomla on domain.tld, forum.domain.tld for your forum, blog.domain.tld for your WordPress blog, etc.)
I also think that, at the end of the day, you will not really be happy with "forcing" the url to be what you want via a "hard" redirection - it will add a small amount of additional latency to your site's response, and could, down the road, complicate things considerably as *that* redirection interacts with the re-write rules *many* of these applications (wordpress, joomla, etc) use to "prettify" their urls. While it may seem to be extra work to get it sorted now, it won't be any easier after you have all the applications successfully installed. If it were me, I'd bite the bullet and get it set up the way I really want it even if I do have to "wipe" and "reload" - but that is just my opinion, and YMMV! 
--rlparker
Edited by rlparker on 10/31/06 07:45 AM (server time).
|
|
|
|
Subject
|
Re: Joomla Install Directories
[re: rlparker]
|
| | Posted by | Outumuro (DH New User
) | | Posted on | 11/01/06 11:27 PM |
|
|
Thanks rlparker,
I appreciate the reply. I'll do the manual install and see how that works (couldn't be that much different than any other script app and another learning lesson for me). :)
Again thanks. :)
|
|
|
|