php 5.0+ and amember pro?

Discussion in 'Installation' started by movado, Sep 6, 2004.

  1. movado

    movado Guest

    PHP is now on version 5.0.1+ and I'm just curious if Amember Pro has been tested on it. Any problems? Anyone have experience running Amember on a server with PHP 5.0?

    -james
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
  3. pewe

    pewe Guest

    Is there any news on this.

    Does the Amember/Zend work with PHP5 now?
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Yes, these problems are resolved. Some PHP5 installations may need a little workaround, so if you have any troubles - just contact us via helpdesk and we will help.
  5. pewe

    pewe Guest

    Thanks Alex.

    My ISP is installing PHP5 in a couple of weeks.

    Have you any information or advice I can pass on to him to try and ensure we dont have any problems? I can't really afford to loose Amember functonality as we have just undertaken a marketing campaign which will (hopefully) drive a number of new visitors to register on our site.
  6. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    You need to add the following lines into top of your amember/config.inc.php:

    PHP:
    $HTTP_GET_VARS $_GET;
    $HTTP_POST_VARS $_POST;
    $HTTP_COOKIE_VARS $_COOKIE;
    $HTTP_SESSION_VARS $_SESSION;
    $HTTP_SERVER_VARS $_SERVER;
  7. lukeshields

    lukeshields Member

    Joined:
    Apr 12, 2005
    Messages:
    34
    Any latest update on this Alex? My server switched to PHP5 this morning and the site went down, possibly because some scripts (not aMember scripts) did not work under PHP5.

    However, aMember did come up with the ubiquitous error of requiring IonCube to function.

    In my version, I have iconcube 4.2 installed under /amember/ioncube/

    Which ioncube file/s should we install in this directory to make aMember play nice with PHP5? I have a FreeBSD 5.something server.

    Second question - do we still have to change the lines of config.php in aMember?
  8. lukeshields

    lukeshields Member

    Joined:
    Apr 12, 2005
    Messages:
    34
    Should also mention that after the errors came up, my server switched me back to PHP4. I do want to migrate to PHP5 though when it is feasible for my scripts and aMember.
  9. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    If there is not exact error message provided, it is just impossible to help. I hope it is clear.

    All can I say is that you should get loaders for your platform and PHP5 here: http://www.ioncube.com/loaders.php and upload it to amember/ioncube/ folder.

    If this problem will appear again, please contact us via helpdesk, and we will be happy to offer quick help as always.
  10. jeffro

    jeffro New Member

    Joined:
    Nov 8, 2003
    Messages:
    13
    Also make sure that you have this in an .htaccess file inside your 'amember' directory:

    php_flag register_long_arrays on

    Otherwise your logins will fail.

    (the default php5 install has them off I believe)

    (amember 2.3.6)
  11. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It should not be needed with aMember 2.4.1
  12. riki

    riki New Member

    Joined:
    Apr 12, 2006
    Messages:
    17
    I'm running PHP5 as CGI and it seems to be working okay.
  13. shon

    shon New Member

    Joined:
    Jan 4, 2006
    Messages:
    9
    I just upgraded to PHP 5 for our new designers web development requirements. aMember seems to be working just fine. In fact, all of my previous php4 applications seem to be working just fine.

    the big scare off of php5 on php4 users is ridiculous. It's not as painful as it has been made out to be.

Share This Page