티스토리 뷰

OS/Linux

apm 설치

solarwind 2008.11.17 00:07

 
-Apache-
#wget http://mirror.apache-kr.org/httpd/httpd-2.2.9.tar.gz

#tar fxvz httpd-2.2.9.tar.gz

#cd httpd-2.2.9

#yum install gcc*
( 설치 : gcc , openssl , openssl-devel , zlib-devel )

#./configure --prefix=/usr/local/apache --enable-mods-shared=all --with-mpm=worker --enable-ssl --with-ssl --enable-so

#make && make install

#echo "/usr/local/apache/bin/apachectl start" >> /etc/rc.local
컴퓨터 시작시 자동실행

-MYSQL-

#wget http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.51b.tar.gz/from/http://mysql.byungsoo.net/

#tar fxvz mysql-5.0.51b.tar.gz

#cd mysql-5.0.51b

#yum install
( 설치 : gcc-c++ libstdc++-devel 과 libtermcap-devel )

#./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=utf8 --with-mysql-user=mysql --sysconfdir=/etc --enable-thread-safe-client

#make && make install

#/usr/local/mysql/bin/mysql_install_db --force
디비 실행

#cat >> /etc/ld.so.conf
입력 /usr/local/mysql/lib
ctrl+d 저장
#ldconfig

#cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
mysql 설정파일인 my-medium.cnf 파일을 /etc/my.cnf

#groupadd mysql
#useradd -M -c MySQL_Server -d /usr/local/mysql -g mysql -s /bin/nologin mysql
계정 생산

#chown root.mysql -R /usr/local/mysql
#chown mysql.mysql -R /usr/local/mysql/data


echo "/usr/local/mysql/bin/mysqld_safe &" >> /etc/rc.local

-Php-

#wget http://kr2.php.net/get/php-5.2.6.tar.gz/from/this/mirror

#tar fxvz php-5.2.6.tar.gz

#cd php-5.2.6

#yum install libxml2-devel

#./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/apache/conf --with-exec-dir=/usr/local/apache/bin --with-gd=shared --with-openssl--with-gd --enable-gd-native-ttf --with-zlib --with-jpeg-dir=/usr/lib

다음과 같은 에러가뜬다.
에러 : configure: error: xml2-config not found. Please check your libxml2 installation.
답 : #yum install libxml2-devel 아니면 #yum install libxml2

에러 : configure: error: libjpeg.(a|so) not found.
#yum install libpng-devel
#yum install libjpeg-devel

#mkae && make install

#cp php.ini-recommended /usr/local/apache/conf/php.ini

#vi /usr/local/apache/conf/httpd.conf

추가 되었는지 확인 (없으면 자신이 직접 추가) (저는 자동 추가되어있더군요.)
        LoadMbdule php5_module modules/libphp5.so

361 라인 정도 밑에 추가
    361 AddType application/x-httpd-php .php .html .htm
        AddType application/x-httpd-php-source .phps

#vi /usr/local/apache/conf/mime.types

    693 application/x-httpd-php                         php ph inc
    694 application/x-httpd-php-source                  phps

#vi /usr/local/apache/conf/php.ini

default_socket_timeout = 600
post_max_size = 20M
memory_limit = 20M
upload_max_filesize = 20M

-Zend Optimizer-


 ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz

#wget http://blog.konata.kr/attachment/ik080000000000.gz
#tar fxvz ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz

#cd ZendOptimizer-3.3.3-linux-glibc23-i386

#./install.sh

다음과 같은 질문이나오지않는이상 무조건 "YES" 나 "OK"

Enter the location of your php.ini file
입력 : /usr/local/apache/conf/


댓글
댓글쓰기 폼