Skip to main content

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

Comments

12 comments

  • quietFinn
    in what log are those errors?
    0
  • Rockforduk
    Apache logs
    0
  • quietFinn
    I've seen those errors several times and usually it's caused by a line in some user's php.ini file, but Apache error log doesn't tell the user. There is no referer in any of those error lines?
    0
  • Rockforduk
    I've seen those errors several times and usually it's caused by a line in some user's php.ini file, but Apache error log doesn't tell the user. There is no referer in any of those error lines?

    No unfortunately
    0
  • andrew.n
    Do you see the same if you type "php -v" for example?
    0
  • Damian
    I am also seeing the same error repeated in the apache error_log. Current cPanel (stable), CloudLinux CentOS7, EA-PHP74. No references to redis in ini files in the account. And it's not unique to this single account, it's occurring across all users. Any suggestions on where to look?
    0
  • andrew.n
    @Damian: do you see this under "php -v" via SSH as root? If yes you can do "php --ini" then based on the ini file path do: grep -r redis /etc/path to show if reference to redis is shown up there multiple times. Please paste here the outputs.
    0
  • Damian
    Thanks @andrew.n I didn't see it appear with php -v but after some digging around in /opt/cpanel/ea-php74/root/ I found two reference to redis.so ./etc/php.d/redis.ini:1:extension=redis.so ./etc/php.d/50-redis.ini:2:extension = redis.so So I commented it out of 50-redis.ini and restarted apache. I haven't seen the error since and redis appears to be working fine on the site that it was installed for. Now I need look into how to have each user (cPanel) have their own instance of redis to avoid collisions and potential security issues.
    0
  • andrew.n
    Good job. There are some Redis plugins out there which you can also try like the one from Unixy or this one:
    0
  • Damian
    Thanks Andrew, that looks like a good place to start.
    0
  • upsforum
    stay away from this site (unixy.net), i bought two weeks ago, no links, no software, no answers, i opened dispute on paypal
    0
  • andrew.n
    Sadly unixy is out of business for a bit now :(
    0

Please sign in to leave a comment.