Please help me! :(

Freepbx is not login with user admin and my password…

  1. edit /etc/amportal.conf
  2. I see in mysql database asterisk, tables users and find user - admin, and password sha1 “7c4a8d09ca3762af61e59520943dc26494f8941b”

I read http://wiki.opencsta.org/index.php/FreePBX_-_password_sha1_change_in_database_for_admin_to_reset_lost_password
and change in my pasword… My pasword is 1357910, login admin

<?php $newpassword = '1357910'; echo sha1($newpassword) ; ?>

php -f new-freepbx-password.php

and replace in mysql old password on my new password (7dc4b97796f82facbfcbdc6eaaf85b88145c1a12)

When I set AUTHTYPE=database

and relogin in panel:

I enter a login/password I press ОК, and again there is a form of input of a login/password…

in the log file I see only

[Mar 16 09:01:49] VERBOSE[29384] logger.c: == Manager ‘admin’ logged on from 127.0.0.1
[Mar 16 09:01:49] VERBOSE[29384] logger.c: == Manager ‘admin’ logged off from 127.0.0.1
[Mar 16 09:01:54] VERBOSE[29387] logger.c: == Manager ‘admin’ logged on from 127.0.0.1
[Mar 16 09:01:54] VERBOSE[29387] logger.c: == Manager ‘admin’ logged off from 127.0.0.1

How can I’m fix this problem?

This is normal:

in the log file I see only

[Mar 16 09:01:49] VERBOSE[29384] logger.c: == Manager ‘admin’ logged on from 127.0.0.1
[Mar 16 09:01:49] VERBOSE[29384] logger.c: == Manager ‘admin’ logged off from 127.0.0.1
[Mar 16 09:01:54] VERBOSE[29387] logger.c: == Manager ‘admin’ logged on from 127.0.0.1
[Mar 16 09:01:54] VERBOSE[29387] logger.c: == Manager ‘admin’ logged off from 127.0.0.1

This means that FreePBX is polling Asterisk every 5 seconds. This means that the admin user passwords match in /etc/amportal.conf and /etc/asterisk/manager.conf which is a good thing. Check these files to see what the password is set to. the default username/password is admin/admin

Try username maint or wwwadmin and log in with your password.

cat manager.conf
;
; AMI - Asterisk Manager interface
;
; FreePBX needs this to be enabled. Note that if you enable it on a different IP, you need
; to assure that this can’t be reached from un-authorized hosts with the ACL settings (permit/deny).
manager.conf
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0

[admin]
secret = 1357910
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate

AND amportal.conf
cat /etc/amportal.conf
AMPDBHOST=localhost
AMPDBUSER=asteriskuser
AMPDBENGINE=mysql
AMPDBPASS=1357910
AMPENGINE=asterisk
AMPMGRUSER=admin
AMPMGRPASS=1357910
AMPBIN=/var/lib/asterisk/bin
AMPSBIN=/usr/local/sbin
AMPWEBROOT=/var/www/html
AMPCGIBIN=/var/www/cgi-bin
AMPWEBADDRESS=my real ip
FOPWEBROOT=/var/www/html/panel
FOPPASSWORD=1357910
FOPRUN=true
AUTHTYPE=database
AMPADMINLOGO=logo.png
AMPEXTENSIONS=extensions
ENABLECW=yes
CWINUSEBUSY=yes
AMPBADNUMBER=true
CUSTOMASERROR=false
DYNAMICHINTS=true
XTNCONFLICTABORT=false
BADDESTABORT=false
SERVERINTITLE=false
USEDEVSTATE=true
MODULEADMINWGET=false
MOHDIR=moh
ASTETCDIR=/etc/asterisk
ASTMODDIR=/usr/lib/asterisk/modules
ASTVARLIBDIR=/var/lib/asterisk
ASTAGIDIR=/var/lib/asterisk/agi-bin
ASTSPOOLDIR=/var/spool/asterisk
ASTRUNDIR=/var/run/asterisk
ASTLOGDIR=/var/log/asterisk

My problem is “When I enter a login/password I press ОК, and again there is a form of input of a login/password…”

I think that a problem in authorisation.
But I do not know as it to check up. After all the information is checked with MySQL and whether correctly it is transferred in MySQL?
Namely there can be something with enciphering? After all in MySQL the password to be stored in the ciphered kind.

How to find out in what a problem? Whether is such debug in which it will be visible that occurs when I enter a login/password and that the system does during this moment of time.

AMPDBPASS=1357910 <= that should be amp109, the default setting not 1357910 which is your admin password.

I know this that.
I have in MySQL a user asteriskuser, with the password just causes on BD asterisk are given 1357910 it. In the console asterisk it is visible that connection with server MySQL is successfully established.
For access to GUI there is a user admin with the same password… 1357910… And so why this password is not accepted?

  1. AMPDBPASS is password for MysQL user who have full privilegies for BD asterisk???
  2. AMPENGINE is BD asterisk…
  3. in mysql database asterisk, tables users and find user - admin…

http://wiki.opencsta.org/index.php/FreePBX_-_password_sha1_change_in_database_for_admin_to_reset_lost_password

The problem all in that that a sheaf a login/password simply is not accepted or does not reach to the table users.