Koozali.org: home of the SME Server

Asterisk on SME7 (me again)

cyr

Asterisk on SME7 (me again)
« on: October 17, 2005, 05:12:32 PM »
Hi,

Sorry for my long silence, but I tried to make the A4SME contrib more attractive.

So you'll can get the new contrib A4SME7.tar.gz at http://firewall-services.com

The news,

** the installation is based on rpm from the ate rmp repository

** You now have an uninstall script

** This contrib is derived from AAH beta4 with a newer version of AMP

** The user www is now in the group asterisk so there is no need to use an apache user with a shell.

 :hammer:

Offline fpausp

  • *
  • 728
  • +0/-0
Asterisk on SME7 (me again)
« Reply #1 on: October 17, 2005, 06:03:35 PM »
Hi,

I have done the rpm-based installation. Now i got an error when i like to use the server-manager. The Message is:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

fpausp
Viribus unitis

cyr

Asterisk on SME7 (me again)
« Reply #2 on: October 17, 2005, 06:41:42 PM »
what is the message in /var/log/httpd/error.log

cyr

Asterisk on SME7 (me again)
« Reply #3 on: October 17, 2005, 06:58:24 PM »
humm I think I know what is the pb

To integrate remote server acces I had to get some db info

so if you don't activate remote network access just edit

/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98amp

and for all part

Quote
Alias /amp /var/www/html
<Directory /var/www/html>
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
    Options Indexes +Includes FollowSymLinks
    order deny,allow
    deny from all
    allow from { $localAccess." "./sbin/e-smith/db configuration getprop httpd-admin ValidFrom }
    php_flag magic_quotes_gpc off
    php_flag register_globals off
    AuthName "Server manager"
    AuthType Basic
    AuthExternal pwauth
    require user admin
    SetEnv IMGHDR_SRC "/server-common/server-manager.jpg"
    Satisfy all
</Directory>


delete the
Quote
." "./sbin/e-smith/db configuration getprop httpd-admin ValidFrom
in front of allow from

then you expand-template /etc/httpd/conf/httpd.conf and you 'll be able to start the httpd-e-smith service

I'll include some sort of test for that. Sorry

Offline fpausp

  • *
  • 728
  • +0/-0
Asterisk on SME7 (me again)
« Reply #4 on: October 17, 2005, 07:22:09 PM »
Hi,

No pb, thanks for your work and fast answer. I will do a fresh install because i like to test the b5 (now b2). 2nd is to test your asterisk rpmĀ“s.

regards
fpausp
Viribus unitis

cyr

Asterisk on SME7 (me again)
« Reply #5 on: October 18, 2005, 05:47:56 PM »
Hi,

After a few test with sme b5, I discover a little bug in my script
This is now fix and the install is correct on b5

enjoy

Offline fpausp

  • *
  • 728
  • +0/-0
Asterisk on SME7 (me again)
« Reply #6 on: October 18, 2005, 09:30:22 PM »
Hi,

Is it necessary to retry the download ?
Viribus unitis

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #7 on: October 18, 2005, 11:03:16 PM »
Hello.

Today I made two new testinatallations on my good old Compaq Armada 700 "laptop testserver" (P3/700/500).

The first one were made earlier today based on SME 7.0 beta 5. This crached with the message "Internal server error". I tried do do some trobleshooting inside the template system, but had no success with that.

Then made a new download of the rpm based Asterisk installation later to night, as I understood that there had been some revision, and also made a new installation of the SME B5.  

This time things went a bit bether, and I think/hope it is just a question of minor details before we are there.

The installation does not crach any more, but it dont work completely either. Inside the server-manager I now get this fault message when I try to go into the Asterisk managing part of it (Clicking asterisk management portal):

Software error:
Can't call method "value" on an undefined value at /etc/e-smith/web/panels/manager/cgi-bin/amp line 26.

For help, please send mail to the webmaster (admin), giving this error message and the time and date of the error.

Line 26, this should be rather precise (?!)

Are we there in a few seconds ? I think there is still some very minor bugs.

By the way, my installation were made on a SME installed as "server only" and not on a gateway.

One other thing - I think that the B5 has some "great improvements". The last B4 had some strange behaviour when running on "poor" hardware. Doing nothing it had a processor load of 10-20 % The new beta 5 does only have a processor load of 0.3 % on the same hardware, when doing nothing. (So I think it can be used on "small" hardware as well.)

Best reg Arne.
......

cyr

Asterisk on SME7 (me again)
« Reply #8 on: October 19, 2005, 06:36:29 AM »
Hi Arne,

This error is because in the panel I make a simple redirection with the external ip but in fact in server only ther is no external ip. sorry.

For the moment, you can access amp by typing https://your_server/amp or if you want you can change ExternalIP by LocalIP in the file /etc/e-smith/web/function/amp and idem in /etc/e-smith/templates-custom/etc/amportal.conf/amportal.conf then expand-template amportal.conf and the pb will dissapeard.

cyr

Asterisk on SME7 (me again)
« Reply #9 on: October 19, 2005, 10:50:54 AM »
Hi,

The problem is solve for server only mode

regards

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #10 on: October 19, 2005, 11:08:29 AM »
Great ! Will try to give it a new try and a feedback during the day  :pint:
......

cyr

Asterisk on SME7 (me again)
« Reply #11 on: October 19, 2005, 11:43:03 AM »
thank you arne :-)

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #12 on: October 19, 2005, 05:53:26 PM »
*** :pint:  :pint:  :pint: It works !  :pint:  :pint: ***

One minor problem remaining left - If you try to go into PHPMyadmin via the AMP panel there is no access. You get this message:

MySQL said:  

#1045 - Access denied for user 'root'@'localhost' (using password: YES)
 
I would guess that this message is because the sme server normally use "admin" as logon for the PHPMyadmin control. I wonder if there is any way to change the SME server to use "root" or the other way to set up the Asterisk installation to use "admin"... ? (Or to set up an alternative admin account "root")

It looks like all other functions now works, including also the uninstall script (tested yesterday).

By the way .. used the rpm version on a b7 server only behind a Smoothwall nat.

Thanks for great work !

Best reg Arne
......

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #13 on: October 19, 2005, 05:56:15 PM »
Correction: SME 7 B5 on PIII/700
......

cyr

Asterisk on SME7 (me again)
« Reply #14 on: October 19, 2005, 06:11:31 PM »
I'll see what I can do for that