<!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. I followed the instructions in the HowTo guides. I currently have MySQL version 4.0.16 installed and is running. The mysql.so module is in the correct directory as specified in the config file. 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). 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 # debug level (cmd line: -dddddddddd)</FONT>
<BR><FONT SIZE=2 FACE="Arial">#fork=yes</FONT>
<BR><FONT SIZE=2 FACE="Arial">#log_stderror=no # (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 # (cmd. line: -v)</FONT>
<BR><FONT SIZE=2 FACE="Arial">dns=no # (cmd. line: -r)</FONT>
<BR><FONT SIZE=2 FACE="Arial">rev_dns=no # (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="/tmp/ser_fifo"</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 "/usr/lib/ser/modules/mysql.so"</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">loadmodule "/usr/lib/ser/modules/sl.so"</FONT>
<BR><FONT SIZE=2 FACE="Arial">loadmodule "/usr/lib/ser/modules/tm.so"</FONT>
<BR><FONT SIZE=2 FACE="Arial">loadmodule "/usr/lib/ser/modules/rr.so"</FONT>
<BR><FONT SIZE=2 FACE="Arial">loadmodule "/usr/lib/ser/modules/maxfwd.so"</FONT>
<BR><FONT SIZE=2 FACE="Arial">loadmodule "/usr/lib/ser/modules/usrloc.so"</FONT>
<BR><FONT SIZE=2 FACE="Arial">loadmodule "/usr/lib/ser/modules/registrar.so"</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 "/usr/lib/ser/modules/auth.so"</FONT>
<BR><FONT SIZE=2 FACE="Arial">loadmodule "/usr/lib/ser/modules/auth_db.so"</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("usrloc", "db_mode", 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("usrloc", "db_mode", 2)</FONT>
<BR><FONT SIZE=2 FACE="Arial">modparam("usrloc", "db_url", "sql://ser:spirent@localhost/ser")</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("auth_db", "calculate_ha1", 1)</FONT>
<BR><FONT SIZE=2 FACE="Arial">#</FONT>
<BR><FONT SIZE=2 FACE="Arial"># If you set "calculate_ha1" 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("auth_db", "password_column", "password")</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">#database location for auth module</FONT>
<BR><FONT SIZE=2 FACE="Arial">modparam("auth_db", "db_url", "sql://serro:spirent@localhost/ser")</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("rr", "enable_full_lr", 1)</FONT>
</P>
<BR>
</BODY>
</HTML>