RadarURL

웹 프로그래밍
2012.08.18 07:34

Windos XP에서 APM 설치하기 (Apache, PHP, Mysql)

조회 수 7065 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

가 크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

가 크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

1. Apache, MySQL, PHP 설치하기

1. Apache 설치하기

  • 윈도우용 Apache Download ( 저는 apache_2.2.14-win32-x86-openssl-0.9.8k.msi 를 받았습니다. )
  • Run the Apache Installer
apache-install-11.png
  • Network Domain 및 Server Name 을 모두 “localhost“로 입력한다.
  • Email 은 관리자 Email을 준다.
  • 기존 설치환경이려면  “시작 -> 프로그램 -> Apache HTTP Server 2.2 -> Configure Apache Server -> Edit the Apache httpd.conf Configuration File” 에서 직접수정하면 된다.
  • Firefox 웹 브라우져에서  “http://localhost”를 입력하고 Apache 실행을 Test한다.
  • Apache 설치가 이상없이 되었다면 httpd.conf 에서 DocumentRoot 를  eclipse의 workspace로 변경해준다.
    • 이때 주의 할점은 윈도우의 를 /로 변경해줘야 한다는 것이다. 즉 D:workspace 라면  D:/workspace 로 변경해서 입력해야 한다.
    • 또한  DocumentRoot “D:/workspace” 외에 바로 아랫부분에 있는

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory “C:/Program Files/Apache Software Foundation/Apache2.2/htdocs”>

부분도

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory “D:/workspace”>

로 변경해줘야 한다. 그렇지 않으면

Forbidden

You don’t have permission to access / on this server.

오류가 난다.

  • httpd.conf 값을 변경한 후에는 “시작 > 프로그램 > Apache HTTP Server 2.2 > Monitor Apache Servers” 에서 Apache를 Restart 해줘야 반영된다.

monitor-apache-servers1.png
Monitor Apache Servers 화면

2.PHP Install & Configuration

  • 윈도우용 PHP Download ( 저는 php-5.3.1-Win32-VC9-x86.zip을 다운받았습니다. )
  • 이유는 모르겠지만 Installer 파일을 설치하면 자꾸 down 되서 zip 파일을 다운받았습니다. 시간이 되면 이부분도 다시한번 확인해보로록 하겠습니다.
  • Down 받은 파일을 d:/php 에 풀어줍니다.
  • d:phpphp.ini-development 파일을 php.ini로 복사
  • php.ini 파일에서 다음부분을 수정한다.
  • ; extension_dir = “ext” => extension_dir = “d:/php/ext”
  • ;extension=php_gd2.dll => extension=php_gd2.dll
  • ;extension=php_mbstring.dll => extension=php_mbstring.dll
  • ;extension=php_mysql.dll  => extension=php_mysql.dll
  • ;extension=php_mysqli.dll => extension=php_mysqli.dll
  • php.ini  Save
  • PHP Path 환경변수 등록

    php-ed9998eab2bdebb380ec8898-ed8eb8eca79121.png

  • Config Apache (httpd.conf 를 다음과 같이 수정한다)
    • #LoadModule rewrite_module modules/mod_rewrite.so => LoadModule rewrite_module modules/mod_rewrite.so
    • 다음을 Config File에 추가

#PHP5

              LoadModule php5_module "D:/php/php5apache2_2.dll"
              PHPIniDir "D:/php"

AddType application/x-httpd-php .php

  AddType application/x-httpd-php-source .phps
  DirectoryIndex index.html index.php

3. MySQL 설치하기

    • MySQL은 압출파일을 가지고 설치하는 방법을 살펴보겠습니다. ( 실은 Installer 설치에 계속 문제가 있어서요. 원인은 모르겠습니다. )
    • 먼저 D:mysql Directory에 다운받은 Mysql(mysql-noinstall-5.1.41-win32.zip) 압축을 풀어준다.
    • MySQL  Option 파일 설정
      • Option Sample 파일 결정 : MySQL에는 my-small, my-medium, my-large.cnf 그리고 my-huge.cnf  있으며, 기본적으로 small, medium, large, 그리고 very large system에 적용하면 무난하다. 이때  Windows 시스템에서는 .cnf 보다 .ini를 사용하는게 바람직하며 Option 파일의 위치는 MySQL 설치 Directory에 복사하면 된다. (  Windows에서 Binary 설치일경우 )
      • my.ini 에서 다음 부분을 수정해준다.

[mysqld] 에서 설치 Directory와 Data Directory 를 지정해준다.

[mysqld]
# set basedir to your installation path
basedir=E:/mysql
# set datadir to the location of your data directory
datadir=E:/mydata/data
      • MySQL Server Type 을 결정해준다.  mysql를 설치할경우 mysqld를 사용하면 된다.
        • mysqld : Optimized binary with named-pipe support
        • mysqld-debug : Like mysqld, but compiled with full debugging and automatic memory allocation checking
      • Start Server  : Window DOS Command 창을 열어다 다음을 실행시켜준다.
        • D:mysqlbin>mysqld –console

          InnoDB: The first specified datafile c:ibdataibdata1 did not exist:
          InnoDB: a new database to be created!
          InnoDB: Setting file c:ibdataibdata1 size to 209715200
          InnoDB: Database physically writes the file full: wait...
          InnoDB: Log file c:iblogsib_logfile0 did not exist: new to be created
          InnoDB: Setting log file c:iblogsib_logfile0 size to 31457280
          InnoDB: Log file c:iblogsib_logfile1 did not exist: new to be created
          InnoDB: Setting log file c:iblogsib_logfile1 size to 31457280
          InnoDB: Log file c:iblogsib_logfile2 did not exist: new to be created
          InnoDB: Setting log file c:iblogsib_logfile2 size to 31457280
          InnoDB: Doublewrite buffer not found: creating new
          InnoDB: Doublewrite buffer created
          InnoDB: creating foreign key constraint system tables
          InnoDB: foreign key constraint system tables created
          011024 10:58:25  InnoDB: Started
                       mysql: ready for connections
                       Version: '5.1.42'  socket: ''  port: 3306
        • mysql Server에 접속해서 확인한다.

C:mysqlbin>mysql

Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 1 to server version: 4.0.18-nt

Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the buffer.

mysql>

C:mysqlbin> mysqladmin -u root shutdown

      • Install Server as Server
        • C:mysqlbin> mysqld --install
      • Remove Server
        • C:mysqlbin> mysqld --remove
  • PHP Connection test
    <?php
    // hostname or ip of server (for local testing, localhost should work)
    $dbServer='localhost';
    
    // username and password to log onto db server
    $dbUser='root';
    $dbPass='';
    
    // name of database
    $dbName='test';
    
        $link = mysql_connect("$dbServer", "$dbUser", "$dbPass") or die("Could not connect");
        print "Connected successfully<br>";
        mysql_select_db("$dbName") or die("Could not select database");
        print "Database selected successfully<br>";
    
    // close connection
    mysql_close($link);
    ?>
  •  

    출처 : http://blog.dinux.kr/?p=222

    ?

    공부 게시판

    공부에 도움되는 글을 올려주세요.

    1. [공지] 공부 게시판 입니다.

      Date2003.08.18 By처누 Views2017308
      read more
    2. 티소믈리에, 차 문화를 바꾸다

      Date2026.10.06 Categoryu-E(TestBed) By광휘의철편64 Views3
      Read More
    3. 창원흥신소 서비스 안내

      Date2026.10.06 Category가상화 By흔들리는골렘32 Views1
      Read More
    4. 동작노래방 010 2817 0845 모임 분위기에 맞는 노래방 안내

      Date2026.10.06 Category경제 By교활한철학자타조18 Views1
      Read More
    5. 유심&통장 [카,톡] sim256 (24시문의) 대포유심 대포통장판매 선불유심팝니다 대포유심팝니다

      Date2026.10.06 Category윈도우즈 By놀라운운석99 Views1
      Read More
    6. 강남세븐❤️OlO-8655-OO53❤️친절문의환영 #강남세븐 #역삼동세븐 #강남세븐데이즈 #강남풀싸롱 #역삼동풀싸롱 #선릉역풀싸롱 #역삼동룸싸롱 #역삼룸사롱 #역삼풀살롱 #강남미러초이스 #역삼미러초이스

      Date2026.10.06 Category업무 By괴랄한재규어89 Views1
      Read More
    7. 파주누수업체, 신속 해결의 모든 것

      Date2026.10.06 Category건강 By우중충한도적91 Views2
      Read More
    8. ㅇㅇ병원, 당신의 건강을 책임지는 현명한 선택

      Date2026.10.06 Categoryu-E(활성화) By빛나는달고나24 Views1
      Read More
    9. 양산싱크대막힘 시원하게 뚫는 비법

      Date2026.10.06 Categoryu-E(표준화) By예측불가토끼46 Views1
      Read More
    10. 용인두피문신 고민? 만족 후기 보려면

      Date2026.10.06 Category동식물 By절묘한솔개92 Views6
      Read More
    11. 토보샵: 명품레플리카 쇼핑의 시작

      Date2026.10.06 Category구글 애드센스 By얼어붙은흐름98 Views3
      Read More
    12. 대전누수, 근본 원인 해결의 시작

      Date2026.10.06 Category사무 소프트웨어 By적막한체이서42 Views1
      Read More
    13. 마인드 끝판왕 사이즈까지 장착 완료! 010---8293---0291---- 여기가 베트남인줄 마블 노래클럽

      Date2026.10.05 Category사업 By기운찬오소리38 Views1
      Read More
    14. 카-툑 gusim8003 [24시문의] 선불유심내구제/내구제대출/소액대출/급전/ 비대면대출 상조내구제 무직자대출 대출

      Date2026.10.05 Category건강 By어설픈오소리22 Views1
      Read More
    15. 강남엘리트❤️OlO-8655-OO53❤️친절문의24시 강남하퍼1등실장 #강남엘리트 #강남엘리트위치 #강남엘리트하퍼 #하이퍼블릭엘리트 #강남엘리트예약문의 #선릉엘리트 #선릉역엘리트 #강남사라있네

      Date2026.10.05 Category하드웨어 By괴랄한재규어89 Views1
      Read More
    16. 청담동셔츠룸 010 2817 0845 일정과 인원에 맞춘 셔츠룸 문의

      Date2026.10.05 Category블로그 By정열적인퀘이사14 Views1
      Read More
    17. 최근 테헤란로 벤처 밸리의 핵심 리더들 사이에서 ‘클래스가 다른 정통 수질과 프라이빗 무드’로 소문 자자한 '선릉 룸싸롱' 기습 방문, 인공미를 거부하는 무결점 뉴페이스들과 심장을 마비시킨 사심 플러팅에 제대로 저격당하고 온 솔직 후기

      Date2026.10.05 Category카메라 By희미한홍학99 Views1
      Read More
    18. 본식DVD, 웨딩영상 색감이 중요한 이유새 창 열림

      Date2026.10.05 Categoryu-E(활성화) By힘겨운귤35 Views2
      Read More
    19. 대전, 인천, 세종 하수구 막힘 문제 해결 방법

      Date2026.10.05 Category공지 By정열적인코요테90 Views4
      Read More
    20. <문경맥주> 구입 할 수 있는 곳은 새 창 열림

      Date2026.10.05 Category취미 By타오르는드래곤61 Views1
      Read More
    21. 강남건전지❤️OlO-8655-OO53❤️친절문의환영 #강남건전지 #강남유니콘 #선릉유니콘 #강남건전지위치 #선릉역건전지#대치동유니콘 #강남바커스 #선릉바커스 #선릉역바커스 #강남룸클럽 #선릉룸클럽 #강남베터리 #강남바데리

      Date2026.10.05 Category데이터베이스 By괴랄한재규어89 Views1
      Read More
    Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 132 Next
    / 132


    즐겨찾기 (가족)

    JAESOO's HOMEPAGE


    장여은 홈페이지


    장여희 홈페이지


    장여원 홈페이지


    즐겨찾기 (업무)

    알리카페 홀릭

    숭실대 컴퓨터 통신연구실 (서창진)

    말레이시아 KL Sentral 한국인 GuestHouse


    즐겨찾기 (취미)

    어드민아이디

    유에코 사랑회

    아스가르드 좋은사람/나쁜사람

    JServer.kr

    제이서버 메타블로그

    재수 티스토리


    즐겨찾기 (강의, 커뮤니티)

    재수 강의 홈페이지


    한소리


    VTMODE.COM


    숭실대 인공지능학과


    숭실대 통신연구실


    베너