서버/도커
CentOS 6.5 APM Configure
최고관리자
최고관리자 가입일:2022.11.19

작성일시:2014.11.23 17:35:00

IP:121.162.195.♡

  • 조회 26
  • 댓글 0
  • 좋아요 0
  • 싫어요 0
  • 121.162.195.♡

PHP 필수 패키지 설치

yum -y install pcre-devel lua-devel libxml2-devel ncurses-devel zlib zlib-devel curl openssl openssl-devel libtermcap-devel libc-client-devel bison gcc g++ cpp gcc-c++ freetype freetype-devel freetype-utils gd gd-devel libjpeg libjpeg-devel libpng libpng-devel curl curl-devel flex php-mbstring libexif-devel cmake gcc*


Mysql 설치시

​cmake \
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
-DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_EXTRA_CHARSETS=all \
-DMYSQL_DATADIR=/usr/local/mysql/data \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_ARCHIVE_STORAGE_ENGINE=1 \
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
-DWITH_MEMORY_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DMYSQL_USER=mysql \
-DMYSQL_TCP_PORT=3306 \
-DENABLE_DOWNLOADS=1

 

Apache 설치시

​./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/httpd/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-config-file-path=/usr/local/httpd/conf \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--disable-debug \
--enable-bcmath \
--enable-exif \
--enable-ftp \
--enable-gd-native-ttf \
--enable-inline-optimization \
--enable-intl \
--enable-mbregex \
--enable-mbstring \
--enable-mod-charset \
--enable-sigchild \
--enable-soap \
--enable-sockets \
--enable-sysvsem=yes \
--enable-sysvshm=yes \
--enable-xml \
--enable-zip \
--with-iconv \
--with-curl \
--with-zlib \
--with-gd \
--with-gettext \
--with-mcrypt \
--with-mysqli \
--with-openssl \
--with-xmlrpc \
--with-freetype-dir=/usr/include/freetype2 \
--with-jpeg-dir=/usr/lib \
--with-libxml-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-zlib-dir=/usr/lib

​

 
PHP 컴파일 최소 설치 시  방법 1

 ./configure --prefix=/usr/local/httpd \
--with-apr=/usr/local/apr-1.5.1 --with-apr-util=/usr/local/apr-util-1.5.4 \
--with-pcre --with-libxml2 --with-ssl --with-z \
--with-mpm=worker \
--enable-modules=most --enable-mods-shared=most \
--enable-file-cache --enable-cache --enable-file-cache \
--enable-so \
--enable-mime-magic --enable-expires --enable-header \
--enable-proxy --enable-ssl \
--enable-mpms-shared=all \
--enable-vhosts-alias --enable-rewrite

 

PHP 컴파일 권장 설치 시 방법 2

./configure
--prefix=/usr/local/php \
--with-apr=/usr/local/apr-1.5.1 --with-apr-util=/usr/local/apr-util-1.5.4 \
--without-mysql \
--with-config-file-path=/usr/local/httpd/conf \
--with-gd \
--enable-safe-mode \
--enable-magic-quotes \
--enable-ftp \
--with-pdo-mysql=/usr/local/mysql \
--enable-sockets \
--with-zlib \
--with-png-dir \
--with-jpeg-dir \
--disable-debug \
--with-curl \
--enable-mbstring \
--enable-exif \
--with-iconv \
--with-openssl \
--enable-soap \
--enable-maintainer-zts \
--with-libdir=lib64

 

PHP 컴파일 확장 설치 시 방법 3

./configure --prefix=/usr/local/php \
--enable-fpm \
--with-apxs2=/usr/local/httpd/bin/apxs \
--with-libdir=lib \
--with-gettext \
--with-mhash \
--with-gmp \
--with-gd \
--with-jpeg-dir=/usr/local/lib \
--with-png-dir=/usr/local/lib \
--with-mcrypt=/usr/local/lib \
--with-iconv=/usr/local/lib \
--with-freetype-dir=/usr/local/freetype \
--with-config-file-path=/usr/local/lib \
--with-zlib --enable-gd-native-ttf \
--enable-bcmath --enable-exif \
--with-mcrypt --with-zlib \
--with-bz2 \
--enable-mbstring \
--enable-opcache \
--with-curl \
--with-openssl \
--with-pdo-mysql=/usr/local/mysql \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--enable-pcntl \
--enable-mbregex \
--with-mhash \
--enable-zip \
--with-pcre-regex \
--with-libxml-dir=/usr \
--with-kerberos \
--disable-debug \
--enable-soap \
--with-imap \
--with-imap-ssl \
--with-gdbm \
--enable-ftp \
--enable-calendar \
--enable-shmop \
--enable-inline-optimization \
--enable-sigchild \
--enable-sockets \
--enable-maintainer-zts


MySQL 컴파일 설치 시

​./scripts/mysql_install_db --defaults-file=/usr/local/mysql/my.cnf --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --explicit_defaults_for_timestamp=on
댓글 0

서버에서 오는 경고 문자 설명

  • 최고관리자
  • 2017.01.02
  • 조회 33
  • 추천 0

CentOS 6.5 APM Configure

  • 최고관리자
  • 2014.11.23
  • 조회 26
  • 추천 0

CentOS 6.5 Minimal APM 설치과정

  • 최고관리자
  • 2014.11.19
  • 조회 46
  • 추천 0

CentOS 6.5 원격 부팅 설정하기 (WOL)

  • 최고관리자
  • 2014.11.04
  • 조회 21
  • 추천 0

Mod_Security 설치방법 - CentOS 6.5

  • 최고관리자
  • 2014.07.09
  • 조회 23
  • 추천 0

JAVA (JDK) 설치하기

  • 최고관리자
  • 2014.04.05
  • 조회 23
  • 추천 0

Apache 대소문자 구별하지 않게하기

  • 최고관리자
  • 2014.02.19
  • 조회 19
  • 추천 0

시간 맞추기

  • 최고관리자
  • 2014.02.19
  • 조회 16
  • 추천 0

CentOS 6.5 ProFTP 환경설정

  • 최고관리자
  • 2014.02.18
  • 조회 23
  • 추천 0

CentOS 6.5 ProFTP 설치하기

  • 최고관리자
  • 2014.02.18
  • 조회 18
  • 추천 0

Process 관리 명령어

  • 최고관리자
  • 2013.10.23
  • 조회 18
  • 추천 0
Process 관리 명령어

Window XP IIS Web Server 설치하기

  • 최고관리자
  • 2013.10.10
  • 조회 22
  • 추천 0
Window XP IIS Web Server 설치하기

Mysql 1130 Error 해결방법

  • 최고관리자
  • 2013.10.10
  • 조회 17
  • 추천 0

YUM가 없을 때 설치하는 방법

  • 최고관리자
  • 2013.08.28
  • 조회 24
  • 추천 0

Putty 복사기능

  • 최고관리자
  • 2013.08.05
  • 조회 18
  • 추천 0
처리 중...