티스토리 뷰
반응형
1. 필요한 패키지 설치!
yum -y install gcc gcc-c++ yum -y install pcre-devel expat-devel openssl-devel openssl wget bzip2 perl ncurses ncurses-devel libxml2 libxml2-devel \ bzip2-devel curl-devel gdbm-devel libjpeg-devel libpng-devel libXpm-devel freetype-devel yum -y install epel-release yum -y install libmcrypt libmcrypt-devel perl |
2. mod_url-apache install 설치!
wget https://kldp.net/modurl/release/2186-mod_url-apache2-1.6.2.7.tar.bz2 tar jxvpf 2186-mod_url-apache2-1.6.2.7.tar.bz2 cd mod_url-apache2-1.6.2.7/ /home/apache/bin/apxs -aic mod_url-apache2-1.6.2.7/mod_url.c chmod 755 /home/apache/modules/mod_url.so |
3. APACHE 설치!
wget http://mirror.23media.de/apache/httpd/httpd-2.2.34.tar.gz tar xzf httpd-2.2.34.tar.gz cd httpd-2.2.34 "./configure" \ "--prefix=/usr/local/apache" \ "--enable-mods-shared=most" \ "--enable-so" \ "--enable-ssl" \ "--enable-modules=ssl" \ "--with-mpm-prefork" make && make install |
4. MySQL 설치!
wget https://mirrors.cloud.tencent.com/mysql/downloads/MySQL-5.1/mysql-5.1.73-linux-x86_64-glibc23.tar.gz tar xzf mysql-5.1.73-linux-x86_64-glibc23.tar.gz cd mysql-5.1.73 './configure' '--prefix=/usr/local/php' \ '--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-curl' \ '--with-gd' \ '--with-jpeg-dir=/usr' \ '--with-freetype-dir=/usr' \ '--with-png-dir=/usr' \ '--with-xpm-dir=/usr' \ '--with-zlib' \ '--with-zlib-dir=/usr' \ '--with-gdbm' \ '--with-gettext' \ '--with-iconv' \ '--with-openssl' \ '--with-libxml-dir=/usr/lib' \ '--with-bz2' \ '--with-mcrypt' \ '--enable-gd-native-ttf' \ '--enable-exif' \ '--enable-ftp' \ '--enable-sockets' \ '--enable-sysvsem' \ '--enable-sysvshm' \ '--enable-sysvmsg' \ '--enable-soap' \ '--enable-mbstring=all' \ '--enable-bcmath' \ '--enable-zip' \ '--enable-magic-quotes' make && make install |
5. PHP 설치 !
wget https://mirror.cogentco.com/pub/php/php-5.6.30.tar.gz tar xzf php-5.6.30.tar.gz cd php-5.6.30 ./configure '--prefix=/usr/local/mysql' \ '--with-readline' \ '--without-debug' \ '--enable-shared' \ '--with-charset=euckr' \ '--with-extra-charsets=all' \ '--with-big-tables' \ '--enable-thread-safe-client' \ '--with-named-thread-libs=-lpthread' \ '--with-plugins=myisam,innobase,archive,csv,partition' \ '--with-ssl' make && make install |
6. 실행파일 링크 설정 : 경로 상관없이 아무 디렉토리에서도 파일들이 실행 될 수 있도록
PATH에 걸려있는 디렉토리로 심볼릭링크
ln -sf /usr/local/apache/bin/* /usr/bin
ln -sf /usr/local/mysql/bin/* /usr/bin
반응형
'Linux' 카테고리의 다른 글
[CentOS7 따라만 하세요] #1. CentOS 7.9 2009 설치하기 (0) | 2021.06.10 |
---|---|
[CentOS7/리눅스] Nginx-1.19.4 컴파일 설치 해보기 (0) | 2021.06.09 |
재미있는 Linux #2. cmatrix (0) | 2021.06.08 |
재미있는 Linux #1. asciiquarium (0) | 2021.06.08 |
[CentOS7] PHP 5.6 설치 (0) | 2021.06.08 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- CVE-2022-3786
- 재미있는
- 리눅스
- 3.0.4
- ssh
- CentOS6
- cmatrix
- centos7
- LCK
- 해외차단
- T1
- centos
- iptables
- xtables-addons-2.11
- mysql5.1
- drx
- CVE-2022-3602
- 재미
- php
- 롤
- 리그오브레전드
- Linux
- tcping
- putty
- 3.0.0
- 1.19.4
- 젠지
- 3.0.7
- xtables
- asciiquarium
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
글 보관함
오른쪽 사이드바 추가