Koozali.org: home of the SME Server

redirecting 2nd hostname set up for ibay to opt/myhostname2

Offline enchesss

  • ***
  • 69
  • +0/-0
Re: redirecting 2nd hostname set up for ibay to opt/myhostname2
« Reply #15 on: July 08, 2008, 07:51:13 AM »
Update:
have got both working.

had to change the order that some of the config commands were executed in:

Code: [Select]
config setprop joomla status enabled
config setprop joomla domain www.myvirtualdomain.com
expand-template /etc/httpd/conf/httpd.conf
sv h /service/httpd-e-smith

did not work alone
but entering the following did not work either

Code: [Select]
Warning:
This example refers to installation using the joomla rpm. When using the SiteMaker contrib, or doing additional installations of joomla or installing other rpms that do not setup default configuration db entries, it will be necessary to manually create the service entry and other db entries. In those cases you would do something like the following, as necessary.

config set joomla2 service
config setprop joomla2 DbName joomla2
config setprop joomla2 DbPassword joomla2passwordxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
config setprop joomla2 DbUser joomla2user
config setprop joomla2 Name Joomla2
config setprop joomla2 PublicAccess global
expand-template /etc/httpd/conf/httpd.conf
sv h /service/httpd-e-smith

Make sure you use the correct mysql db name, password & user, as already created for the joomla2 (or whichever) db in mysql.



i changed some of the order because
Code: [Select]
config show myhostname2
was not giving the status or domain values so i did the configuration in this order and it has worked!

Code: [Select]

config setprop myhostname2 status enabled
config delprop myhostname2 domain
config setprop myhostname2 URL cms
expand-template /etc/httpd/conf/httpd.conf
sv h /service/httpd-e-smith
config setprop myhostname2 status enabled
config setprop myhostname2 domain www.myhostname2.yi.org


This last configuration has worked after much fiddling around with ALL the previous configuration commnads in several different orders.

When setting up a second application the order does matter but the way it has been done above could probably be made simpler.

Thanks for your help Mary - sorry for needing so much help. Hope it has sunk in!