# 이 시나리오는 zabbix server 및 agent 를 구동하기 위해 짜여졌으며 각 서비스가 일반적인 경로에 설치되지 않음을 알림니다.
1. 필요 라이브러리 설치
- yum install php-mysql
- yum install php-bcmath
- yum install php-mbstring
- yum install php-gd
- yum install libxml2 libxml-devel
- yum install libjpeg-devel
- yum install libpng-devel
- yum install freetype-devel
- yum install curl curl-devel
2. php 설치
- tar -zxvf php-5.6.13.tar.gz
- cd /install/tar/php-5.6.13
- ./configure --prefix=/install/php --with-config-file-path=/install/httpd/conf --with-apxs2=/install/httpd/bin/apxs --with-mysql=/install/mysql --with-mysqli=/install/mysql/bin/mysql_config --disable-debug --enable-sockets --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-gd-native-ttf --enable-inline-optimization --enable-bcmath --with-zlib --with-gd --with-gettext --with-jpeg-dir=/usr --with-png-dir=/usr/lib --with-freetype-dir=/usr --with-libxml-dir=/usr --enable-exif --enable-sigchild --enable-mbstring --with-openssl --with-pdo-mysql --with-mysql-sock=/tmp/mysql.sock
- make
- make install
3. php 설정
- vi /etc/php.ini
a. post_max_siz = 16M
b. max_execution_time = 300
c. max_input_time = 300
d. date.time_zone = Asia/Seoul
e. always_populate_raw_post_data = -1
f. ;session.save_path="/tmp/"
- cp /etc/php.ini /install/httpd/conf/
4. phpinfo 확인
- vi /install/www/zabbix/phpinfo.php
a. <?php phpinfo(); ?>
5. apache 재시작
- service httpd restart
- http://192.168.56.1/phpinfo.php
ps. configure (mssql, ldap 포함)
./configure --prefix=/install/php --with-config-file-path=/install/httpd/conf --with-apxs2=/install/httpd/bin/apxs --with-mssql=/usr --with-pdo-dblib=/usr --with-mysql --with-mysqli=/install/mysql/bin/mysql_config --disable-debug --enable-sockets --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-gd-native-ttf --enable-inline-optimization --enable-bcmath --with-zlib --with-gd --with-gettext --with-jpeg-dir=/usr --with-png-dir=/usr/lib --with-freetype-dir=/usr --with-libxml-dir=/usr --enable-exif --enable-sigchild --enable-mbstring --with-openssl --with-pdo-mysql --with-mysql-sock=/tmp/mysql.sock --with-unixODBC=/usr --with-libdir=lib64 --with-ldap --with-ldap-sasl
6. mongo 추가
a. php 설치 경로로 이동
- cd /dbsource/php/bin/
b. pecl 명령으로 mongo 라이브러리 설치
- ./pecl install mongo
c. /dbsource/php/lib/php/extensions/no-debug-xxxxxxxx/mongo.so 확인
d. php.ini 수정
- extention=mongo.so 추가
e. 아파치 재실행
'Linux' 카테고리의 다른 글
[6-6] zabbix agent 설치 (0) | 2015.10.21 |
---|---|
[6-5] zabbix server 설치 (0) | 2015.10.21 |
[6-3] mysql 설치 (0) | 2015.10.21 |
[6-2] apache 설치 (1) | 2015.10.21 |
[6-1] centos 6.6 설치 (0) | 2015.10.21 |