사이트 내 전체검색
apache 2.0 + php 4.4.2 + mysql 4.1 (mysql 5.0) 설치
로빈아빠
https://cmd.kr/server/50 URL이 복사되었습니다.

본문

레드헛 9.0 에서 설치

Apache 2.0.55
PHP 4.4.2
MySQL 4.1

MySQL 5.0

PHP 5.1.2--> libxml2 버전 2.6.x.x 이상 사용해야됨
레드헛 9.0 에서는 버전이 낮아서 설치안됨

###################### mysql ########################

사용자 구룹을 지정한다
    shell> groupadd mysq

사용자을 만든다
    shell> useradd -g mysql mysql

경로로 이동한다
    shell> cd /usr/local

압축을 푼다
    shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf -

링크 시킨다
    shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql

이동한다
    shell> cd mysql

데이타베이스 생성한다
    shell> scripts/mysql_install_db --user=mysql

권한 수정한다
    shell> chown -R root  .
    shell> chown -R mysql data
    shell> chgrp -R mysql .

실행시킨다.
    shell> bin/mysqld_safe --user=mysql &


 ------------------------------------------

mysql 설치디렉토리에 share 밑에 보시면 my-huge.cnf...등의 파일이 있습니다..

/etc  로 복사 my.cnf






############## 아파치 #################

APACHE  디렉토리에 INSTALL 파일 참조 하였습니다.

# ./configure --prefix=/usr/local/apache --enable-so
#  make
#  make install




# /usr/local/apache/bin/apachectl start



#############  PHP 설치 ###############

PHP5 인스톨중 configure : error : xml2-config not found.....  에러가 생길때..
libxml2-x.x.x.rpm
libxml2-python.x.x.rpm
libxml2-devel.rpm

설치하세요


PHP 디렉토리에 INSTALL 문서 참조 하였습니다.

# cd php [enter]
# ./configure --help 도움말 확인

# ./configure --with-apxs2=/usr/local/apache/bin/apxs
--prefix=/usr/local/php
--with-mysql

============================== 아래는 gd 사용시 =============================
--with-jpeg-dir=/usr/lib 
--with-png-dir=/usr/lib 
--with-tiff-dir=/usr/lib 
--with-freetype-dir=/usr/include/freetype2  # 컴파일 설치 freetype 설치할필요 있을까?
--with-gd
--with-zlib

--with-openssl  <---- 파일확인

--with-imap-ssl
--with-ncurses <--- 파일확인
--with-gettext

--enable-sockets
--enable-exif
--enable-ftp
--enable-mbstring

=============================================================================

# make
# make install


# cp php.ini-dist /usr/local/php/lib/php.ini



아파치 httpd.conf 파일를 연다 

내용중에 libphp4.so 파일이 있나 확인

LoadModule php4_module libexec/libphp4.so

또는 php5 사용자는 LoadModule php5_module libexec/libphp5.so 있나 확인


사용예)

#ServerName http://kr.yahoo.com/:80

끝에 포트를 적어주자



처음 불러올 페이지 설정

DirectoryIndex index.html index.php index.cgi index.jsp



php 문서를 보려면 아래 문장을 추가한다.


AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
-------------------------------------------


Zend 설치

./install



---------------------

아파치 시작하기
 
chkconfig 으로 등록하기

apatchlt 라는 파일을 /etc/init.d/httpd 라는 이름으로 복사
/etc/init.d/httpd 라는 파일을 만들고  그파일 안에  이 두줄을 추가한다
----------------------------------------------------------------------
# chkconfig: - 81 81
# description: init file for Apache server daemon
----------------------------------------------------------------------
chkconfig --add httpd 하면 아파치가 등록된다 setup 친다.


mysql 등록

/usr/loca/mysql/mysqld_safe 를 복사한다 /etc/init.d/mysqld

----------------------------------------------------------------------
# chkconfig: - 2345 93 93
# description: mysqld
----------------------------------------------------------------------

출처 : http://qdata.co.kr/bo/bbs/board.php?bo_table=ltip&wr_id=287&page=2

댓글목록

등록된 댓글이 없습니다.

1,139 (2/23P)

Search

Copyright © Cmd 명령어 3.147.81.51