After I hit install button, it goes to this address and freezes domain/privmx/install/?next
anyone encountered this problem before? the install script shows my server is ok and am on the latest version of privmx.
the error log shows:
[07-Apr-2018 11:02:30 UTC] PHP Fatal error: Cannot redeclare hash_pbkdf2() in /home/username/mydomain/privmx/server/vendor/rych/hash_pbkdf2-compat/src/hash_pbkdf2_compat.php on line 41
Thank u 4 ur time.
Hi, your problem is a little bit strange for us… It seems that your server/hosting has a problem with namespaces or treats hash_pbkdf2() in a special way… Which version of PHP is installed on your server?
And also: are you sure all files of the installer are unmodified?
yeah, i had all the files but i managed to get it to work, i replaced the code on the hash_pbkdf2_compat.php with some code I found online and it worked. thanks.
Could you please paste the link to that code here? We’ll see what was the cause of the problem… And maybe include this code too in the future…
* Password hashing with PBKDF2.
* Author: havoc AT defuse.ca
* www: https://defuse.ca/php-pbkdf2.htm
// These constants may be changed without breaking existing hashes.
// format: algorithm:iterations:salt:hash
$salt = base64_encode(mcrypt_create_iv(PBKDF2_SALT_BYTES, MCRYPT_DEV_URANDOM));
return PBKDF2_HASH_ALGORITHM . ":" . PBKDF2_ITERATIONS . ":" . $salt . ":" .
Hm… to be honest, we do not understand this reply… This is a strange situation, hmm… However, I’m setting this thread as “solved”…