Are you getting an error when you try to access the cp - users ?<div><br></div><div>The last time I installed the CP 4.0 I was getting the following error:</div><div><br></div><div>---------------</div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><b>Warning</b>: array_unshift() [<a href="function.array-unshift">function.array-unshift</a>]: The first argument should be an array in <b>/var/www/opensips-cp/web/tools/users/user_management/lib/functions.inc.php</b>on line <b>231</b></span></div>
<div>---------------</div><div><br></div><div>Which was fixed by adding a domain in the control panel under system<br><br><div class="gmail_quote">On Mon, Apr 5, 2010 at 12:36 PM, Andy Thomas <span dir="ltr"><<a href="mailto:andy@andythomas.co.uk">andy@andythomas.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="white" lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="color:#1F497D">Ive already done that step for
admin access</span></p>
<p class="MsoNormal"><span style="color:#1F497D">It’s the user’s table which
needs to be configured so that opensips-cp can then add users</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;color:windowtext">From:</span></b><span lang="EN-US" style="font-size:10.0pt;color:windowtext">
Alex Ionescu [mailto:<a href="mailto:alex@opensips.org" target="_blank">alex@opensips.org</a>] <br>
<b>Sent:</b> 05 April 2010 3:37 PM<br>
<b>To:</b> OpenSIPS users mailling list<br>
<b>Subject:</b> Re: [OpenSIPS-Users] Opensips-cp 4.0</span></p>
</div>
</div><div class="im">
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi,<br>
<br>
I think you've read an old documentation. This is what you must do :<br>
<br>
* For the admin tool you must add a table. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">
Follow these steps:</p>
<p class="MsoNormal">
</p>
<p class="MsoNormal">
1. install the ocp_admin_privileges table schema ocp_admin_privileges.mysql/ocp_admin_privileges.pgsql</p>
<p class="MsoNormal">
(config/tools/admin/add_admin/ocp_admin_privileges.mysql)</p>
<p class="MsoNormal">
mysql -Dopensips -p < ocp_admin_privileges.mysql</p>
<p class="MsoNormal">
or</p>
<p class="MsoNormal">
psql -h host_name -U postgres_username -d opensips <
ocp_admin_privileges.pgsql</p>
<p class="MsoNormal">
</p>
<p class="MsoNormal">
2. For being able to login create an admin account with the following username
and password: admin/admin. Add it into the database:</p>
<p class="MsoNormal">
INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions)
values
('admin','admin',md5('admin:admin'),'all','all');
</p>
<p class="MsoNormal"><br>
This is from <a href="http://opensips-cp.sourceforge.net" target="_blank">http://opensips-cp.sourceforge.net</a>
(see Documentation -> Install Guide)<br>
<br>
Regards,<br>
Alex<br>
On 4/5/2010 16:30, Andy Thomas wrote: </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Im trying to install opensips-cp 4 according to the install
document.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Everything is fine until I reach this point-</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> * For the add_user module : you must add one table to
the OpenSIPS database .</p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">Follow
these steps:</span></p>
</div><p style="margin-left:42.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">Install the
table.mysql or table.pgsql.</span></p><div class="im">
<p class="MsoNormal" style="margin-left:24.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">You will find them them :</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
opensips-cp/config/tools/admin/add_admin/table.mysql</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
or</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
opensips-cp/config/tools/admin/add_admin/table.pgsql</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
This is where the admins are being stored data.</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I have looked everywhere for the file,</p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">opensips-cp/config/tools/admin/add_admin/table.mysql
doesn’t exist in the tarball!</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> </span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> </span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> </span></p>
<p class="MsoNormal">Regards</p>
<p class="MsoNormal">Andy T</p>
<pre> </pre><pre> </pre><pre>_______________________________________________</pre><pre>Users mailing list</pre><pre><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a></pre><pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></pre>
<pre> </pre>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>
<br>
<br>
</span></p>
<pre>-- </pre><pre>Alex Ionescu</pre><pre><a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> </pre></div></div>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Karl Harris<br><br>
</div>