******************************** Install Begin ********************************* *** Database Installation *** * User airtime already exists. * Database 'airtime' already exists. DB Error: connect failed [nativecode=pg_pconnect(): Unable to connect to PostgreSQL server: FATAL: authentification par mot de passe échouée pour l'utilisateur << airtime >> FATAL: authentification par mot de passe échouée pour l'utilisateur << airtime >>] ** pgsql(pgsql)://airtime:PASSWORD@localhost/airtime Database connection problem. Check if database 'airtime' exists with corresponding permissions.
Liste des bases de données Nom | Propriétaire | Encodage | Tri | Type caract. | Droits d'accès -----------+--------------+----------+-------+--------------+----------------------- postgres | postgres | LATIN1 | fr_FR | fr_FR | template0 | postgres | LATIN1 | fr_FR | fr_FR | =c/postgres : postgres=CTc/postgres template1 | postgres | LATIN1 | fr_FR | fr_FR | =c/postgres : postgres=CTc/postgres (3 lignes)
root@dhcppc1:/var/lib/airtime/install# php airtime-install.php ******************************** Install Begin ********************************* *** Database Installation *** * Could not create user airtime: Array. * Could not create database 'airtime': Array DB Error: connect failed [nativecode=pg_pconnect(): Unable to connect to PostgreSQL server: FATAL: password authentication failed for user "airtime" FATAL: password authentication failed for user "airtime"] ** pgsql(pgsql)://airtime:PASSWORD@localhost/airtime Database connection problem. Check if database 'airtime' exists with corresponding permissions.
root@dhcppc1:/var/lib/airtime/application/configs# psql -l psql: FATAL: Ident authentication failed for user "root
root@dhcppc1:/var/lib/airtime/install# su postgres postgres@dhcppc1:/var/lib/airtime/install$ psql psql (8.4.7) postgres=# CREATE DATABASE airtime; CREATE DATABASE postgres=# GRANT ALL PRIVILEGES ON DATABASE airtime TO airtime; GRANT postgres=# \q
root@dhcppc1:/var/lib/airtime/install# php airtime-install.php ******************************** Install Begin ********************************* *** Database Installation *** * Could not create user airtime: Array. * Could not create database 'airtime': Array * Connected to database * Installing Postgres scripting language Error! DB Error: unknown error SQL statement was: CREATE LANGUAGE 'plpgsql' * Creating database tables *** Directory Setup *** * Directory /var/lib/airtime/files created * Directory /var/lib/airtime/files/stor created * Setting dir permissions... * Importing sample audio clips liquidsoap: nessun processo trovato Impossibile trovare l'utente pypo /usr/sbin/deluser: L'utente «pypo» non esiste. Immettere nuova password UNIX: Reimmettere la nuova password UNIX: passwd: password aggiornata correttamente Starting daemontool script pypo-fetch Starting daemontool script pypo-push Starting daemontool script pypo-liquidsoap /var/lib/airtime/pypo/install Checking and removing any existing pypo processes Checking for user pypo Creating user pypo Creating log directories Creating directory /var/log/pypo Creating directory /opt/pypo/ Creating directory /opt/pypo/bin Creating directory /opt/pypo/cache Creating directory /opt/pypo/files Creating directory /opt/pypo/tmp Creating directory /opt/pypo/files/basic Creating directory /opt/pypo/files/fallback Creating directory /opt/pypo/files/jingles Creating directory /opt/pypo/archive Copying pypo files Installing 32-bit liquidsoap binary Removing old directory /opt/pypo/bin/ Copying directory /var/lib/airtime/pypo/install/.. to /opt/pypo/bin/ Setting permissions Installing daemontool script pypo-fetch Creating directory /etc/service/pypo-fetch Creating directory /etc/service/pypo-fetch/log Installing daemontool script pypo-push Creating directory /etc/service/pypo-push Creating directory /etc/service/pypo-push/log Installing daemontool script pypo-liquidsoap Creating directory /etc/service/pypo-liquidsoap Creating directory /etc/service/pypo-liquidsoap/log Waiting for processes to start... /var/lib/airtime/pypo/install /etc/service/pypo-fetch: up (pid 6512) 0 seconds /etc/service/pypo-push: up (pid 6511) 0 seconds /etc/service/pypo-liquidsoap: up (pid 6513) 0 seconds ******************************* Install Complete *******************************
su postgres psql CREATE USER airtime ENCRYPTED PASSWORD 'airtime' LOGIN CREATEDB NOCREATEUSER; CREATE DATABASE airtime; ALTER DATABASE airtime OWNER TO airtime; \q
cd [your_dir]/install nano airtime-install.php
echo "* Creating Airtime database user".PHP_EOL; AirtimeInstall::CreateDatabaseUser(); echo "* Creating Airtime database".PHP_EOL; AirtimeInstall::CreateDatabase();
echo "* Creating Airtime database user".PHP_EOL; //AirtimeInstall::CreateDatabaseUser(); echo "* Creating Airtime database".PHP_EOL; //AirtimeInstall::CreateDatabase();
// Create the database user $command = "sudo -u postgres psql postgres --command \"CREATE USER {$CC_CONFIG['dsn']['username']} " ." ENCRYPTED PASSWORD '{$CC_CONFIG['dsn']['password']}' LOGIN CREATEDB NOCREATEUSER;\" 2>/dev/null"; //echo $command."\n"; @exec($command, $output, $results); if ($results == 0) { echo " * User {$CC_CONFIG['dsn']['username']} created.\n"; } else { echo " * Could not create user {$CC_CONFIG['dsn']['username']}: $output.\n"; } $command = "sudo -u postgres createdb {$CC_CONFIG['dsn']['database']} --owner {$CC_CONFIG['dsn']['username']} 2> /dev/null"; //echo $command."\n"; @exec($command, $output, $results); if ($results == 0) { echo " * Database '{$CC_CONFIG['dsn']['database']}' created.\n"; } else { echo " * Could not create database '{$CC_CONFIG['dsn']['database']}': $output\n"; }
It looks like you're new here. If you want to get involved, click one of these buttons!