[GH-ISSUE #187] How to install? #120

Open
opened 2026-02-28 01:21:04 +03:00 by kerem · 4 comments
Owner

Originally created by @Nurlan199206 on GitHub (Nov 23, 2018).
Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/187

How to install? Poor documentation didnt help.

We have issues getting the authdb working: Exception: Unable to open database: unable to open database file in /var/www/html/nsedit/includes/misc.inc.php:65 Stack trace: #0 /var/www/html/nsedit/includes/misc.inc.php(65): SQLite3->__construct('../etc/pdns.use...', 6) #1 /var/www/html/nsedit/includes/session.inc.php(4): include_once('/var/www/html/n...') #2 /var/www/html/nsedit/index.php(4): include_once('/var/www/html/n...') #3 {main}

my pdns.conf

webserver=yes
api=yes
api-key=test
$apipass = 'test';           # The PowerDNS API-key
$apiip   = '127.0.0.1';           # The IP of the PowerDNS API
$apiport = '8081';       # The port of the PowerDNS API
$apiproto      = 'http'; # http | https
$apisslverify  = FALSE;  # Verify SSL Certificate if using https for apiproto
$allowzoneadd  = FALSE;  # Allow normal users to add zones
$logging = TRUE;
$allowclearlogs = TRUE;  # Allow clearing of log entries
$allowrotatelogs = FALSE;# Allow rotation to text file on server
Originally created by @Nurlan199206 on GitHub (Nov 23, 2018). Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/187 How to install? Poor documentation didnt help. `We have issues getting the authdb working: Exception: Unable to open database: unable to open database file in /var/www/html/nsedit/includes/misc.inc.php:65 Stack trace: #0 /var/www/html/nsedit/includes/misc.inc.php(65): SQLite3->__construct('../etc/pdns.use...', 6) #1 /var/www/html/nsedit/includes/session.inc.php(4): include_once('/var/www/html/n...') #2 /var/www/html/nsedit/index.php(4): include_once('/var/www/html/n...') #3 {main}` my pdns.conf ``` webserver=yes api=yes api-key=test ``` ``` $apipass = 'test'; # The PowerDNS API-key $apiip = '127.0.0.1'; # The IP of the PowerDNS API $apiport = '8081'; # The port of the PowerDNS API $apiproto = 'http'; # http | https $apisslverify = FALSE; # Verify SSL Certificate if using https for apiproto $allowzoneadd = FALSE; # Allow normal users to add zones $logging = TRUE; $allowclearlogs = TRUE; # Allow clearing of log entries $allowrotatelogs = FALSE;# Allow rotation to text file on server ```
Author
Owner

@Nurlan199206 commented on GitHub (Nov 23, 2018):

any help?

i'm installed, but default admin/admin not working Error while trying to authenticate you

<!-- gh-comment-id:441217935 --> @Nurlan199206 commented on GitHub (Nov 23, 2018): any help? i'm installed, but default admin/admin not working `Error while trying to authenticate you `
Author
Owner

@righter83 commented on GitHub (Nov 28, 2018):

Where is your "$authdb" in the config.inc.php.
With this option you can define where the authdb is stored.

<!-- gh-comment-id:442479633 --> @righter83 commented on GitHub (Nov 28, 2018): Where is your "$authdb" in the config.inc.php. With this option you can define where the authdb is stored.
Author
Owner

@UlasSAYGINIM commented on GitHub (Jun 1, 2020):

hi , i encountered same problem. when i looked var_dump($userinfo); it shows bool(false) ; at do_db_auth function.
somehow , psql lite file created but admin account was not added.
i dont know how it can be reproduce.

<!-- gh-comment-id:636983985 --> @UlasSAYGINIM commented on GitHub (Jun 1, 2020): hi , i encountered same problem. when i looked var_dump($userinfo); it shows bool(false) ; at do_db_auth function. somehow , psql lite file created but admin account was not added. i dont know how it can be reproduce.
Author
Owner

@UlasSAYGINIM commented on GitHub (Jun 1, 2020):

I think it is related to php extension openssl compilation.
I firstly started nsedit without openssl support for php. it warned me than i installed and restart all services nginx php and then i t showed no warning, then i try to login and it showed error message.

all i have to do
rm -rf pdns.users.sqlite3 file then visit nsedit url then it started login without problem.

i think if there is no openssl support it does not create admin account in sqlite file but it creates empty database without account.

<!-- gh-comment-id:636986008 --> @UlasSAYGINIM commented on GitHub (Jun 1, 2020): I think it is related to php extension openssl compilation. I firstly started nsedit without openssl support for php. it warned me than i installed and restart all services nginx php and then i t showed no warning, then i try to login and it showed error message. all i have to do rm -rf pdns.users.sqlite3 file then visit nsedit url then it started login without problem. i think if there is no openssl support it does not create admin account in sqlite file but it creates empty database without account.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsedit#120
No description provided.