개발자의 하루

Call to undefined function curl_init() 본문

Server

Call to undefined function curl_init()

단독질주 2021. 11. 11. 20:54
반응형

윈도우 환경에서 CURL 이 안되어 황당한 일이....

 

 

분명 php.ini 에선 모듈이 추가 되어 있다.

phpinfo()에선 CURL이 보이질 않는다.

 

 

아니나 다들까

 

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

 

실행이 안된다.

 

한참 구글링을 하다 설마 했던 방법으로 해결

 

 

php 폴더에서 libssh2.dll 또는 libssh.dll 이 있는지 확인 후 이 파일을 아파치 bin 폴더에 복사하고 아파치 재시작하니

 

phpinfo()에서 curl 이 정상적으로 인식되고 curl 실행이 잘 되었다 ^^;

 

뭔 이렁 경우가 헐...

반응형

'Server' 카테고리의 다른 글

[Mysql] ERROR 1067 (42000)  (0) 2021.07.29
CentOS 기본 YUM 기준 APM  (0) 2021.03.09
Got error 28 from storage engine (1030)  (0) 2020.12.14
virtualbox end KASLR error  (0) 2020.11.06
Mysqldump when using LOCK TABLES  (0) 2020.11.05