이제 PHP를 연동해보도록 하겠습니다.
지금까지 했던것은
1. Apache 설치
2. MySQL 설치
3. PHP 에서 이용할 라이블러리 설치
를 했습니다.
이제 본격적으로 PHP를 Apache와 MySQL 그리고 PHP에서 사용할 라이블러리와
함께 연동하겠습니다.
전편 에서 다운로드 받았던 PHP 를 압축 해제 합니다.

# cd php-5.2.9
# ./configure \
> --with-apxs2=/usr/local/apache/bin/apxs \
> --with-mysql=/usr/local/mysql \
> --with-mysqli=/usr/local/mysql/bin/mysql_config \
> --with-zlib=/usr/local \
> --with-mcrypt=/usr/local \
> --enable-mbstring \
> --with-gd=/usr/local \
> --with-jpeg-dir=/usr/local \
> --with-png-dir=/usr/local \
> --with-freetype-dir=/usr/local



# cd /usr/local/apache/conf
# vi httpd.conf
Apache 환경 설정 파일에 아래 구문을 추가해 줍니다.
AddType application/x-httpd-php .php .html
원하는 확장자가 있으면 더 추가를 하시면 됩니다.
이제 Apache를 실행 해볼까요?
#/usr/local/apache/bin/apachectl start
# vi /usr/local/apache/htdocs/index.html 을 실행하여 PHP 정보를 보겠습니다.
<?
phpinfo();
?>
를 넣어주세요
1. 연동 후 PHP info 컴파일 라인 및 버전


자 이제 모든 연동이 완료 되었습니다.
"Linux" 카테고리의 다른 글
- Apache + PHP + MySQL 연동 하기 1# (댓글 6개 / 트랙백 0개) 2009/03/01
- VMWare Server 설치 (댓글 0개 / 트랙백 0개) 2010/02/19
- CentOS 설치(리눅스 설치하기) -2- (댓글 4개 / 트랙백 0개) 2009/02/28
- CentOS 설치(리눅스 설치하기) -1- (댓글 4개 / 트랙백 0개) 2009/02/28
- 보안 서버 SSL / TLS 무료 인증서 (댓글 0개 / 트랙백 1개) 2010/05/26
- 시스템에 사용하던 Apache, PHP, MySQL 을 마이그레이션 후기 (댓글 0개 / 트랙백 0개) 2009/11/04
- CentOS 5.5 에서 VMware Server 2.0.2 hostd 문제 해결 (댓글 0개 / 트랙백 0개) 2010/08/30
- VMWare Server 가상 머신 만들기 (댓글 0개 / 트랙백 0개) 2010/02/19
- Apache + PHP + MySQL 연동 하기 3# (댓글 2개 / 트랙백 0개) 2009/03/01
- Apache mod_evasive (댓글 0개 / 트랙백 0개) 2009/06/19
