MySQL, apache, PHP - 리눅스 2014. 3. 30. 20:19
/리눅스
공유하기 |
MySQL
apache
PHP
cmake \ -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \ -DMYSQL_UNIX_ADDR=/usr/local/mysql/tmp/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/apache \ --enable-rule=SHARED_CORE \ --enable-so \ --enable-authn-alias \ --enable-cache \ --enable-file-cache \ --enable-mem-cache \ --enable-disk-cache \ --enable-rewrite \ --enable-ssl \ --enable-cgid \ --enable-shared=max \ --enable-modules=shared \ --enable-mods-shared=all \ --enable-proxy=shared \ --enable-proxy-ajp=shared \ --enable-module=so \ --with-mpm=event \ --enable-dav \ --enable-cgi \ --enable-cgid \ --enable-vhost-alias \ --with-ssl \ --with-mpm=prefork \ --with-apr=/usr/local/apr \ --with-apr-util=/usr/local/apr-util \ --with-pcre=/usr/local/pcre \ --enable-forward=shared \ --enable-deflate=shared \ --enable-headers=shared \ --enable-include=shared \ --enable-rewrite=shared
PHP
./configure \ --prefix=/usr/local/php \ --with-libdir=lib64 \ --with-mysql=/usr/local/mysql \ --with-mysqli=/usr/local/mysql/bin/mysql_config \ --with-pdo-mysql=/usr/local/mysql \ --with-apxs2=/usr/local/apache/bin/apxs \ --with-config-file-path=/usr/local/apache/conf \ --with-pear=/usr/share/php \ --enable-sysvsem=yes \ --enable-sysvshm=yes \ --enable-ftp=yes \ --enable-inline-optimization \ --enable-ctype \ --enable-exif \ --enable-gd-native-ttf \ --enable-mbstring \ --enable-mod-charset \ --enable-sockets \ --enable-static \ --enable-xml \ --enable-sigchild \ --enable-maintainer-zts \ --enable-mbregex \ --enable-fpm \ --enable-zip \ --enable-soap \ --enable-pcntl \ --enable-bcmath \ --enable-shmop \ --enable-intl \ --enable-calendar \ --enable-opcache \ --with-iconv-dir=/usr/local \ --disable-debug \ --disable-posix \ --disable-tokenizer \ --with-freetype-dir=/usr/local/freetype \ --with-ldap \ --with-ldap-sasl \ --with-gettext \ --with-openssl \ --with-curl=/usr/local \ --with-gd \ --with-jpeg-dir \ --with-png-dir \ --with-zlib \ --with-bz2 \ --with-iconv-dir=/usr/local \ --with-xmlrpc \ --with-kerberos \ --with-libxml-dir \ --with-mcrypt \ --with-mhash
make
iconv관련 링크에러가 날 경우
vi 로 Makefile 을 열어서
EXTRA_LIBS 를 찾아 -liconv 를 추가
make install
'리눅스' 카테고리의 다른 글
XE에서 SyntaxHighlighter 사용 (0) | 2014.04.03 |
---|---|
webalizer 설정 (0) | 2014.03.31 |
apache2 설정 (0) | 2014.03.30 |
CentOS 6 릴리즈 (0) | 2011.10.22 |
[MySQL] 무한정 늘어나는 log-bin 파일 줄이기 (0) | 2011.01.22 |
|
|