This is an old revision of the document!
개발환경 위해서 APM 설치하기
윈도10 64bit 환경
Apache
https://www.apachelounge.com/download/
PHP랑 맞추려면 x86 으로 설치해야 함
- [Apache 변수] conf > httpd.conf
- Define SRVROOT “c:/Apache24”
- ServerRoot “${SRVROOT}”
- DocumentRoot “${SRVROOT}/htdocs”
- ServerName 127.0.0.1:80 #제거
- [윈도 변수] Edit Environment Variables
- Path : c:/Apache24/bin
- 설치 : cmd 관리자권한 실행
- httpd -k install
- httpd -k start
- 127.0.0.1:80 접속
PHP
5.4.39.
https://windows.php.net/downloads/ > past realeses..
https://windows.php.net/downloads/releases/archives/
- php.ini-development > php.ini 로 변경
- extension_dir = “C:\Apache24\php-5.4.39\ext” ; 삭제
- Apache > conf > httpd.conf 에 추가 : php7 → php5로 수정
#PHP LoadModule php5_module "C:\php/php5apache2_4.dll" AddType application/x-httpd-php .php .html AddHandler application/x-httpd-php .php .html #configure the path to php.ini PHPIniDir "C:\Apache24\php-5.4.39"
- [cmd] httpd.exe -k restart
- <?php phpinfo(); ?> : htdocs 폴더에 넣고 접속, 실험
Discussion