질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

centos 5.5 php5.3.3 설치 문의 드립니다. ㅠㅠ

작성자 정보

  • 하루사리 작성
  • 작성일

컨텐츠 정보

본문

# cp php.ini-production /usr/local/apache2/conf/php.ini

 

이렇게 하고 

 

httpd.conf 파일을 수정하였고요.
DirectoryIndex에 index.php를 추가하고 mime_module 에는

 

AddType application/x-httpd-php .php .html .htm .phtml .inc
AddType application/x-httpd-php-source .phps
AddType text/html .php
AddHandler php5-script .php

 

이렇게 넣어줬고요. 

자 이제 다 됐구나 싶어서

 

vi phpinfo.php

만들어 주고 열려라 php 정보창~! 했는데 아무것도 안나옵니다. -_-

 

모 다운 받으란 말도 없고 그냥 웹창에 하연 화면망 덩그러니 있고 아래엔 '완료'라는 글만..

덩그러니 있네요. 으 설정도 다 바꿔보고 이것저것 요곳저곳 했는데도 안되니 너무너무 답답하네요.

 

컴피그는 이렇게 하였고요

./configure --prefix=/usr/local/php \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-config-file-path=/usr/local/apache2/conf \
--with-openssl \
--with-imap --with-imap-ssl --with-kerberos \
--disable-debug --enable-safe-mode \
--enable-track-vars --enable-sockets \
--with-mod_charset --with-charset=utf8 --with-xml \
--with-language=korean --enable-mailparse --enable-calender \
--enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp \
--enable-magic-quotes --enable-gd-native-ttf --enable-url-include \
--enable-trans-id --enable-inline-optimization --enable-bcmath \
--with-jpeg --with-png --with-zlib --with-jpeg-dir=/usr \
--with-png-dir=/usr/lib --with-freetype-dir=/usr \
--with-libxml-dir=/usr --enable-exif --with-gd \
--with-ttf --with-gettext --enable-sigchild --enable-mbstring \

--with-libxml-dir=/usr/local/libxml2

 

php 설치 폴더 가도 bin etc include lib man  요렇게 다 잘 설치 된거 같은데 왜

안될까요 ... 으.. 초보에게 도움을 주셨으면 합니다. 매번 설치 할때 마다 이러니 정말~

미치겠네요. 크~ 캬오~!

도와주세요~~ help me~

 

아 그리고 모 좀 쉽게 설치 할 수 있는 방법 같은거 없을까요 -_-????

관련자료

댓글 2

도리님의 댓글

  • 도리
  • 작성일
php 설치된 폴더에서 bin/php -i 라고 입력해 보세요.
정보가 잘~ 나오면 정상적으로 설치되었고, 웹서버와 연동 부분이 문제일 수 있습니다.
웹서버와 연동부분이 문제라면, Apache로그 파일을 확인 해 보세요~^^

송기원님의 댓글

  • 송기원
  • 작성일
그게 phpinfo함수를 못쓰게 해놔서 그래요
php.ini파일에
short_open_tag = Off 가 되어있을껍니다
5.3올라가면서 부터 태그 쓰는 형식이 좀 틀려져서 그렇다네요
short_open_tag = On 으로 바꿔주시면 잘되실듯합니다~
수고하세요~

공지사항


뉴스광장


  • 현재 회원수 :  60,285 명
  • 현재 강좌수 :  36,929 개
  • 현재 접속자 :  354 명