Koozali.org: home of the SME Server

SME 8.0 & sitex

Offline Chummers

  • 15
  • +0/-0
SME 8.0 & sitex
« on: July 10, 2013, 11:47:27 PM »
Hi all,

I am wondering if i could get some help please?

I have installed SME 8.0 and sitex as a contrib.

I would now like to change the url from http://<hostname>/sitex to http://<hostname>

any ideas how i can achieve this?

I have tried changing the 50DocRoot template, and restarting but to no avail :(

I have also tried to change the site name in sitex, but that then puts two slashes in the url and pages can not be found ie http<servername>//admin.php

Thanks in advance!

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: SME 8.0 & sitex
« Reply #1 on: July 11, 2013, 05:52:10 AM »
Chummers

Change it in the admin panel of sitex
http://wiki.contribs.org/SiteX
see
Setup section

Follow up changes with
signal-event sitex-post-upgrade


Quote
I have also tried to change the site name in sitex, but that then puts two slashes in the url and pages can not be found ie http<servername>//admin.php

Did you follow the instructions fully & correctly.
Try again I suggest.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Chummers

  • 15
  • +0/-0
Re: SME 8.0 & sitex
« Reply #2 on: July 11, 2013, 08:51:55 AM »
Hi janet,

Thanks for taking the time to reply..

I have looked through the setup, and although there is the bit the says you need to change the url for he fully qualified domain name, there was nothing specific to the url, so what i did was to have another try, and set the site name to https://www.<domainname.co.uk>

Now i get

index of /

but when i try to get back to sitex to change anything i keep hitting blank pages - i assume that i is because the link to it has been changed - how do i restore to try again??

Cheers

Offline Chummers

  • 15
  • +0/-0
Re: SME 8.0 & sitex
« Reply #3 on: July 11, 2013, 08:53:50 AM »
oh and if i do
https://<domainname.co.uk>/index.php

i get

Not Found

The requested URL /index.php was not found on this server.

Offline Chummers

  • 15
  • +0/-0
Re: SME 8.0 & sitex
« Reply #4 on: July 11, 2013, 05:39:19 PM »
Hi all,

Right, since i could not get access to ant of the sitex pages, i have uninstalled sitex and re-installed.

So i am back to the beginning again, however the only place i can see to change the URL is in the site preferences on the general management section, logged in as admin.

The first option is "site URL" which is currently set to http://www.<domainname>/sitex

if i change that to http://www.<doaminname> i just get the original SME website under construction message..

how do i change the url to point a browser at www.<domainname> to opt/sitex/ ?


Thanks in advance!
« Last Edit: July 11, 2013, 11:13:03 PM by Chummers »

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: SME 8.0 & sitex
« Reply #5 on: July 11, 2013, 11:30:35 PM »
According to the doocs..

After install http://servername/sitex to get to the interface to setup - is this occuring for you?

Then http://www.mysmedomain.com/sitex to access site as per normal and then run
signal-event sitex-post-upgrade to delete setup files - is this what is happening for you?

You noted that you are using
https://www.<domainname.co.uk>
and
https://<domainname.co.uk>/index.php

note httpS
None of which are described in the docs as how to access the site post install..

This, https://www.<domainname.co.uk>, is not going to work out of the box without the ip addy pointing to the sitex "site"

The docs clearly states that after setting the FQDN the site is accessable from http://www.mysmedomain.com/sitex..

To have it accessable from http://www.mysmedomain.com takes more than just changing a URL in sitex..

heres a tute on redirecting a url to the /opt/xxxx

I am sure there are others here who can explain it better
--
qui scribit bis legit

Offline Chummers

  • 15
  • +0/-0
Re: SME 8.0 & sitex
« Reply #6 on: July 11, 2013, 11:46:03 PM »
Quote
After install http://servername/sitex to get to the interface to setup - is this occuring for you?
Yes this is happening :)

Quote
Then http://www.mysmedomain.com/sitex to access site as per normal and then run
signal-event sitex-post-upgrade to delete setup files - is this what is happening for you?
Yes this is happening too :)

Quote
You noted that you are using
https://www.<domainname.co.uk>
and
https://<domainname.co.uk>/index.php

note httpS
None of which are described in the docs as how to access the site post install..

This, https://www.<domainname.co.uk>, is not going to work out of the box without the ip addy pointing to the sitex "site"

This was a bit of a mistake on my part, at first I was trying to copy/paste the url to see if it would work, but forgot that it resolves to https:

Quote
The docs clearly states that after setting the FQDN the site is accessable from http://www.mysmedomain.com/sitex..
Yes you are right, and it does, i can set it up and configure without any problems, however if i want some one externally to access it, i will have to provide the /sitex bit at then end of the domain, i would really like this to be at the default primary ibay

Quote
To have it accessable from http://www.mysmedomain.com takes more than just changing a URL in sitex..
I thought as much :(

Quote
heres a tute on redirecting a url to the /opt/xxxx
I think i have seen it, but its a bit complicated for me :(

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: SME 8.0 & sitex
« Reply #7 on: July 12, 2013, 12:04:35 AM »
I think i have seen it, but its a bit complicated for me :(

Na, jump in the waters only waste deep :-)

Just work your way through it..somone here may help and post a less cluttered with joomla stuff step by step..I am unfortunately no "guru" just know that there are ways and means:-)

Also have aread of this http://wiki.contribs.org/SME_Server:Documentation:ProxyPass#ProxyPass_a_alias.2Fdirectory.2Flocation
--
qui scribit bis legit

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: SME 8.0 & sitex
« Reply #8 on: July 12, 2013, 01:28:21 AM »
Chummers

Are you wanting to use the servers main domain name or a virtual host domain name ?

The web redirect howto has some issues & the method outlined is not recommended.
There are notes about alternative methods on the Discussion or Talk page but I have only played with those so cannot necessarily recommend them.

I would recommend you move the contribs app files from /opt/... to an ibay html folder.
Use the Domains panel to redirect the primay domain or the virtual domain to the ibay content.

Avoid using the primary ibay as you have less easy control of settings & parameters for that.

You will have to tweak the apps config file & set ibay parameters to allow proper access etc, but this is usually easy enough to do & generically documented in forums & wiki.

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Chummers

  • 15
  • +0/-0
Re: SME 8.0 & sitex
« Reply #9 on: July 12, 2013, 09:38:51 AM »
Thanks for the guidance TerryF and janet, It gets a little confusing since SME being template based, it is so different to other linux distos.

Janet, yes you are right, i do want to use the servers main domain name to host the sitex content, i will try what you suggest and get back to you if i have success..

Heres to hoping :)
« Last Edit: July 12, 2013, 09:40:42 AM by Chummers »

Offline Chummers

  • 15
  • +0/-0
Re: SME 8.0 & sitex
« Reply #10 on: July 12, 2013, 08:31:09 PM »
Hi All,

Just a quick update, i managed to get the site redirected using this little snippet of info from this post

http://forums.contribs.org/index.php/topic,35553.15.html

it still says sitex at the end of the url, but at least users don't have to type that in :)

Now when i look at the site from an external source, it asks for a username and password, no i am sure i have seen a fix for this somewhere, just need to go and find it :)

Offline Chummers

  • 15
  • +0/-0
Re: SME 8.0 & sitex
« Reply #11 on: July 12, 2013, 09:52:30 PM »
found it!

so i may help others in future, i did this :

config setprop sitex PublicAccess global
expand-template /etc/httpd/conf/httpd.conf
sv h /service/httpd-e-smith


now i can access from the outside world without those pesky credentials :)


Thanks for everyones help, it is greatly appreciated!

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: SME 8.0 & sitex
« Reply #12 on: July 15, 2013, 10:38:28 PM »
Chummers

Quote
.....site redirected using this....
http://forums.contribs.org/index.php/topic,35553.15.html

Out of interest which method did you use, a custom template change or did you just go for the index file method ie
<html>
<head>
<META http-equiv="refresh" content="0;URL=http://www.mydomain.com/joomla">
</head>
</html>
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Chummers

  • 15
  • +0/-0
Re: SME 8.0 & sitex
« Reply #13 on: July 19, 2013, 05:38:03 AM »
Hi janet,

I went for the quick and dirty method

<html>
<head>
<META http-equiv="refresh" content="0;URL=http://www.mydomain.com/joomla">
</head>
</html>

may also look at joomla since it looks a little more polished, but that's for another day, and another post ;)