본문 바로가기
리눅스

[APACHE] CGI 호출시 500 코드 에러 ( libcurl.so.4 )

by 얼빵이 2020. 10. 15.
반응형

사내 홈페이지 제작중 CGI를 호출하니 아래와같은 에러가 나왔다

 

DEBUG [2020-10-15 09:42:23,498] - [Deb] [makeUrl] Exception : Server returned HTTP response code: 500 for URL: http://127.0.0.1:80/Test/Test.cgi DEBUG

 

[2020-10-15 09:42:23,498] - [Deb] [makeUrl] Exception start sleeptime: Server returned HTTP response code: 500 for URL: http://127.0.0.1:80/Test/Test.cgi DEBUG

 

[2020-10-15 09:42:23,998] - [Deb] [makeUrl] Exception end sleeptime: Server returned HTTP response code: 500 for URL: http://127.0.0.1:80/Test/Test.cgi

 

그래서 서버쪽을 확인해보니 

 

[Thu Oct 15 09:34:01.256683 2020] [cgi:error] [pid 3301] [client 61.85.197.45:51190] End of script output before headers: Test.cgi

 

[Thu Oct 15 09:34:01.276499 2020] [cgi:error] [pid 3302] [client 61.85.197.45:51192] AH01215: /home/mysite/htdocs/Test/Test.cgi: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory: /home/umsbiz/htdocs/WizshotCarControl/WizshotCarControl.cgi

 

이와같은 에러가 떠있었다

 

내가 해결한 방법은 다음과 같다

 

yum -y install libcurl.so.4

 

참쉽죠?

 

반응형

댓글


TOP

TEL. 02.1234.5678 / 경기 성남시 분당구 판교역로