LazyDreamy

관리자 | 글쓰기

LazyDreamy » Search » Results » Articles

CentOS와 관련된 글 6개

  1. 2009/09/22 php 외부 db 서버 (또는 기타 호스트) 접속 문제 (1)
  2. 2009/09/22 CentOS 5 vsftpd 500 OOPS: cannot change directory
  3. 2009/09/22 CentOS 5 with PHP5.3
  4. 2009/09/17 CentOS 5 yum 설정
  5. 2009/08/25 CentOS 4.x with PHP5 ,MySQL5
  6. 2009/08/25 CentOS 4.x DNS with chroot bind

LazyDreamy » Computer/Linux

php 외부 db 서버 (또는 기타 호스트) 접속 문제

드림 | 2009/09/22 18:55

해결하고보니.. SeLinux 문제. 확 꺼버릴까 고민을 orz

[root@dev1 /]# setsebool -P httpd_can_network_connect=1


SeLinux 관련 참조 : http://arcy.org/tc/entry/SELinux-%EC%84%A4%EC%A0%95

2009/09/22 18:55 2009/09/22 18:55


태그 , ,

(go to top)

LazyDreamy » Computer/Linux

CentOS 5 vsftpd 500 OOPS: cannot change directory

드림 | 2009/09/22 15:42

권한문제가 대부분이다 selinux 활성화 문제일 확률이 높다.


[root@dev1 vsftpd]# setsebool -P ftp_home_dir 1

2009/09/22 15:42 2009/09/22 15:42


태그 , , ,

(go to top)

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 5 yum 설정

드림 | 2009/09/17 11:09

CentOS 에는 기본적으로 yum 이 설치되있다. 전체적으로 업데이트가 느린 관계로 설치후 추가 repos 와 연계를 해준다.


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

하단의

[centosplus]
enabled=1

[contrib]
enabled=1

로 설정


그 외에 필요한 경우 rpmforge 나 webtatic 을 추가한다. (php 5.3 등을 사용 할 경우)

참조 : http://spring.way2java.net/entry/CentOS-5-yum-repository-%EC%B6%94%EA%B0%80-rpmforge

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

2009/09/17 11:09 2009/09/17 11:09


태그 ,

(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)

LazyDreamy » Computer/Linux

CentOS 4.x DNS with chroot bind

드림 | 2009/08/25 20:04

Bind 설치

# yum install bind bind-chroot bind-libs bind-utils caching-nameserver


rndc key

# rndc-confgen –a


설정파일은 알아서;;

/var/named/chroot/etc/named.conf
/var/named/chroot/var/named


방화벽 수정

# vi /etc/sysconfig/iptables


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


자동 시작 설정

# chkconfig named on


참고 : http://www.wains.be/index.php/2007/02/04/centos-chroot-dns-with-bind/

2009/08/25 20:04 2009/08/25 20:04


태그 , ,

(go to top)