티스토리 뷰

OS

[Linux] PHP 설치

빼인트 2010. 8. 19. 00:59
  • Configure
    • ./configure --prefix=/home/paint/php --with-apxs2=/home/paint/apache-2.2.15/bin/apxs --with-mysql=/home/paint/mysql --with-config-file-path=/home/paint/apache-2.2.15/conf --disable-debug --enable-safe-mode --enable-track-vars --enable-sockets --with-mod_charset --with-charset=utf8 --with-xml --with-language=korean --enable-mailparse --enable-calendar --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-tff --enable-url-includes --enable-trans-id --enable-inline-optimization --enable-bcmath --enable-sigchild --enable-mbstring
    • configure: error: xml2-config not found. Please check your libxml2 installation. 메시지 발생시
    • # yum -y install libxml2-devel 수행하여, xml2 설치
  • make
    • # make 수행
  • install
    • # make install 수행
  • Apache의 httpd.conf 설정
    • $APACHE_HOME/httpd.conf 에 아래 구문을 추가한다.
    • =======================================
    • AddType application/x-httpd-php .php
    • AddType application/x-httpd-php-source .phps
    • =======================================
  • 테스트
    • <?  phpinfo(); ?>


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함