LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-04-2011, 10:47 AM   #1
ka2m
LQ Newbie
 
Registered: Nov 2011
Location: Saratov, Russia
Distribution: Ubuntu 11.10, Debian 6, Gentoo 2011
Posts: 3

Rep: Reputation: Disabled
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!
 
Old 12-26-2014, 01:58 PM   #2
mtrotter
LQ Newbie
 
Registered: Dec 2014
Posts: 1

Rep: Reputation: Disabled
Smile 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
 
1 members found this post helpful.
Old 12-29-2014, 02:05 AM   #3
kevinmilan2014
LQ Newbie
 
Registered: Nov 2014
Posts: 17

Rep: Reputation: 1
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';
?>
 
Old 03-14-2015, 10:10 PM   #4
mpelektro
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by mtrotter View Post
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.
 
  


Reply

Tags
apache2, dns



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
powerdns najidebian Linux - Server 1 07-18-2010 11:43 PM
PowerDNS vs BIND coolster Solaris / OpenSolaris 6 11-04-2008 09:38 AM
PowerDNS recursion rozilla Linux - Server 1 10-25-2008 06:25 PM
My user login session in SUSE Linux 9.1 version gets expired every now and then umesh.tiwari Linux - Software 1 12-06-2004 04:16 AM
Debugging PHP With PHPEdit and DBG - Session Start Timeout Has Expired SForsgren Linux - Software 0 07-22-2003 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration