WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • Error logging in to new WB instance
  • Print
Pages: [1]   Go Down

Author Topic: Error logging in to new WB instance  (Read 6345 times)

Offline richwingerter

  • Posts: 69
Error logging in to new WB instance
« on: January 24, 2019, 10:39:35 PM »
Good news! I was able to find the problem.

As those who have been following this saga know, I installed a new instance of WebsiteBaker with version 2.12.1. It is in a directory named testing, and the server has the following directory structure:

Code: [Select]
/home/admin
  /public_html (where 2.10 is working)
  /testing (where I want to put 2.12)

First of all, when I open the site at https://testing.greenmaking.com it shows the WB "Website Under Construction" message (after you click through the security warnings and add a security exception).

I had a problem with an undefined function, but the ISP loaded the library for it and this went away.

However, when I try to log in as admin it would say, "Login name or password incorrect".

I tried the "Forgot Password?" link twice. In each case it sends me an e-mail message that says (in part):

Code: [Select]
Your new 'Green Making' login details are:

Login name: xxxxx
Password: ...

Your password has been reset to the one above.

It actually sends "xxxxx" for the login name, but I take that to mean "admin". It gives me a temporary password for "...". However, using that password for admin in the Login dialog box failed.

I believe the forgotten password process is updating the right database because the value in the wb_users.password field for the admin user changes when I go through the process.

I checked the logs for the site. I have two: install.log.php and php_error.log.php.

The first line of install.log.php is a PHP line designed to stop this file from being executed. After that it shows that config.php was successfully written. There are a bunch of install messages. Then it says, "Couldn't remove config.php.new". But the final line says:

Installation successfully at Fri, 18 Jan 2019 22:14:31 +0000

I checked and the config.php file it generated looks correct, as far as the DB lines go. However, the file ends with:

Code: [Select]
define('WB_URL', 'http://testing.greenmaking.com');
define('ADMIN_DIRECTORY', 'admin');
require __DIR__.'/framework/initialize.php';

The other file, php_error.log.php, just has the <?php die line. So, it is not reporting any errors.

However, in looking at this, I realized that the define for WB_URL is incorrect. It needs to be 'https://testing.greenmaking.com'.

I may have entered it wrong in the install. It may be that the install script regularizes this to "http". If so, that should be corrected in the script, but it's more likely I just mis-typed it.

In any case, I changed this line in config.php and now I can log into the administrator.

Thanks for your help and support!
Logged

Offline hgs

  • WebsiteBaker Org e.V.
  • **
  • Posts: 1884
    • EFG MG
Re: Error logging in to new WB instance
« Reply #1 on: January 25, 2019, 07:56:27 AM »
The installation script takes care of the actual setup of the domain, if the domain has a valid certificate, https://domäne.tdl will also be entered in step 3.
I have tested this live.
Logged
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • Error logging in to new WB instance
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2