Gooday Note Scrap Source Android login
 
작성일 : 12-08-30 13:22
[Linux] APM 설치
 글쓴이 : 기리 (123.♡.195.24)
조회 : 4,601  

APM 설치

설치 error 시 하단 참고

1.    아파치(apache) 설치 [설치파일 : httpd-2.2.22.tar.gz]

 

tar xfz httpd-2.2.22.tar.gz

cd httpd-2.2.22

./configure --prefix=/usr/local/apache --enable-module=so

make

make install

 

2.    데이터베이스(mysql) 설치 [설치파일 : mysql-5.1.62.tar.gz]

 

tar xfz mysql-5.1.62.tar.gz

cd mysql-5.1.62

./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --enable-thread-safe-client --with-charset=utf8 --with-extra-charsets=all --enable-assembler --disable-shared --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --with-readline --without-debug --without-docs --without-bench --enable-thread-safe-client

 

make && make install

 

3.    libmcrypt 설치 [설치파일 : libmcrypt-2.5.8.tar.gz]

wget http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz/download

 

tar xfz libmcrypt-2.5.8.tar.gz

cd libmcrypt-2.5.8

./configure --prefix=/usr/local

make && make install

 

yum install -y openssl

 

yum install -y libtool-ltdl-devel


 

4.    PHP 설치 [설치파일 : php-5.3.13.tar.gz]

 

tar xfz php-5.3.13.tar.gz

cd php-5.3.13

 

./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 \

--disable-debug \

--enable-safe-mode \

--enable-sockets \

--enable-calendar \

--enable-sysvsem=yes \

--enable-sysvshm=yes \

--enable-ftp \

--enable-magic-quotes \

--enable-gd-native-ttf \

--enable-inline-optimization \

--enable-bcmath \

--with-zlib \

--with-jpeg-dir=/usr \

--with-png-dir=/usr/lib \

--with-freetype-dir=/usr \

--with-libxml-dir=/usr \

--enable-exif \

--with-gd \

--with-gettext \

--enable-sigchild \

--enable-mbstring \

--with-mcrypt=/usr/local \

--with-openssl

make && make install

/usr/local/apache/bin/apachectl restart

 

make && make install


 

5.    my.cnf (/etc) 파일 설정

아래 내용 추가

[mysqld]

lower_case_table_names=1

 


 

이온큐브(ioncube) 설치

 

1. 설치 

다운로드 페이지 : http://www.ioncube.co.kr/product.html?target=1&menu=5#loader 

 

사이트에서 운영체제에 따른 파일을 다운로드 받아 서버에 업로드 합니다.

또는 아래와 같이 파일 경로를 확인하여 wget 으로 서버에서 직접 다운이 가능합니다.

Linux 32bit : http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz

Linux 64bit : http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz


# cd /usr/local/src

# wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

# tar xvzf ioncube_loaders_lin_x86-64.tar.gz

# mv ioncube ../


# vi /usr/local/apache/conf/php.ini
에 아래 내용 추가

 

[Zend]

zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so

  

2. 확인 

# /usr/local/php/bin/php -v 

 

Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.

 

3. apache 재시작

# /usr/local/apache/bin/apachectl restart


라이브러리 설치

 

yum -y install gcc cpp gcc-c++ compat-gcc-32-g77 flex libjpeg-devel libpng-devel libtiff-devel freetype-devel openldap-devel pam-devel sendmail-cf vsftpd telnet-server

 

 

# make configure error

yum groupinstall "Development Tools"

 

# configure: error: xml2-config not found. Please check your libxml2 installation.

yum -y install libxml*

 

# configure: error: Cannot find OpenSSL's <evp.h>

Yum –y install openssl*

 

# GD

yum install libjpeg*

yum install libpng*


 

Apache 설치

cp /usr/local/apache/bin/apachectl /etc/init.d/httpd

 

chkconfig –add httpd

chkconfig --level 345 httpd on

 

http 서비스는 chkconfig를 지원하지 않습니다. 라고 하면

 

vi /etc/init.d/httpd

#!/bin/sh 밑에 추가 5
# chkconfig: 2345 90 90
# description: init file for Apache server daemon
# processname: /usr/local/server/apache/bin/apachectl
# config: /usr/local/server/apache/conf/httpd.conf
# pidfile: /usr/local/server/apache/logs/httpd.pid

  

# 외부에서 접속 안될

system-config-firewall-tui 으로 방화벽 해제

 

system-config-firewall-tui 명령어가 사용이 불가능할 때 설치
yum install setuptool system-config-firewall-tui

# vhost 사용

vi /usr/local/apache/conf/httpd.conf : 아래 추석이 되어있으면 추석 삭제

# Virtual hosts

Include conf/extra/httpd-vhosts.conf

  

vi /usr/local/apache/conf/extra/httpd-vhosts.conf

<VirtualHost *:80>

    ServerAdmin 관리자메일주소

    DocumentRoot "/home/tpms "

    ServerName 도메인

    ServerAlias 도메인

    ErrorLog 로그 경로

    CustomLog 로그 경로

</VirtualHost>

Mysql 설정

### Error

-- configure: error: No curses/termcap library found

yum -y install ncurses-devel

 

/etc/my.cnf 수정 : 첨부파일로 덮어쓰기

 

-- 사용자 설정
 groupadd mysql
 useradd -g mysql mysql

 //useradd -M -c MySQL_Server -d /usr/local/mysql -g mysql -s /bin/nologin mysql

 

-- db생성

/usr/local/mysql/bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data                            

 

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

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

 

-- mysql.sock 링크

ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

 

-- 환경변수 등록
 export PATH=$PATH:/usr/local/mysql/bin
--
서비스 시작
 /usr/local/mysql/bin/mysqld_safe --user=mysql &
-- root
암호 변경
 /usr/local/mysql/bin/mysqladmin -u root password '
암호'
-- MySQL
접속
 mysql -uroot -p
암호
--
서비스 종료
 /usr/local/mysql/bin/mysqladmin -uroot -p
암호 shutdown

 

 


 

서비스 자동시작

-- 환경변수 등록
# vi /etc/profile
맨 하단에 삽입
PATH=$PATH:/usr/local/mysql/bin

cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld
chkconfig --add mysqld

-- chkconfig
없을 경우
 apt-get install chkconfig

--
서비스 확인
 chkconfig --list|grep mysqld
 mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off

--
서비스 레벨 수정법
 chkconfig --level
번호 서비스명 [on|off]
 chkconfig --list|grep
서비스명

--
재부팅한다.

--
서비스 확인
 netstat -nlp|grep
서비스명

--
그 후 서비스 관리 명령어
 /etc/init.d/mysqld [start|stop|restart]

 

 


 

PHP 설치

 

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-config-file-path=/usr/local/apache/conf  --with-mcrypt=/usr/local --disable-debug --enable-safe-mode --enable-sockets --enable-calendar --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-inline-optimization --enable-bcmath --with-zlib --with-jpeg-dir=/usr --with-png-dir=/usr/lib --with-freetype-dir=/usr --with-libxml-dir=/usr --enable-exif --with-gd --with-gettext --enable-sigchild --enable-mbstring --with-openssl --with-mysqli --with-iconv --enable-zend-multibyte --with-pear --enable-zip --with-ttf

 

 

--with-libdir=lib64

 



 
 

Total 121
번호 제   목 글쓴이 날짜 조회
91 [PHP] PHP 웹메일 기리 02-06 5048
90 [Linux] APM 설치 기리 08-30 4602
89 [Linux] yum 기리 08-30 3136
88 [Linux] APM yum으로 설치하기 기리 08-22 8869
87 [MySql] Export to CSV (1) 기리 06-26 3575
86 [Java] 소켓통신 (1) 기리 06-20 5979
85 [Java] 로봇클래스 - 마우스제어,키보드제어,화면캡… (1) 기리 06-20 22582
84 [Java] Java Web Start 자동 설치 - 14.9.3 방법 2 : 자동 다… 기리 06-18 4916
83 [Extjs] TabPanel에 IframePanel 넣기 기리 06-13 4049
82 [Linux] CentOS Network 설정 (2) 기리 05-18 8825
81 [Linux] Mount : /etc/fstab 기리 05-16 3022
80 [MySql] Mysql 상태 확인 기리 05-15 5165
79 [MySql] 연도별 가입자 통계 기리 05-15 5141
78 [PHP] PHP 5.3 버전 DEPRECATED 기리 05-14 8012
77 [Linux] NFS 설정 (1) 기리 05-14 5959
 1  2  3  4  5  6  7  8  9