Fatal error: Call to undefined function curl_init()1 php curl 사용 하기 Fatal error: Call to undefined function curl_init() curl_init() 명령어 실행시 아래 메세지가 표출된다면 모듈이 설치되거나 사용 설정 되지 않았기 때문이다. Fatal error: Call to undefined function curl_init() 2가지 처리를 해주어야 한다. 1. 셋팅 2. 설치 먼저 php.ini에 접속한다. curl을 키워드로 검색하여 아래 소스를 찾는다. ;extension=curl ;는 php.ini 파일에서 주석을 의미한다. 제거해주자. 두번째로 설치를 해주어야 한다. 아래 명령어로 php 버전을 확인 해 준 후 버전에 맞는 파일을 다운받고 설치한다. php -v 5번이라면 아래 명령어를 통해 인스톨할 수 있다. sudo apt-get install php5-curl 완료 후 서버를 재시작해주면 정상 작동한다. 2021. 1. 27. 이전 1 다음