LazyDreamy

관리자 | 글쓰기

LazyDreamy » Search » Results » Articles

Apache와 관련된 글 2개

  1. 2009/09/22 CentOS 5 with PHP5.3
  2. 2009/08/25 CentOS 4.x with PHP5 ,MySQL5

LazyDreamy » Computer/Linux

CentOS 5 with PHP5.3

드림 | 2009/09/22 10:55

centos 는 업데이트 반영이 좀 늦다. 그래서 php 5.3 은 따로 rpm 을 구하거나, 컴파일 해야 한다. 일단 컴파일을 안하고 패키지 관리를 방향으로 잡았으므로.. 다른 동네에서 제작된 것을 이용한다.

[root@dev1 /]# rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
[root@dev1 /]# cd /etc/yum.repos.d/
[root@dev1 yum.repos.d]# wget http://repo.webtatic.com/yum/webtatic.repo
--06:08:43--  http://repo.webtatic.com/yum/webtatic.repo
Resolving repo.webtatic.com... 87.124.70.63
Connecting to repo.webtatic.com|87.124.70.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 210 [text/plain]
Saving to: `webtatic.repo'

100%[===================================================================>] 210         --.-K/s   in 0s

06:08:44 (20.0 MB/s) - `webtatic.repo' saved [210/210]

[root@dev1 yum.repos.d]# yum --enablerepo=webtatic install php


php 에서 추가로 필요한 부분 설치

[root@dev1 yum.repos.d]# yum --enablerepo=webtatic install php-mcrypt php-pdo php-xml php-gd php-mysql php-mbstring


mysql 5 설치

[root@dev1 yum.repos.d]# yum install mysql-server


참조 : http://www.webtatic.com/blog/2009/06/php-530-on-centos-5/

2009/09/22 10:55 2009/09/22 10:55


태그 , , , ,

(go to top)

LazyDreamy » Computer/Linux

CentOS 4.x with PHP5 ,MySQL5

드림 | 2009/08/25 21:48

기존 yum 설정에서 저장소 사용 추가

# vi /etc/yum.repos.d/CentOS-Base.repo

파일 하단의 저장소 설정 수정 및 추가

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1


#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
priority=2
protect=1


[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=
http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1


dag 의 RPM 들을 검사하기위한 gpg-key 추가 설치

# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt


설정된 저장소를 이용해서 apm 설치

# yum install httpd
# yum install php
# yum install php-gd php-mysql php-xml php-mbstring
# yum install mysql mysql-server mysql-libs


방화벽 수정

# vi /etc/sysconfig/iptables


원하는 포트 추가

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT


방화벽 재시작

# service iptables restart


리붓 후 자동 시작 설정

# chkconfig httpd on
# chkconfig mysqld on



참조 : http://lifeij.tistory.com/6

2009/08/25 21:48 2009/08/25 21:48


태그 , , , ,

(go to top)