Jump to:

558 Posts in 3589 Topics by 244 members

Hosting Requirements

SilverStripe Forums » Hosting Requirements » Missing hash module of php

What you need to consider when choosing a hosting provider and plan.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1210 Views
  • Pango853
    Community Member
    2 Posts

    Missing hash module of php Link to this post

    According to Silverstripe requirements(http://doc.silverstripe.org/server-requirements#php), hash module seems to be necessary. I knew it is default after php 5.2. Anyway, unfortunately that my server(php 5.2.5) does not provide that module.

    I checked the source and found that only "hash_algos" is necessary(just seems to be). So I put the following code in the main.php and got the Silverstripe worked.
       function hash_algos(){   return Array('md4','md5','sha1','sha256',... ,'haval256,5');}

    I am starting to develop a website with this server I mentioned above. Here, I want to ask if hash will cause any kind of fatal problem. Because I really don't want any unsolvable problem in the coming future, especially I cannot change the requirement of this server.

    Any advice or comment will be very very appreciated. Thank you.

  • Willr
    Forum Moderator
    5508 Posts

    Re: Missing hash module of php Link to this post

    Wow I don't think I have ever heard of it being disabled.

    I think you need to define 2 functions at least hash() and like you have hash_algos(). Looks like it could work without hash() though. Take a look at PasswordEncryptor::encrypt();

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.