리눅스(centos) mysql , http , php 설치 과정 입니다. 

버전 : mysql-5.1.31,httpd-2.2.14,php-5.2.8
해당 압축파일 /root 에 복사 합니다.

cd /root
groupadd mysql
useradd -g mysql mysql
tar -xvf mysql-5.1.31.tar.gz
cd mysql-5.1.31
./configure --prefix=/usr/local/mysql-5.1.31 --localstatedir=/data --enable-assembler --with-thread-safe-client --with-mysqld-user="mysql" --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --with-readline --without-debug --without-docs --without-bench --with-charset=utf8
make
make install
cp /usr/local/mysql/share/mysql-5.1.31/my-medium.cnf /etc/my.cnf
vi /etc/my.cnf
--skip-federated 주석 처리
./mysql_install_db
./mysqld_safe &
/usr/local/mysql-5.1.31/bin/mysql -p
set password for 'root'@'localhost' = password('mysql암호');
exit
/usr/local/mysql-5.1.31/bin/mysql -p
mysql암호
exit

cd ~root
tar -xvf httpd-2.2.14.tar.gz
cd httpd-2.2.14
./configure -prefix=/usr/local/apache-2.2.14 --enable-modules=so --enable-so --enable-rewrite --enable-mods-shared=most --enable-ssl
make
make install

cd ~root
tar -xvf php-5.2.8.tar.gz
cd php-5.2.8
./configure --prefix=/usr/local/php-5.2.8 --enable-bcmath --enable-ftp --enable-filepro --enable-libxml2 --enable-memory-limit --enable-sockets --enable-spl --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-versioning --enable-wddx --disable-cli --disable-debug --disable-dmalloc --disable-posix --disable-rpath --with-apxs2=/usr/local/apache-2.2.14/bin/apxs --with-bz2 --with-freetype-dir --with-gd --with-gettext --with-imap=shared --with-jpeg-dir --with-kerberos --with-libxml-dir --with-mod-charset --with-mysql=/usr/local/mysql-5.1.31 --with-png-dir --with-ttf --with-zlib --with-mysqli=/usr/local/mysql-5.1.31/bin/mysql_config --with-imap-ssl=/usr/lib --with-openssl

make
make install
cp php.ini-dist /usr/local/php-5.3.0/lib/php.ini
vi /usr/local/apache-2.2.14/conf/httpd.conf
//있는지 확인후 없으면 추가
LoadModule php5_module modules/libphp5.so

// php파일을 웹서버에서 인식하기 위해 아래두줄 추가
AddType application/x-httpd-php .php .html .htm .inc .php3
AddType application/x-httpd-php-source .phps

// 처음페이지로 인식할 파일명설정
DirectoryIndex index.html index.htm index.php

아파치 성능 설정
KeepAlive On
KeepAliveTimeout 2
Timeout 30
StartServers 20
ServerLimit 2000
MinSpareServers 5
MaxSpareServers 20
MaxClients 2000
MaxRequestsPerChild 1000
내용은 검색 해보셍요.ㅎㅎ


----------------------------------------------------------------------------------------------------------------------
설치시 에러 조취

에러
configure: error: libjpeg.(a|so) not found.
해결방법
yum -y install libjpeg-devel

또는

# wget http://ftp.linux.co.kr/pub/etc/jpegsrc.v6b.tar.gz
# tar xvfz jpegsrc.v6b.tar.gz
# cd jpeg-6b
# ./configure --enable-shared --enable-static
# make
# make install
/usr/bin/install: cannot create regular file `/usr/local/man/man1/cjpeg.1': 그런 파일이나 디렉토리가 없음make: *** [install] 오류 1에러납니다.
# mkdir /usr/local/man
# mkdir /usr/local/man/man1 <--디렉토리를 만들고 다시 install...
# make install <-----------에러 없이 완료..


에러
configure: error: libpng.(a|so) not found.
해결방법
yum -y install libpng-devel


에러
configure: error: freetype.h not found.
해결방법
yum -y install freetype-devel

오류 메세지
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
해결 방법 : yum -y install libc-client-devel

 

tar -xvf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
cd ZendOptimizer-3.3.3-linux-glibc23-i386
./install
/usr/local/php-5.2.8/lib/
/usr/local/apache-2.2.14/bin/apachectl

ln -s /usr/local/Zend/etc/php.ini /etc/php.ini
ln -s /usr/local/apache-2.2.14/conf/httpd.conf /etc/httpd.conf

/usr/local/Zend/etc/php.ini

 

 

'지식' 카테고리의 다른 글

알FTP 사용 방법  (0) 2014.01.24
구글 검색등록 방법  (0) 2014.01.24
DNS 캐시 초기화 방법  (0) 2014.01.16
SMS 설정 준비 freetds  (0) 2014.01.16
운영중인 시스템에서 스왑영역을 늘리는 방법 (Solaris)  (0) 2014.01.15
Posted by 두 아이 아빠
,