Koozali.org: home of the SME Server

server-manager was not found

Offline EdelingF

  • ****
  • 215
  • +0/-0
server-manager was not found
« on: May 21, 2008, 09:44:07 PM »
I added an extra domain to my server and followed the http://wiki.contribs.org/Web_Application_Redirect_Tutorial to redirect this virtual domail to an Joomla installation in opt/
I did something wrong I know of; I typed
Code: [Select]
config setprop joomla domain www.myvirtualdomain.com litteral and accidently pushed enter while I should have changed it into
Code: [Select]
config setprop joomla domain www.realvirtualdomain.com.
I did this after making the mistake and after this I completed the rest of the commands.
The redirect works great but…..after doing this I can't find the server-manager.
I did
Code: [Select]
signal-event post-upgrade and
Code: [Select]
signal-event reboot, but no result.
If I type the local IP of the server I end up at Joomla
Should I try something like removing
Code: [Select]
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80OptDomainJoomla?
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: server-manager was not found
« Reply #1 on: May 21, 2008, 09:49:03 PM »
You have messed up I guess as the rewrite is redirecting everything to your joomla base dir instead, here it will not find a share called server-manager. I guess your best bet is to revert changes you made.

If I type the local IP of the server I end up at Joomla
And what happens when you try and access https://ip-number/server-manager ?

Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline EdelingF

  • ****
  • 215
  • +0/-0
Re: server-manager was not found
« Reply #2 on: May 21, 2008, 09:54:41 PM »
The same: The requested URL /server-manager/ was not found on this server.

Should I try something like removing
Code: [Select]
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80OptDomainJoomlafollowed by
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
sv h /service/httpd-e-smith
?


...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: server-manager was not found
« Reply #3 on: May 21, 2008, 10:52:36 PM »
The same: The requested URL /server-manager/ was not found on this server.

Should I try something like removing
Code: [Select]
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80OptDomainJoomlafollowed by
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
sv h /service/httpd-e-smith
?

Are you sure the webserver is restarted? My guess it isn't. What is the output of the following (does it say a large number of seconds or just a few):
Code: [Select]
sv h /service/httpd-e-smith
sv h /service/httpd-e-smith

If it does not output something like this (the number of seconds should be really low, in the order of seconds or less):
Code: [Select]
run: httpd-e-smith: (pid 32497) 1s, normally down
[root@sme73test ~]#

try this:
Code: [Select]
sv t /service/httpd-e-smith
sv s /service/httpd-e-smith

That should output something like this (the number of seconds should be really low, in the order of seconds or less):
Code: [Select]
run: httpd-e-smith: (pid 32497) 1s, normally down
[root@sme73test ~]#

If the number of seconds is in the order of seconds your webserver has restarted. Now see if you can access the server-manager.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline EdelingF

  • ****
  • 215
  • +0/-0
Re: server-manager was not found
« Reply #4 on: May 22, 2008, 08:27:57 PM »
Cactus,

I did what you suggested:

Quote
Are you sure the webserver is restarted? My guess it isn't. What is the output of the following (does it say a large number of seconds or just a few):

Code: [Select]
sv h /service/httpd-e-smith
sv h /service/httpd-e-smith
If it does not output something like this (the number of seconds should be really low, in the order of seconds or less):
No result

Quote
Code: [Select]
sv t /service/httpd-e-smith
sv s /service/httpd-e-smith
The result was:
Code: [Select]
run: /service/httpd-e-smith: (pid 9613) 4s, normally down
But I still can't access the server-manager.....
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: server-manager was not found
« Reply #5 on: May 22, 2008, 09:25:38 PM »
I suggest you revert your changes, as you are using a highly experimental and a very bad method to create your domain for joomla.

The correct way would be to create a directory for a VirtualHost in the templates-custom tree, with all proper templates you need in there... but you will need to know something about SME Server and its architecture.

Do you really need joomla at that location or would a redirect to joomla from the Primary ibay do as well?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline EdelingF

  • ****
  • 215
  • +0/-0
Re: server-manager was not found
« Reply #6 on: May 22, 2008, 09:42:05 PM »
Cactus, can you tell me how to undo it? Just by removing the template?
I'm not that good with creating templates, so I'll have to find an  way to redirect. I'll probably asign the domain to an Ibay or something like that.
I offered my sportsclub to host their domain and website since my server is running anyway for my own domain; I thought it would be a simple thing to do.....
...

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: server-manager was not found
« Reply #7 on: May 22, 2008, 09:51:19 PM »
Cactus, can you tell me how to undo it? Just by removing the template?
I'm not that good with creating templates, so I'll have to find an  way to redirect. I'll probably asign the domain to an Ibay or something like that.
I offered my sportsclub to host their domain and website since my server is running anyway for my own domain; I thought it would be a simple thing to do.....

please post here the result of
Code: [Select]
grep -i joomla /var/log/messages

Ciao
Stefano

Offline EdelingF

  • ****
  • 215
  • +0/-0
Re: server-manager was not found
« Reply #8 on: May 22, 2008, 09:57:20 PM »
Stefano,

That gives no result, no output whatsoever
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: server-manager was not found
« Reply #9 on: May 22, 2008, 10:11:42 PM »
Cactus, can you tell me how to undo it? Just by removing the template?
Yes, after that regenerate the configuration file and restart the webserver like this:
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
sv t httpd-e-smith

I'm not that good with creating templates, so I'll have to find an  way to redirect. I'll probably asign the domain to an Ibay or something like that.
You could do so, as this is the intended way... but if you need more control you can use the path described below, which is a far better method than the one suggested in the wiki.

I offered my sportsclub to host their domain and website since my server is running anyway for my own domain; I thought it would be a simple thing to do.....
It is if you know how. In short the proper way is to create subdirectory for the domain you desire in the templates-custom tree at the same level of the VirtualHosts folder:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/www.realvirtualdomain.com
Copy at least the following files from /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/ into the new folder:

  • 00Setup
  • 02ServerName
  • 25SSLDirectives
  • 26RewriteTraceAndTrack
  • 50DirectoryIndex00
  • 50DirectoryIndex00PHP
  • 85DefaultAccess
  • template-begin
  • template-end

The only thing we need to do now is to copy the content of the joomla configuration directives in there, but I do not have them handy...

After that you should be able to regenerate your configuration file
Code: [Select]
expand-template /etc/httpd/conf/httpd.confTest the configuration file
Code: [Select]
httpd -tIf it says the syntax is OK you can restart your webserver
Code: [Select]
sv t httpd-e-smith
« Last Edit: May 22, 2008, 10:15:45 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: server-manager was not found
« Reply #10 on: May 22, 2008, 10:13:39 PM »
please post here the result of
Code: [Select]
grep -i joomla /var/log/messages
That file is of not much use, he is better of looking in /var/log/httpd/error_log and /var/log/httpd/access_log and perhaps /var/log/httpd/admin_error_log and /var/log/httpd/admin_access_log as well.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline EdelingF

  • ****
  • 215
  • +0/-0
Re: server-manager was not found
« Reply #11 on: May 22, 2008, 10:22:54 PM »
Thanks Cactus, I'll will look in to this next weekend and trie to think things over twice before doing.
I don't want to break things up again....
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: server-manager was not found
« Reply #12 on: May 22, 2008, 10:24:23 PM »
Thanks Cactus, I'll will look in to this next weekend and trie to think things over twice before doing.
I don't want to break things up again....
If you do things properly you can easily revert changes and restore your system to work correctly...
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline EdelingF

  • ****
  • 215
  • +0/-0
Re: server-manager was not found
« Reply #13 on: May 22, 2008, 10:45:01 PM »
the joomla configuration directives, would this be something like the contents of a template called 92joomla ?
...

Offline EdelingF

  • ****
  • 215
  • +0/-0
Re: server-manager was not found
« Reply #14 on: May 22, 2008, 10:47:12 PM »
YES! I can get into the server-manager again.
Will do the rest later
...