[OpenSIPS-Users] Opensips-cp 4.0

Karl Harris karlh626 at gmail.com
Mon Apr 5 19:18:28 CEST 2010


Are you getting an error  when you try to access the cp - users ?

The last time I installed the CP 4.0 I was getting the following error:

---------------
*Warning*: array_unshift() [function.array-unshift]: The first argument
should be an array in *
/var/www/opensips-cp/web/tools/users/user_management/lib/functions.inc.php*on
line *231*
---------------

Which was fixed by adding a domain in the control panel under system

On Mon, Apr 5, 2010 at 12:36 PM, Andy Thomas <andy at andythomas.co.uk> wrote:

>  Ive already done that step for admin access
>
> It’s the user’s table which needs to be configured so that opensips-cp can
> then add users
>
>
>
>
>
>
>
> *From:* Alex Ionescu [mailto:alex at opensips.org]
> *Sent:* 05 April 2010 3:37 PM
> *To:* OpenSIPS users mailling list
> *Subject:* Re: [OpenSIPS-Users] Opensips-cp 4.0
>
>
>
> Hi,
>
> I think you've read an old documentation. This is what you must do :
>
> * For the admin tool you must add a table.
>
>
>
>     Follow these steps:
>
>
>
>             1. install the ocp_admin_privileges table schema
> ocp_admin_privileges.mysql/ocp_admin_privileges.pgsql
>
>             (config/tools/admin/add_admin/ocp_admin_privileges.mysql)
>
>         mysql -Dopensips -p < ocp_admin_privileges.mysql
>
>                 or
>
>         psql -h host_name -U postgres_username -d opensips <
> ocp_admin_privileges.pgsql
>
>
>
>             2. For being able to login create an admin account with the
> following username and password: admin/admin. Add it into the database:
>
>             INSERT INTO ocp_admin_privileges
> (username,password,ha1,available_tools,permissions) values
> ('admin','admin',md5('admin:admin'),'all','all');
>
>
> This is from http://opensips-cp.sourceforge.net (see Documentation ->
> Install Guide)
>
> Regards,
> Alex
> On 4/5/2010 16:30, Andy Thomas wrote:
>
>
>
> Im trying to install opensips-cp 4 according to the install document.
>
>
>
> Everything is fine until I reach this point-
>
>
>
>
>
>   * For the add_user module : you must add one table to the OpenSIPS
> database .
>
> Follow these steps:
>
> Install the table.mysql or table.pgsql.
>
> You will find them them :
>
>          opensips-cp/config/tools/admin/add_admin/table.mysql
>
>                 or
>
>         opensips-cp/config/tools/admin/add_admin/table.pgsql
>
>         This is where the admins are being stored data.
>
>
>
> I have looked everywhere for the file,
>
> opensips-cp/config/tools/admin/add_admin/table.mysql  doesn’t exist in the
> tarball!
>
>
>
>
>
>
>
> Regards
>
> Andy T
>
>
>
>
>
> _______________________________________________
>
> Users mailing list
>
> Users at lists.opensips.org
>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
>
>
>  --
>
> Alex Ionescu
>
> www.voice-system.ro
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Karl Harris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100405/24ebaedd/attachment.htm 


More information about the Users mailing list