1 (edited by lmarecha 2009-02-16 17:24:31)

Topic: Problem installing and getting to the first page

Hi,

I came across Enano, which looks great. All my desired features and small, seems simple. Well this is from the site.
I gave it a try but I have a lot of issues trying to install it.

I tried on 2 different machines with the dev version 1.1.5 ( I tried with the stable but with similar issue, or even worse it never accept the database connection):
#1 FreeBSD 6.3 - Apache 10341100 - PHP 5.2.6 - mysql  Ver 14.14 Distrib 5.1.26 (yes apache is oldddd)
#2 Windows XP - LightTPD/1.4.20-1 - PHP 5.2.6 - mysql 5.0.51a  (from http://www.lighty2go.com )

All test were done using both IE6 and Firefox 3.0.6

Issues on #1
The test connection of the DB never return.
If I choose to just proceed, then it fail with some error at the end of install :
     Retrieve administrator password failed
     The administrator password couldn't be decrypted. This really shouldn't happen.

Issues on #2
All install is going fine without error (a few warning about missing imagemagik but that's all).
When the site is started, I got a missing page for the Main page : There is no page with this title yet.
The same apply for any other page or menu entries. Looking into the db, it's empty.
If I try to login (using the menu on the left), it just end up in missing page special.login/main page
It seems something is missing in the db install.

Additional note with #2 I had to change the mysql setting to increase the cache size or it would just make mysql process dying.

Actually the more important would be to have it on #2 to test it. Installing on #1 will come later.

Any idea for the missing page ? Or is that an upgrade so I need to install the stable first and then upgrade ?

Thanks.

Update : I made it working on #2. The root issue was the db setting. By default new db are created in "collation" mode. This is not working with enano. I had to change it to MyISAM utf8_unicode_ci and then it worked fine. You might want to add this somewhere to the doc.

Re: Problem installing and getting to the first page

I'll look into this and see if I can try to reproduce the error. Enano does explicitly specify the collation in the schema as far as I can remember, though it looks like I do have an inconsistency in the schema (only one table - enano_plugins - explicitly specifies the engine as MyISAM).

Have you configured MySQL to use any non-default settings? If so, could you post the relevant portions of your configuration file? Thanks.

--Dan

Re: Problem installing and getting to the first page

Sure, which config file do you want ?
In the windows box, this is a new install of Light2Go.
On freeBSD, this is the default mySQL install setting, no change.

Re: Problem installing and getting to the first page

Now that #2 is working I went further and tried to use the same on #1.
It proceed a little more but still stay stuck at :
     Retrieve administrator password failed
     The administrator password couldn't be decrypted. This really shouldn't happen.
Looking into it, it seems to fail in the following function:

\enano\install\includes\payload.php (31): function stg_password_decode()

It just return false and prevent the install to continue.

I made a try by forcing the output and it install all fine.
Except that it's impossible to login after that. I didn't went deep into the login part, but I guess it's using the same function for authentication.

Is there are special requirement for it or specific version of php library to have ? (I'll PM you the phpinfo)

Re: Problem installing and getting to the first page

The 1.1 source code has the following code in payload.php:

  $pass = $aes->decrypt($_POST['crypt_data'], $aes_key, ENC_HEX);
  if ( !$pass )
    return false;

  return $pass; // Will be true if the password isn't crapped

From what I can tell there's probably an issue with your PHP configuration. AES is indeed a tricky beast, and the newer (much more optimized) version of the algorithm, while vigorously tested, definitely isn't as mature as the one used in Enano 1.0.x. If you could post a phpinfo page that would be greatly appreciated, thanks. In the mean time I'm going to grab the latest FreeBSD binaries and see if I can't reproduce this in VMware.

--Dan

Re: Problem installing and getting to the first page

Thakns for your help. I have sent you the phpinfo link, tell me if you didn't got it.

Re: Problem installing and getting to the first page

I waited a little bit to see if there was a routing issue but I don't think that e-mail ever came in. Try sending it to dan at enanocms dot org.

--Dan

Re: Problem installing and getting to the first page

I just resent it.

Re: Problem installing and getting to the first page

Well I can't find a good binary release of MySQL for FreeBSD 7.1 (which I downloaded and loaded into VMware) and I don't feel like building the whole thing from source, so I'm grabbing the FreeBSD 6.4 DVD right now. Sorry this is taking so long, I'm trying to reproduce the issue with virtualization which is taking a lot of work sprinkled between various subprojects.

Question, is your MySQL server available in ports or did you install the binaries directly from MySQL? I'm very new to FreeBSD, so still feeling my way around it. smile

--Dan

Re: Problem installing and getting to the first page

Yes it's the one from the source port. We install everything from source, no pre-built binary.

11

Re: Problem installing and getting to the first page

Good news - I managed to figure out how FreeBSD's ports system works. It's going to take a while for MySQL to build though. *waits patiently*

After that I'll still obviously have a little Apache and PHP configuration to do before everything is set up for testing. Sorry for the inconvenience.

--Dan

Re: Problem installing and getting to the first page

don't worry, take your time, I'm still looking into it ans checking if we could try to upgrade the whole box to a new version of apache. However it's production box so we cannot really take it fully offline without testing it before.