Displaying 9 results from an estimated 9 matches for "database_password".
2017 Feb 21
4
Problems with my simple write conf files method
...edon.htt-consult.com/Centos7-armv7.html
But with postfixadmin I stumbled onto a problem. The following:
cat <<EOF>/usr/share/postfixadmin/config.local.php || exit 1
<?php
$CONF['database_type'] = 'mysqli';
$CONF['database_user'] = 'postfix';
$CONF['database_password'] = 'xyz';
$CONF['database_name'] = 'postfix';
$CONF['configured'] = true;
?>
EOF
produces:
cat <<EOF>/usr/share/postfixadmin/config.local.php || exit 1
<?php
['database_type'] = 'mysqli';
['database_user'] = 'postfix...
2017 Feb 21
1
Problems with my simple write conf files method
...l
>
> But with postfixadmin I stumbled onto a problem. The following:
>
> cat <<EOF>/usr/share/postfixadmin/config.local.php || exit 1
> <?php
> $CONF['database_type'] = 'mysqli';
> $CONF['database_user'] = 'postfix';
> $CONF['database_password'] = 'xyz';
> $CONF['database_name'] = 'postfix';
>
> $CONF['configured'] = true;
> ?>
> EOF
>
> produces:
>
> cat <<EOF>/usr/share/postfixadmin/config.local.php || exit 1
> <?php
> ['database_type'] = 'm...
2017 Feb 21
0
Problems with my simple write conf files method
...edon.htt-consult.com/Centos7-armv7.html
But with postfixadmin I stumbled onto a problem.? The following:
cat <<EOF>/usr/share/postfixadmin/config.local.php || exit 1
<?php
$CONF['database_type'] = 'mysqli';
$CONF['database_user'] = 'postfix';
$CONF['database_password'] = 'xyz';
$CONF['database_name'] = 'postfix';
$CONF['configured'] = true;
?>
EOF
produces:
cat <<EOF>/usr/share/postfixadmin/config.local.php || exit 1
<?php
['database_type'] = 'mysqli';
['database_user'] = 'postfix...
2006 Jul 31
4
switching database dynamically based on incoming request
...could do the same for the database by adjusting
database.yml like so:
development:
adapter: mysql
database: <%= request.env[''DEV_DATABASE''] %>
host: localhost
username: <%= request.env[''DEV_DATABASE_USERNAME'']
password: <%= request.env[''DEV_DATABASE_PASSWORD'']
The idea being to have a virtual host config like:
<VirtualHost virtualhost1.us.com:80>
ServerName virtualhost1.us.com
SetEnv DEV_DATABASE virtualhost1
SetEnv DEV_DATABASE_USERNAME virtualhost1_username
SetEnv DEV_DATABASE_PASSWORD virtualhost1_password
DocumentRoot "/var/ww...
2015 May 16
0
Asterisk "virtual hosting"
...are.hixie.ch/utilities/unix/preprocessor/) to tailor
dialplans and configuration files to each host based on the client
(or project) and the hostname.
This lets me do stuff like:
[globals]
DATABASE-DATABASE = @DATABASE_DATABASE@
DATABASE-PASSWORD = @DATABASE_PASSWORD@
DATABASE-PRODUCTION-SERVER = @DATABASE_PRODUCTION_SERVER@
DATABASE-REPORTING-SERVER = @DATABASE_REPORTING_SERVER@
DATABASE-ROOT-PASSWORD = @DATABASE_ROOT_PASSWORD@
DATABASE-USERNAME = @DATABASE_USERNAME@
and
#ifdef A11...
2017 Feb 22
0
Problems with my simple write conf files method
On Tue, 2017-02-21 at 10:50 -0500, Robert Moskowitz wrote:
> cat <<EOF>/usr/share/postfixadmin/config.local.php || exit 1
> <?php
> $CONF['database_type'] = 'mysqli';
> $CONF['database_user'] = 'postfix';
> $CONF['database_password'] = 'xyz';
> $CONF['database_name'] = 'postfix';
>
> $CONF['configured'] = true;
> ?>
> EOF
KMs method of escaping every $ in the here document works but a simpler
method is to escape the EOF. That tells the shell not to do variable
expansion...
2015 May 16
2
Asterisk "virtual hosting"
Hello,
I am in the peculiar situation to have to set up a PBX for two
independent sites, but operated by the same entity. Yes, I could set
up two VPSs and install Asterisk to each, put common stuff (e.g.
conferencing setup) into Git and share between both using includes,
but for various reasons (among them simplicity and cost), I'd prefer
a single Asterisk instance.
I know I can #include
2005 Jul 27
5
cdr_mysql does not write to mysql db
Hi,
I configured cdr_mysql (addons 1.0.9) to write the cdr records to the mysql db.
The problem is that no records are written to the db. Why?
I can import the csv-file to the db. so i assume the db is setup correct.
Is there any chance to get debug from cdr_mysql to find his problem?
This is my cdr_mysql.conf file:
[global]
hostname=localhost
dbname=cdr
password=passw0rd
user=root
;port=3306
2010 Feb 17
0
[PATCH] Provides the new node lifecycle events.
...qlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+DATABASE_NAME = '/tmp/database.db' # Or path to database file if using sqlite3.
+DATABASE_USER = '' # Not used with sqlite3.
+DATABASE_PASSWORD = '' # Not used with sqlite3.
+DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
+DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
+
+# Local time zone for this installation. Choices can...