[OpenSIPS-Users] openser
Iulia Bublea
iulia at opensips.org
Thu May 21 17:01:46 CEST 2009
No worries.
manal rifki wrote:
> thank you for your respond
>
>
> 2009/5/21 Iulia Bublea <iulia at opensips.org <mailto:iulia at opensips.org>>
>
> Hi,
>
> you should do the changes in:
>
> /etc/openser/openserctlrc
> which is the config file for the openserctl script.
>
>
> Regards,
> Iulia
>
> manal rifki wrote:
>
> Hello,
>
> thank you for your respond!
> do you mean that i should to make change in that file:
> /usr/sbin/openserdbctl ?
>
> unset USED_DBENGINE
> if [ -z "$DBENGINE" ] ; then
> merr "database engine not specified, please setup one in
> the config script"
> exit 1
> fi
>
> case $DBENGINE in
> MYSQL|mysql|MySQL)
> if [ -f "$MYLIBDIR/openserdbctl.mysql" ]; then
> . "$MYLIBDIR/openserdbctl.mysql"
> USED_DBENGINE="mysql"
> else
> merr "could not load the script in
> $MYLIBDIR/openserdbctl.mysql for database engine $DBENGINE"
> fi
> ;;
> PGSQL|pgsql|postgres|postgresql|POSTGRESQL)
> if [ -f "$MYLIBDIR/openserdbctl.pgsql" ]; then
> . "$MYLIBDIR/openserdbctl.pgsql"
> USED_DBENGINE="postgres"
> else
> merr "could not load the script in
> $MYLIBDIR/openserdbctl.pgsql for database engine $DBENGINE"
> fi
> ;;
> DBTEXT|dbtext|textdb)
> if [ -f "$MYLIBDIR/openserdbctl.dbtext" ]; then
> . "$MYLIBDIR/openserdbctl.dbtext"
> USED_DBENGINE="dbtext"
> DBNAME=$DB_PATH
> else
> merr "could not load the script in
> $MYLIBDIR/openserdbctl.dbtext for database engine $DBENGINE"
> fi
> ;;
> DB_BERKELEY|db_berkeley|BERKELEY|berkeley)
> if [ -f "$MYLIBDIR/openserdbctl.db_berkeley" ]; then
> . "$MYLIBDIR/openserdbctl.db_berkeley"
> USED_DBENGINE="berkeley"
> DBNAME=$DB_PATH
> else
> merr "could not load the script in
> $MYLIBDIR/openserdbctl.db_berkeley for database engine $DBENGINE"
> fi
> ;;
> esac
>
> if [ -z "$USED_DBENGINE" ] ; then
> merr "database engine not loaded - tried '$DBENGINE'"
> exit 1
> else
> mdbg "database engine '$USED_DBENGINE' loaded"
> fi
>
> Best regards,
> manal
>
> 2009/5/21 Iulia Bublea <iulia at opensips.org
> <mailto:iulia at opensips.org> <mailto:iulia at opensips.org
> <mailto:iulia at opensips.org>>>
>
>
> Hi,
>
> In the opensipsctlrc config file you should specify that the
> DBENGINE parameter is MYSQL and you should also set there the
> database parameters like db username, db password, and db name
> (openser db).
>
> Regards,
> Iulia
>
> manal rifki wrote:
>
> Hello,
>
> i am trying to install the latest version of openser
> 1.3.2-2
> to work with my openimscore using uctimsclient.
> i have installed OpenSER and the Presence and MySQL
> Modules.
>
> when i try to run the script to setup mySQL databases i got
> that error:
>
> manal at manal-laptop:~/openser/scripts$ sudo openserdbctl
> create
> [sudo] password for manal:
> ERROR: database engine not specified, please setup one
> in the
> config script
>
> please help!
>
> best regards,
> manal
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> <mailto:Users at lists.opensips.org>
> <mailto:Users at lists.opensips.org
> <mailto:Users at lists.opensips.org>>
>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
>
More information about the Users
mailing list