LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   PowerDNS Session Expired (https://www.linuxquestions.org/questions/linux-server-73/powerdns-session-expired-917070/)

ka2m 12-04-2011 10:47 AM

PowerDNS Session Expired
 
Hello everyone!

I've installed PowerDNS server with MySQL backend on CentOS 5.7 recently. I've done it with this manual: http://www.howtoforge.com/installing...-on-centos-5.2

No other settings were changed. But when I login to Poweradmin website and try to configure it I get error: "Session Expired". When I login to my server, I usually have this line in browser with random number >130000 like this: http://192.168.1.102/poweradmin/inde...ime=1323017188

ANY URGENT HELP WILL BE APPRECIATED!

mtrotter 12-26-2014 01:58 PM

POWERDNS immediate expired_Session
 
I know this is a little late and i am a little pissed that no one answered you much sooner!
Basically, you deleted your config.inc.php settings and only gave it enough info to connect to database.
You need to cd into your web root directory, add the session info along with other parameters to this file
"/inc/config.ini.php"
You wont find this in any documentation online but I went through the same issue as you and discovered it myself.
Basically the template came preloaded with the paramets so just copy and paste the template and only plug in the info you generated
during setup such as the example below:
Your config.inc.php should look as follows:


<?php

// Database settings
$db_host = 'yourlocalhost';
$db_user = 'youruser';
$db_pass = 'yourpassword';
$db_name = 'databasename';
$db_port = '3306';
$db_type = 'mysql';
$db_layer = 'PDO';
//$db_file = ''; # used only for SQLite, provide full path to database file
//$db_debug = false; # show all SQL queries
//$db_layer = 'MDB2'; # or PDO

// Security settings
// This should be changed upon install
$session_key = 'yoursessionkey';
$password_encryption = 'md5'; // or md5salt

// Interface settings
$iface_lang = 'en_EN';
$iface_style = 'example';
$iface_rowamount = 50;
$iface_expire = 1800;
$iface_zonelist_serial = false;
$iface_title = 'Poweradmin';

// Predefined DNS settings
$dns_hostmaster = '';
$dns_ns1 = '';
$dns_ns2 = '';
$dns_ttl = 86400;
$dns_fancy = false;
$dns_strict_tld_check = true;

// Timezone settings
//$timezone = 'UTC';

// Logging settings

// Syslog usage - writes authentication attempts to syslog
// This facility could be used in combination with fail2ban to
// ban IPs with break-in attempts
$syslog_use = false;
$syslog_ident = 'poweradmin';
// On Windows usually only LOG_USER is available
$syslog_facility = LOG_USER;

// PowerDNSSEC settings
$pdnssec_use = false;
$pdnssec_command = '/usr/bin/pdnssec';
?>

Once again sorry no one answered you sooner, we are in this together "Linux family" Take care

kevinmilan2014 12-29-2014 02:05 AM

The session is kept open until the browser gets closed or the logout button gets pressed. There is no explicit timeout settings available.

Code:

// Predefined DNS settings
$dns_hostmaster = '';
$dns_ns1 = '';
$dns_ns2 = '';
$dns_ttl = 86400;
$dns_fancy = false;
$dns_strict_tld_check = true;

// Timezone settings
//$timezone = 'UTC';

// Logging settings

// Syslog usage - writes authentication attempts to syslog
// This facility could be used in combination with fail2ban to
// ban IPs with break-in attempts
$syslog_use = false;
$syslog_ident = 'poweradmin';
// On Windows usually only LOG_USER is available
$syslog_facility = LOG_USER;

// PowerDNSSEC settings
$pdnssec_use = false;
$pdnssec_command = '/usr/bin/pdnssec';
?>


mpelektro 03-14-2015 10:10 PM

Quote:

Originally Posted by mtrotter (Post 5290782)
I know this is a little late and i am a little pissed that no one answered you much sooner!
Basically, you deleted your config.inc.php settings and only gave it enough info to connect to database.
You need to cd into your web root directory, add the session info along with other parameters to this file
"/inc/config.ini.php"
You wont find this in any documentation online but I went through the same issue as you and discovered it myself.
Basically the template came preloaded with the paramets so just copy and paste the template and only plug in the info you generated
during setup such as the example below:
Your config.inc.php should look as follows:


<?php

// Database settings
$db_host = 'yourlocalhost';
$db_user = 'youruser';
$db_pass = 'yourpassword';
$db_name = 'databasename';
$db_port = '3306';
$db_type = 'mysql';
$db_layer = 'PDO';
//$db_file = ''; # used only for SQLite, provide full path to database file
//$db_debug = false; # show all SQL queries
//$db_layer = 'MDB2'; # or PDO

// Security settings
// This should be changed upon install
$session_key = 'yoursessionkey';
$password_encryption = 'md5'; // or md5salt

// Interface settings
$iface_lang = 'en_EN';
$iface_style = 'example';
$iface_rowamount = 50;
$iface_expire = 1800;
$iface_zonelist_serial = false;
$iface_title = 'Poweradmin';

// Predefined DNS settings
$dns_hostmaster = '';
$dns_ns1 = '';
$dns_ns2 = '';
$dns_ttl = 86400;
$dns_fancy = false;
$dns_strict_tld_check = true;

// Timezone settings
//$timezone = 'UTC';

// Logging settings

// Syslog usage - writes authentication attempts to syslog
// This facility could be used in combination with fail2ban to
// ban IPs with break-in attempts
$syslog_use = false;
$syslog_ident = 'poweradmin';
// On Windows usually only LOG_USER is available
$syslog_facility = LOG_USER;

// PowerDNSSEC settings
$pdnssec_use = false;
$pdnssec_command = '/usr/bin/pdnssec';
?>

Once again sorry no one answered you sooner, we are in this together "Linux family" Take care

I also faced this problem, and your solution worked very well.
Thank you very much.


All times are GMT -5. The time now is 02:44 PM.