PHP Warning: Module already loaded in Unknown on line 0

前端 未结 15 1241
抹茶落季
抹茶落季 2020-11-27 16:38

On Mac OSX Mavericks using homebrew php55 whenever I run a a php command I get the following error message (everything runs fine it\'s just annoying)

PHP War         


        
15条回答
  •  借酒劲吻你
    2020-11-27 17:25

    In my case I had uncoment the ;extension=php_curl.so in php.ini, but Ubuntu was already calling this extension somewhere else.

    To find this "somewhere else", on php.ini will informe. On my case: /etc/php/7.1/apache2/conf.d/20-curl.ini was the path.

    So now we edit this file (terminal):

    sudo nano /etc/php/7.1/apache2/conf.d/20-curl.ini
    

    Comment the ;extension=php_curl.so

    Save file and restart apache:

    sudo systemctl restart apache2
    

提交回复
热议问题