PHP Fatal error: Call to undefined function curl init()

PHP Fatal error: Call to undefined function curl_init()
PHP Fatal error: Uncaught Error: Call to undefined function curl_init()

1 확인[ | ]

root@zetawiki:~# php -m | grep curl
root@zetawiki:~#
PHP 7
root@zetawiki:~# php -r 'curl_init();'
PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in Command line code:1
Stack trace:
#0 {main}
  thrown in Command line code on line 1
PHP 5
root@zetawiki:~# php -r 'curl_init();'
PHP Fatal error:  Call to undefined function curl_init() in Command line code on line 1

2 php-curl 설치[ | ]

sudo apt-get update
sudo apt-get install php-curl

3 확인 2[ | ]

root@zetawiki:~# php -r 'curl_init();'
root@zetawiki:~#

4 아파치 재시작[ | ]

root@zetawiki:~# /etc/init.d/apache2 restart
 * Restarting web server apache2                         [ OK ]

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}