Koozali.org: home of the SME Server

Want Joomla to load as my homepage not what's in Primary

Offline lucho115

  • *****
  • 209
  • +0/-0
    • http://www.elac.com.ar
Want Joomla to load as my homepage not what's in Primary
« Reply #15 on: March 20, 2007, 06:27:23 PM »
i dont care the others cms, i ask for joomla because maybe only joomla have some issue installing into an IBAY, thats was the spirit of my question, and if you know the answer please put it, just that.
tks

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Want Joomla to load as my homepage not what's in Primary
« Reply #16 on: March 20, 2007, 06:33:16 PM »
Every <put your script here> script will work from an ibay. But the prefered way of installing it would be into /opt (security reasons). Does this answer your question?

And yes i do know the answer but i guess you're too lazy or ignorant to check some other posts. There have been quite a few posts that explain why you should install in /opt not in an ibay and they have nothing to do with yoomla. They talk about ALL CMS scripts and joomla is not special.
Dungog is making secure scripts and they are installed just where they should be.

Now i hope that you can put this topic to rest because you really should read some other posts about why and why not install something in ibay.
"It should just work" if it doesn't report it. Thanks!

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Want Joomla to load as my homepage not what's in Primary
« Reply #17 on: April 13, 2007, 05:26:01 AM »
Lucho,

If you really, really want to do this, then here is how I did it on a test server.

mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts

cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts

cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent .

cp 20IbayContent 19IBayContent

pico -w 19IbayContent
    remove everything after line 28, except the last }
    modify the DocumentRoot line and replace $basedir/html with /opt/joomla
    Change the ScriptAlias and Alias lines to suit you.      

pico -w 20IbayContent
    (remove lines 14 - 29)  This is what you have in 19IbayContent.  If you don't remove these lines, then the last entry for DocumentRoot wins and you will be taken to the default index.html file in the Primary/html ibay directory.

expand-template /etc/httpd/conf/httpd.conf

pico -w /etc/httpd/conf/httpd.conf
  search for joomla - you should see that it is now set as the documentroot

/etc/rc7.d/S86httpd-e-smith restart

Open your browser to the servers default page and joomla should come up.

I have the sample data loaded and when I click on an article the url has www.mydomain.com/joomla/.... appended.  If you don't want joomla to appear here, then
pico -w /opt/joomla/configuration.php and change line 10 and just drop the /joomla from the end.  At least that's all I had to do.

The only thing you have to look for is if there were any changes made to 20IbayContent from any upgrades, that would need to be updated in your templates-custom directory.

I don't know joomla well enough to do a lot of testing, but that is what worked for me.

If you try this, I'd like to know how it worked out for you.

Good Luck,

John Bennett
......

Offline haymann

  • *
  • 212
  • +0/-0
Want Joomla to load as my homepage not what's in Primary
« Reply #18 on: July 25, 2007, 11:12:44 PM »
Quote from: "william_syd"
How about Symlinks...

Back up old homepage.
Code: [Select]
mkdir -p /root/oldsite
mv /home/e-smith/files/ibays/Primary/html/* /root/oldsite/

Lets link the Primary ibay to the joomla files
Code: [Select]
ln -s /opt/joomla/* /home/e-smith/files/ibays/Primary/html/
Lets allow symlinks to be used in the primary ibay
Code: [Select]
db accounts setprop Primary FollowSymLinks enabled
Lets set the PHP sandbox for the primary ibay the same as joomla directory
Code: [Select]
db accounts setprop Primary PHPBaseDir /opt/joomla/:/tmp
PHP errors will display a blank page. Lets display the actual errors
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/php.ini
cp /etc/e-smith/templates/etc/php.ini/30ErrorHandling /etc/e-smith/templates-custom/etc/php.ini/30ErrorHandling

Lets edit our custom template
Code: [Select]
nano -w /etc/e-smith/templates-custom/etc/php.ini/30ErrorHandling
Alter
Code: [Select]
display_errors = Off
to
Code: [Select]
display_errors = On
Control-x and save

Expand our new configuration files
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
expand-template /etc/php.ini

Now restart Apache
Code: [Select]
/etc/rc.d/rc7.d/S86httpd-e-smith restart
This worked great with the Worpress contrib I just installed, but I had a quick question. I I ever want to undo this for some reason, is there more to it than
Code: [Select]
db accounts setprop Primary FollowSymLinks disabledOr will that even work at all?
Thanks a bunch!
Ryan

Offline JohnG

  • ****
  • 89
  • +0/-0
Re: Want Joomla to load as my homepage not what's in Primary
« Reply #19 on: July 26, 2007, 06:11:39 AM »
Quote from: "pwgsc1"
Hi Folks,

I've installed the Joomla contrib from Dungog that puts it in the  /opt folder.  To get to it I have to put in my URL /joomla.  Now that I have joomla configed I want to setup  my server so when someone hit's my URL, it automatically goes to /opt/joomla.

I'm thinking it's an Alias entry in httpd.conf???  Am I close or way off base?

Thanks,

Craig

I took the quick and dirty approach and just changed index.htm in the primary to refresh to joomla:
Code: [Select]
<html>
<head>
<META http-equiv="refresh" content="0;URL=http://www.mydomain.com/joomla">
</head>
</html>