There shouldn&#39;t be a &#39;&gt;&#39; at the end of the path. Re-examine your httpd.conf again. You might have a &#39;&gt;&#39; somewhere accidentally. Make sure you restart the service anytime you make a change.<div><br>
</div><div>Regards,</div><div>Ali Pey<br><br><div class="gmail_quote">On Thu, Sep 13, 2012 at 7:16 PM, spencer <span dir="ltr">&lt;<a href="mailto:sal1023@yahoo.com" target="_blank">sal1023@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div>Thanks for the suggestions.</div>
<div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">I have determined that the sql statement in login.php is working fine.  <br></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">The messages for undefined variable resultset1 are going to happen when you use<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
$config-&gt;admin_passwd_mode=1;<br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
So the problem is related to this error<br></div><div class="im"><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">File does not exist: /var/www/html/opensips-cp/web/&lt;<br>
<span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br></div></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
I have restarted the httpd daemon with</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">$ service httpd restart <br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">I am not really a php expert.  What is the &lt; character at the end of the path?   Is this tag indicate some sort of template?</div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
Is there a way to show more details in the log?<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">
Thanks again.<br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif"><span></span></div><div><br></div>  <div style="font-family:times new roman,new york,times,serif;font-size:12pt">
 <div style="font-family:times new roman,new york,times,serif;font-size:12pt"> <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight:bold">From:</span></b> Ali Pey &lt;<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>&gt;<br>
 <b><span style="font-weight:bold">To:</span></b> OpenSIPS users mailling list &lt;<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>&gt; <br> <b><span style="font-weight:bold">Sent:</span></b> Thursday, September 13, 2012 11:22 AM<br>
 <b><span style="font-weight:bold">Subject:</span></b> Re: [OpenSIPS-Users] contol panel installation problems<br> </font> </div><div><div class="h5"> <br><div>Also make sure you have restarted the service after changing httpd.conf<div>
service httpd restart</div><div><br></div><div>Regards,</div><div>Ali Pey<br><br><div>On Thu, Sep 13, 2012 at 2:08 AM, Salman Zafar <span dir="ltr">&lt;<a rel="nofollow" href="mailto:msalman212@gmail.com" target="_blank">msalman212@gmail.com</a>&gt;</span> wrote:<br>

<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It means you are getting error due to this query not being executed in code.<div><br><div>$sql = &quot;select * from ocp_admin_privileges where username = ? and password = ?&quot;;<br>

<br>I hope you have inserted user/password (e.g admin/admin) in the DB for authentication. Recheck and debug by echoing the $sql.</div>
<div><br></div><div><br></div><div>-- <br><font face="&#39;times new roman&#39;, serif">Regards</font><div><div><pre><font face="&#39;times new roman&#39;, serif">Muhammad Salman Zafar
<br></font></pre></div></div><div><div><div>On Thu, Sep 13, 2012 at 6:10 AM, spencer <span dir="ltr">&lt;<a rel="nofollow" href="mailto:sal1023@yahoo.com" target="_blank">sal1023@yahoo.com</a>&gt;</span> wrote:<br>
</div></div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div>Hi,<br>
I am trying to setup opensips and opensips-cp and have run into some problems with the control panel.  <br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:times new roman,new york,times,serif">


I have using centos and followed the install guide. I am using mysql<br>
<br>
I get this error on the web page after logging in as admin<br>
Not Found     The requested URL /cp/&lt; was not found on this server.<br>
<br>
I get these errors in the error_log<br>
<br>
PHP Notice:  Undefined variable: resultset1 in /var/www/html/opensips-cp/web/</div><div> login.php on line 80, referer:<br>
<a rel="nofollow" href="http://ec2-184-72-158-150.compute-1.amazonaws.com/cp/" target="_blank">http://mywebserver.com/cp/</a><br>
<br>PHP Notice:  Undefined variable: resultset1 in<br>
/var/www/html/opensips-cp/web/<u></u>login.php on line 86, referer:<br>
<a rel="nofollow" href="http://ec2-184-72-158-150.compute-1.amazonaws.com/cp/" target="_blank">http://mywebserver.com/cp/</a><br>
<br>File does not exist: /var/www/html/opensips-cp/web/<u></u>&lt;, referer:<br>
<a rel="nofollow" href="http://mywebserver.com/cp/main.php" target="_blank">http://mywebserver.com/cp/<u></u>main.php</a><br>
<br>
I have this in httpd.conf  <br>Alias /cp &quot;/var/www/html/opensips-cp/<u></u>web&quot;<br>
<br>Does anyone have an idea what may be causing this problem?<br>
<br>
Thanks!</div></div></div><br></div></div>_______________________________________________<br>
Users mailing list<br>
<a rel="nofollow" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a rel="nofollow" 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"><div><br></div><div><div><pre></pre></div></div><br>
</div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a rel="nofollow" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a rel="nofollow" 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></div>
</div><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">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><br> </div></div></div> </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></div>