반응형
반응형
반응형


## php 설치

$ wget http://kr2.php.net/get/php-5.3.6.tar.gz/from/kr.php.net/mirror
$ cd php-5.3.6
$ ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs --with-config-file-path=/usr/local/httpd/conf --with-mysql=/usr/local/mysql --enable-sockets --with-openssl=/usr --with-dbm --enable-mbstring


$ make && make install


# httpd 설정.
$ cp php.ini-production /usr/local/php/lib/php.ini
$ cp php.ini-production /usr/local/httpd/conf/php.ini


# apache 구동.
$ /usr/local/httpd/bin/apachectl start

반응형

'OS > Linux' 카테고리의 다른 글

grep 후 결과 파일을 vi 로 열기.  (0) 2011.12.02
설치형 웹하드 : ajaxplorer  (0) 2011.06.15
[APM] 2. apache 설치.  (2) 2011.06.15
[APM] 1. mysql 설치  (0) 2011.06.15
awk 기본  (0) 2011.05.20
반응형


## apache 설치

$ wget ftp.daum.net/apache//httpd/httpd-2.2.19.tar.gz
./configure --prefix=/usr/local/httpd --enable-so --enable-authn-dbm --enable-auth-digest --enable-ssl --enable-rewrite --with-ssl

 - apr-util 이 이미 설치 되어 있을 때 옵션 추가 : --with-included-apr
 - mod_rewrite.so 없을 때 : /usr/local/httpd/bin/apxs -aic /usr/local/src/httpd-2.2.19/modules/mappers/mod_rewrite.c


$ make && make install


# 권한 및 php 설정.
$ vi /usr/local/httpd/conf/httpd.conf
 - 65, 66 라인 수정.
 - User nobody
 - Group nobody

 - 167 라인.
 - DirectoryIndex index.html index.php

 - 309 라인 추가.
 - AddType application/x-httpd-php .php .php3
 - AddType application/x-httpd-php-source .phps

반응형

'OS > Linux' 카테고리의 다른 글

설치형 웹하드 : ajaxplorer  (0) 2011.06.15
[APM] 3. php 설치.  (2) 2011.06.15
[APM] 1. mysql 설치  (0) 2011.06.15
awk 기본  (0) 2011.05.20
date 명령어  (0) 2011.05.20
반응형

mysql-5.5.12

## mysql 설치

$ groupadd mysql
$ useradd -g mysql mysql

$ wget http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.12.tar.gz
$ tar -xvf mysql-5.5.12.tar
$ cd mysql-5.5.12
$ chown -R mysql .
$ chgrp -R mysql .
$ cmake .
$ make
$ make install

# 소유권 설정.
$ cd /usr/local/mysql
$ chown -R mysql .
$ chgrp -R mysql .

# DB 생성.
$ scripts/mysql_install_db --user=mysql
$ chown -R root .
$ chown -R mysql data

# mysql 구동
$ cp support-files/my-medium.cnf /etc/my.cnf
$ bin/mysqld_safe --user=mysql &

# init.d 에 등록.
$ cp support-files/mysql.server /etc/init.d/mysql.server


---------------- cmake 설치가 안됐을 경우 설치해야 함. ---------------
## cmake 설치

$ wget http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gz
$ tar -xvf cmake-2.8.4.tar.gz
$ cd cmake-2.8.4
$ ./bootstrap
$ make
$ make install

반응형

'OS > Linux' 카테고리의 다른 글

[APM] 3. php 설치.  (2) 2011.06.15
[APM] 2. apache 설치.  (2) 2011.06.15
awk 기본  (0) 2011.05.20
date 명령어  (0) 2011.05.20
[vi] ^M 제거  (0) 2011.05.04

+ Recent posts