Results 1 to 9 of 9

Thread: PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

  1. #1
    Join Date
    Jan 2012
    Beans
    55

    PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

    how to fix this error in the terminal?
    Code:
    PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
    tnx

  2. #2
    Join Date
    Jan 2012
    Beans
    55

    Re: PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

    up for this one. anyone can help. tnx

  3. #3
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,119
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

    If you could provide more information, I think that you will be more likely to get help. At the very least, what do you do for that message to occur? If it's code you have written, post the code. Perhaps tell us something about your environment - operating system version, php version etc.

  4. #4
    Join Date
    Jan 2012
    Beans
    55

    Re: PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

    Quote Originally Posted by spjackson View Post
    If you could provide more information, I think that you will be more likely to get help. At the very least, what do you do for that message to occur? If it's code you have written, post the code. Perhaps tell us something about your environment - operating system version, php version etc.
    even typing php-v to know my php version. still shows error.
    Code:
    PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
    PHP 5.4.15-1~dotdeb.2 (cli) (built: May 11 2013 20:26:49) 
    Copyright (c) 1997-2013 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    jairoh@jairoh-300E4C-300E5C-300E7C:~/lamp/public_html/l4$

  5. #5
    Join Date
    May 2010
    Location
    Tewkesbury uk
    Beans
    7,916
    Distro
    Ubuntu Development Release

    Re: PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

    Hi

    Page created date is in 2007 but i was last modified in 2011.

    http://www.somacon.com/p520.php

    See if it gets you nearer to a fix.

    In future, you may want to add a lot more information to your first post.

    You're far, far more likely to get an answer if you give as much detail as possible.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

  6. #6
    Join Date
    Jan 2012
    Beans
    55

    Re: PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

    thanks sir but it does not solve. yes that error occurs when i try to see my php version in cli.

  7. #7
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    9,033
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

    Are you sure this is the version of PHP from the repositories and not one compiled from source?


    Take a look in /etc/php5 and see if anything there loads the mcrypt module.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  8. #8
    Join Date
    Jan 2012
    Beans
    55

    Re: PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

    Quote Originally Posted by SeijiSensei View Post
    Are you sure this is the version of PHP from the repositories and not one compiled from source?


    Take a look in /etc/php5 and see if anything there loads the mcrypt module.
    when i ran
    Code:
    /etc/php5/conf.d$ ls
    these appeared

    10-pdo.ini 20-gd.ini 20-mysqli.ini 20-pdo_mysql.ini
    20-curl.ini 20-mcrypt.ini 20-mysql.ini mcrypt.ini


    are these what you mean sir?

  9. #9
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    9,033
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0

    Yes, it looks like you have two files that both try to install mcrypt. The official repository files all start with a number that controls the order of loading. Rename the file called "mcrypt.ini" to "mcrypt.extra" then restart Apache or run php5 from the command line and see if you still get the error. If not, and phpinfo() or "php -i" from the command line show mcrypt is still installed, then delete the "extra" file.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •