XAMPP 설정하기

자신의 PC를 테스트용 서버로 만들기 XAMPP

자신의 PC를 테스트용 서버로 만들기

1.서버( DB[MySql] + 2.웝서버[Apache] + 3.웹프로그램[PHP] ) +4.플랫폼(워드프레스) + 5.테마 + 6.플러그인

———————————————————————————————————-
XAMPP( Apache + MySQL + PHP + Perl) 다운로드 받아 설치하기
———————————————————————————————————-
https://www.apachefriends.org/index.html
자신의 PC의 OS을 확인하고 다운로드 받아 설치

—————————————————–
설치 후 DB 만들기
—————————————————–
127.0.0.1/phpmyadmin/
들어가 DB 설정(utf-8) – 사용자 설정 안해도 됩니다. (관리자 계정: root 비밀번호: 공백)

c:\xampp 에 설치 됨

—————————————————–
워드프레스 플랫폼 설치
—————————————————–
워드프레스 공식사이트(https://ko.wordpress.org/)에 가서 파일 다운로드 받아 c:\xampp\htdocs\ 에 폴더에 복사해 넣고 테마 이름등으로 폴더 이름 변경

—————————————————–
오류처리
—————————————————–
업로드용량 2M 제한일 경우는
php.ini 파일의
post_max_size = 8M 이 부분을
post_max_size = 500M

upload_max_filesize = 2M 이 부분을
upload_max_filesize = 500M 게 적당히 고쳐줍니다.

아파치 실행이 안되면서 아래와 같은 메시지가 뜨면
오전 10:40:08 [Apache] Error: Apache shutdown unexpectedly.
오전 10:40:08 [Apache] This may be due to a blocked port, missing dependencies,
오전 10:40:08 [Apache] improper privileges, a crash, or a shutdown by another method.
오전 10:40:08 [Apache] Press the Logs button to view error logs and check
오전 10:40:08 [Apache] the Windows Event Viewer for more clues
오전 10:40:08 [Apache] If you need more help, copy and post this
오전 10:40:08 [Apache] entire log window on the forums
xampp는 ServerSslPort = 443 포트를 사용한다.

즉, 443 포트가 열려있다면 아파치가 가동되지 않는다 로그도 생성되지 않으니 주의 바란다.

열린 포트 확인은 아래와 같다.

종료방법은 Ctrl + Alt + Del 키로 작업관리자를 실행후 서비스탭에 들어가 동일한 PID의 서비를 종료하면된다.

— 윈도우 사용자—