목록Apache (13)
준호씨의 블로그
2018.01.15 삽질 했던 것 정리. 문제가 해결은 된 상태라 해결 된 것 까지 정리. 정확한 이유 확인은 못함. cpan 으로 MIME::Lite 라는 모듈을 설치 했는데 로컬에서는 잘 되는데 apache 통해서 perl cgi 를 호출하면 MIME::Lite 모듈이 없어서 오류가 나는 상황 설치된 perl 환경 참고로 OSX 기본 perl 버전은 5.18 /usr/bin/perl perlbrew 로 세팅한 perl 이 5.18.2, 5.26.1 perlbrew perl 에서 cpan MIME::Lite 로 설치 하면 로컬에서는 잘 됨 스크립트의 shebang 은 다음과 같이 되어 있음. #!/usr/bin/env perl 추측하기로는 apache 에서 호출한 perl cgi 는 perlbrew 로..
맥북 마이그레이션 후 아파치 웹서버가 제대로 동작하지 않음 brew services 로는 상황 진단이 어려움 $ brew services restart httpd Stopping `httpd`... (might take a while) ==> Successfully stopped `httpd` (label: homebrew.mxcl.httpd) ==> Successfully started `httpd` (label: homebrew.mxcl.httpd) 메시지는 그럴싸 한데 실제로 httpd 가 안뜸. /usr/local/var/log/httpd/error_log 에도 로그가 안찍힌다. apachectl 로 시작 해 보면 에러 메시지를 볼 수 있다. $ apachectl start dyld: Symbol..
서버를 재 구축 해야 된다거나 등의 이유로 아파치 빌드 옵션을 확인 해야 될 때가 있다. 그 방법을 정리 해 본다. 아파치가 설치 된 디렉토리로 이동 한다. /usr/local/Cellar/httpd24/2.4.23_2 build 디렉토리로 들어간다. cd build config.nice 파일을 열어 본다. $ cat config.nice #! /bin/sh # # Created by configure CC="clang"; export CC "./configure" \ "--enable-layout=Homebrew" \ "--enable-mods-shared=all" \ "--enable-unique-id" \ "--enable-ssl" \ "--enable-dav" \ "--enable-cache" \..
change directory to your apache directory /usr/local/Cellar/httpd24/2.4.23_2 then go to build directory cd build see the config.nice file $ cat config.nice #! /bin/sh # # Created by configure CC="clang"; export CC "./configure" \ "--enable-layout=Homebrew" \ "--enable-mods-shared=all" \ "--enable-unique-id" \ "--enable-ssl" \ "--enable-dav" \ "--enable-cache" \ "--enable-logio" \ "--enable-defla..
php 버전을 검색 해 본다. brew search php php7 도 있긴 하던데 일단 무난한 5버전 중에서 가장 최신 버전으로 설치. 아파치 지원을 위해 --with-apache 옵션을 넣어준다. brew install php56 --with-apache multiple taps 어쩌고 에러 나는 경우. josegonzalez 가 tap 되어 있는 경우 untap 해 준다. brew untap josegonzalez/php brew tap homebrew/php 참고: https://github.com/Homebrew/homebrew-php/issues/1795 아무튼 php56 이 설치 되면 해당 버전이 잘 설치 되었음을 알 수 있다. $ php -version PHP 5.6.26 (cli) (bu..