mcrypt install error

Discussion in 'Installation' started by ccwjames, Mar 26, 2016.

  1. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    aMember require mcrypt extension to be installed in php. Please check installation instructions

    i have done all on that site and says its already installed?

    any ideas?
  2. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    sprted that but now

    Seems your webhosting does not support mod_rewrite rules required by aMember. There may be several reasons:
    • You have not uploaded file amember/.htaccess (it might be hidden and invisble with default settings)
    • Your webhosting has no mod_rewrite module enabled. Contact tech support to get it enabled
    • Your webhosting uses software different from Apache webserver. It requires to convert rewrite rules located in amember/.htaccess file into the webserver native format. Contact webhosting tech for details.
    You may continue aMember installation, but aMember will not work correctly until mod_rewrite issues are resolved.

    i can confirm its on


    root@ns381760:~# sudo a2enmod rewrite
    Module rewrite already enabled
    root@ns381760:~#
  3. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    510
    Download and run my requirements checker just to be sure.

    Perhaps .htaccess rewrite is not available even if the module is enable, this can be done in the main apache config.
  4. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    i tried in apache and apache2

    something seems real messed up now,
    the page that tells you about amember not set up, has loads of code ect at top?
  5. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    this is what i got when i added your code

    all code at top

    'PHP version >= 5.3.0', 'res' => (version_compare(PHP_VERSION, '5.3.0') >= 0)); $values[] = array('desc' => 'PHP version < 7.0.0', 'res' => (version_compare(PHP_VERSION, '7.0.0') < 0)); $values[] = array('desc' => 'mcrypt module installed', 'res' => extension_loaded('mcrypt')); $values[] = array('desc' => 'simplexml module installed', 'res' => extension_loaded('simplexml')); $values[] = array('desc' => 'zlib module installed', 'res' => extension_loaded('zlib')); $values[] = array('desc' => 'json module installed', 'res' => extension_loaded('json')); //$values[] = array('desc' => 'mhash module installed', 'res' => extension_loaded('mhash')); $values[] = array('desc' => 'xmlwriter module installed', 'res' => extension_loaded('xmlwriter')); $values[] = array('desc' => 'mbstring module installed', 'res' => extension_loaded('mbstring')); $values[] = array('desc' => 'pdo module installed', 'res' => extension_loaded('pdo')); $values[] = array('desc' => 'pdo_mysql installed', '', 'res' => extension_loaded('pdo_mysql')); $values[] = array('desc' => 'gettext installed', 'res' => function_exists('gettext')); $values[] = array('desc' => 'shell_exec function enabled', 'res' => isAvailable('shell_exec')); $values[] = array('desc' => 'curl function enabled', 'res' => function_exists('curl_version')); $values[] = array('desc' => 'Magic Quotes disabled', 'res' => (! get_magic_quotes_gpc())); // ============= // = FUNCTIONS = // ============= function output($str) { fwrite(STDOUT, $str); } function green($str) { return chr(27) . '[32m' . $str . chr(27) . '[0m'; } function red($str) { return chr(27) . '[31m' . $str . chr(27) . '[0m'; } function check($value) { return $value ? green('OK') : red('FAIL'); } function isAvailable($func) { $disabled = ini_get('disable_functions'); if ($disabled) { $disabled = explode(',', $disabled); $disabled = array_map('trim', $disabled); return ! in_array($func, $disabled); } return true; } function shellCommandExists($cmd) { $returnVal = shell_exec("which $cmd"); return (empty($returnVal) ? false : true); } // ================== // = OUTPUT RESULTS = // ================== if (PHP_SAPI == 'cli') { foreach ($values as $value) { output($value['desc'] . ': ' . check($value['res']) . PHP_EOL); } output(PHP_EOL . 'You can also view this file in a browser' . PHP_EOL); exit; } ?>
    aMember v4.x Requirements
  6. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    root@ns381760:~# php -v
    PHP 5.6.11-1ubuntu3.1 (cli)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies

    mysql -V
    mysql Ver 14.14 Distrib 5.6.28, for debian-linux-gnu (x86_64) using EditLine wrapper
  7. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    reinstalling my vps now, so lets see
  8. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    same loads of php code before the install???
  9. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    510
    Just ran the checker from the download and it worked fine.
  10. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    something my end mate.
    anyways after a reinstall of the vps, i have got to the page telling me mod_rewrite not enable, i spent 3 hours last night rying all guides and got no where
    i stick you file in root

    everhing is green tick apart from
    so i did this:

    sudo apt-get install php5-curl
    sudo service apache2 restart

    refreshed all green ticks and gone back to install to the mod write error, so of course again googled mod rewrite....

    https://www.digitalocean.com/commun...set-up-mod_rewrite-for-apache-on-ubuntu-14-04

    root@ns381760:~# sudo a2enmod rewrite
    Module rewrite already enabled
    root@ns381760:~#
  11. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    510
    Silly question did you apply the .htaccess patch mentioned on this forum post?

    Also I have updated my requirements checker, it should now detect whether mod rewrite is active as far as PHP is concerned, download here.
  12. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    yep i did, support now after the easter break on the case now i hope.
    last time was a 5 min job, but new server giving me pain for set up

    but once set up should be good.

    i see you do some coding, what coding can you did?
  13. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    510
    Dunno what you are asking, I do stuff in aMemer and PHP generally.
  14. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    im after a custom login page, that would remove all the blue bar amember bits, i dont know to embed with word press or not, as i have only used wp about 6 years ago and later moved to a ipb board

    something like

    [​IMG]

    with maybe a space or two for banners and hidden counter
  15. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    510
    I will have nothing to do with IPB, as far as your login design it as ordinary html/css and I could probably implement it using the theme system.
  16. ccwjames

    ccwjames Member

    Joined:
    Sep 11, 2014
    Messages:
    430
    if you think can do that login , as well as maybe change all the blue nav bars ect to a blushed metal look. i ll paid beer money

Share This Page