The requested operation has failed

도대체 저 에러를 몇번을 반복하면서 설정을 바꿔봤던가. 이것이야 말로 진정한 삽질이로다.

 

윈도우에서 아파치를 설치하고 거기에 PHP를 돌려본 사람은 아마도 두분류가 있을듯 하다.

아무렇지 않게 쉽게 성공한 사람  vs 무한 삽질을 해대는 사람.

 

원인은 딱 한가지. 매뉴얼을 제대로 읽었나? 잃지 않았나의 차이.

버전업이 되면서 5.3.x 이후에 특히 발생하는 문제.

PHP 5.2.x를 사용할때는 아무 문제가 없었던 문제.

"

Which version do I choose?

If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP

If you are using PHP with IIS you should use the VC9 versions of PHP

VC6 Versions are compiled with the legacy Visual Studio 6 compiler

VC9 Versions are compiled with the Visual Studio 2008 compiler and have improvements in performance and stability. The VC9 versions require you to have the Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installed

 

Do NOT use VC9 version with apache.org binaries

VC9 versions of Apache can be fetched at Apache Lounge. We use their binaries to build the Apache SAPIs.

 

결론은 VC6, VC9인지 체크먼저 해보자.

 

VC6 ==> Apache

VC9 ==> IIS

 

현재 PHP 사이트 다운로드 상단에 나와 있는  최신 버전은 5.4.9

5.3.x 버전이후는 VC9이다.

아무거나 설치하면 되는줄 알았는데, 그런것이 아니었다.

아파치용 최신버전은 PHP 5.2 (5.2.17)  요걸 사용하자.

 

참고로 윈도우상에서 APM(Apache + PHP + MySQL)을 테스트 해보기위한 가장 쉬운 방법은 다음의 자동설치를 이용하는것이다.

 

APMSETUP ==> http://www.apmsetup.com/

 

php-cgi.exe

 

php-cgi.zip