<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>SER does not start with MySQL</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>

<BR><FONT SIZE=2 FACE="Arial">SER will not start if I am to configure SER to run using MySQL module.&nbsp; I followed the instructions in the HowTo guides.&nbsp; I currently have MySQL version 4.0.16 installed and is running.&nbsp; The mysql.so module is in the correct directory as specified in the config file.&nbsp; When I run the 'serctl start' script, I would get only this response;</FONT></P>

<P><FONT SIZE=2 FACE="Arial">[root@localhost modules]# serctl start</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Starting SER : cat: /var/run/ser.pid: No such file or directory</FONT>

<BR><FONT SIZE=2 FACE="Arial">started pid()</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Here's an excerpt from my config file (ser.cfg).&nbsp; Thanks for your advice(s);</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">#</FONT>

<BR><FONT SIZE=2 FACE="Arial">#</FONT>

<BR><FONT SIZE=2 FACE="Arial"># $Id: ser.cfg,v 1.21.2.1 2003/07/30 16:46:18 andrei Exp $</FONT>

<BR><FONT SIZE=2 FACE="Arial">#</FONT>

<BR><FONT SIZE=2 FACE="Arial"># simple quick-start config script</FONT>

<BR><FONT SIZE=2 FACE="Arial">#</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># ----------- global configuration parameters ------------------------</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">#debug=3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # debug level (cmd line: -dddddddddd)</FONT>

<BR><FONT SIZE=2 FACE="Arial">#fork=yes</FONT>

<BR><FONT SIZE=2 FACE="Arial">#log_stderror=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd line: -E)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">/* Uncomment these lines to enter debugging mode</FONT>

<BR><FONT SIZE=2 FACE="Arial">debug=7</FONT>

<BR><FONT SIZE=2 FACE="Arial">fork=no</FONT>

<BR><FONT SIZE=2 FACE="Arial">log_stderror=yes</FONT>

<BR><FONT SIZE=2 FACE="Arial">*/</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">check_via=no&nbsp;&nbsp;&nbsp; # (cmd. line: -v)</FONT>

<BR><FONT SIZE=2 FACE="Arial">dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -r)</FONT>

<BR><FONT SIZE=2 FACE="Arial">rev_dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -R)</FONT>

<BR><FONT SIZE=2 FACE="Arial">port=5060</FONT>

<BR><FONT SIZE=2 FACE="Arial">#children=4</FONT>

<BR><FONT SIZE=2 FACE="Arial">fifo=&quot;/tmp/ser_fifo&quot;</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># ------------------ module loading ----------------------------------</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># Uncomment this if you want to use SQL database</FONT>

<BR><FONT SIZE=2 FACE="Arial">loadmodule &quot;/usr/lib/ser/modules/mysql.so&quot;</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">loadmodule &quot;/usr/lib/ser/modules/sl.so&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">loadmodule &quot;/usr/lib/ser/modules/tm.so&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">loadmodule &quot;/usr/lib/ser/modules/rr.so&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">loadmodule &quot;/usr/lib/ser/modules/maxfwd.so&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">loadmodule &quot;/usr/lib/ser/modules/usrloc.so&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">loadmodule &quot;/usr/lib/ser/modules/registrar.so&quot;</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># Uncomment this if you want digest authentication</FONT>

<BR><FONT SIZE=2 FACE="Arial"># mysql.so must be loaded !</FONT>

<BR><FONT SIZE=2 FACE="Arial">loadmodule &quot;/usr/lib/ser/modules/auth.so&quot;</FONT>

<BR><FONT SIZE=2 FACE="Arial">loadmodule &quot;/usr/lib/ser/modules/auth_db.so&quot;</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># ----------------- setting module-specific parameters ---------------</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># -- usrloc params --</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">#modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,&nbsp;&nbsp; 0)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># Uncomment this if you want to use SQL database</FONT>

<BR><FONT SIZE=2 FACE="Arial"># for persistent storage and comment the previous line</FONT>

<BR><FONT SIZE=2 FACE="Arial">modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)</FONT>

<BR><FONT SIZE=2 FACE="Arial">modparam(&quot;usrloc&quot;, &quot;db_url&quot;, &quot;sql://ser:spirent@localhost/ser&quot;)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># -- auth params --</FONT>

<BR><FONT SIZE=2 FACE="Arial"># Uncomment if you are using auth module</FONT>

<BR><FONT SIZE=2 FACE="Arial">#</FONT>

<BR><FONT SIZE=2 FACE="Arial">modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, 1)</FONT>

<BR><FONT SIZE=2 FACE="Arial">#</FONT>

<BR><FONT SIZE=2 FACE="Arial"># If you set &quot;calculate_ha1&quot; parameter to yes (which true in this config),</FONT>

<BR><FONT SIZE=2 FACE="Arial"># uncomment also the following parameter)</FONT>

<BR><FONT SIZE=2 FACE="Arial">#</FONT>

<BR><FONT SIZE=2 FACE="Arial">modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">#database location for auth module</FONT>

<BR><FONT SIZE=2 FACE="Arial">modparam(&quot;auth_db&quot;, &quot;db_url&quot;, &quot;sql://serro:spirent@localhost/ser&quot;)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"># -- rr params --</FONT>

<BR><FONT SIZE=2 FACE="Arial"># add value to ;lr param to make some broken UAs happy</FONT>

<BR><FONT SIZE=2 FACE="Arial"># modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)</FONT>
</P>
<BR>

</BODY>
</HTML>