Centos6.0 + Zend Server CE

Basic Server 버전 설치

#yum check-update
#yum update

방화벽 설정 (21, 22, 80, 10081,10082 열기)

FTP 설정
#yum install vsftpd
#setsebool -P ftp_home_dir 1
#setsebool -P allow_ftpd_full_access 1
#/etc/rc.d/init.d/vsftpd start

#yum install mysql
#yum install mysql-server

MySQL 설정
mysql 환경 설정파일 복사
my-huge.cnf       1GB 이상 메모리
my-large.cnf       512MB ~ 1GB
my-medium.cnf  128MB ~ 256MB
my-small.cnf      64MB 이하

# cp /usr/share/mysql/my-large.cnf /etc/my.cnf

#vi /etc/my.cnf

[client]
default-character-set = utf8

[mysqld]
init_connect=SET collation_connection = utf8_general_ci
init_connect=SET NAMES utf8
default-character-set = utf8
character-set-server = utf8
collation-server = utf8_general_ci

[mysqldump]
default-character-set = utf8

[mysql]
default-character-set = utf8

관리자 비밀번호 생성
#mysqladmin -uroot password 비번

ZendServer CE 설치

ZendServer-5.1.0-RepositoryInstaller-linux.tar.gz (http://www.zend.com/en/products/server-ce/downloads)

#tar zxvf ZendServer-5.1.0-RepositoryInstaller-linux.tar.gz
#cp zend.rpm.repo /etc/yum.repos.d/
#yum install zend-server-ce-php-5.3

#/usr/local/zend/bin/gui_passwd.sh

http://MyDomain:10081/

Posted by sasem

2011/07/13 18:42 2011/07/13 18:42
,
Response
8 Trackbacks , a comment
RSS :
http://blog.sasem.net/rss/response/10

Centos6.0 + Nginx (PHP FastCGI)

Basic Server 버전 설치

#yum check-update
#yum update

방화벽 설정 (21, 22, 80 열기)

FTP 설정
#yum install vsftpd
#setsebool -P ftp_home_dir 1
#setsebool -P allow_ftpd_full_access 1
#/etc/rc.d/init.d/vsftpd start

EPEL 설정
#rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm

nginx 설치
#yum install nginx

nginx 설정 파일
Default config file: /etc/nginx/nginx.conf
Default SSL config file: /etc/nginx/conf.d/ssl.conf
Default virtual hosting config file: /etc/nginx/conf.d/virtual.conf
Default documentroot: /usr/share/nginx/html

FastCGI로 PHP 환경 설정

#yum install php-pear-Net-Socket php-pear php-common php-gd php-devel php php-mbstring php-pear-Mail php-cli php-imap php-snmp php-pdo php-xml php-pear-Auth-SASL php-ldap php-pear-Net-SMTP php-mysql

#yum install spawn-fcgi

#wget http://bash.cyberciti.biz/dl/419.sh.zip
#unzip 419.sh.zip
#mv 419.sh /etc/init.d/php_cgi
#chmod +x /etc/init.d/php_cgi

#/etc/init.d/php_cgi start

# vi /etc/nginx/nginx.conf
주석 제거 
    location ~ \.php$ {
            root           html;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html$fastcgi_script_name;
            include        fastcgi_params;
        }
 

#service nginx start

#vi /usr/share/nginx/html/test.php
 
<?php
     phpinfo();
?>

Posted by sasem

2011/07/13 18:36 2011/07/13 18:36
, , ,
Response
No Trackback , No Comment
RSS :
http://blog.sasem.net/rss/response/9

Centos6.0 + APM (rpm install)

Basic Server 버전 설치

#yum check-update
#yum update

방화벽 설정 (21, 22, 80 열기)

FTP 설정
#yum install vsftpd
#setsebool -P ftp_home_dir 1
#setsebool -P allow_ftpd_full_access 1
#/etc/rc.d/init.d/vsftpd start

APM 설치
#yum -y install httpd
#yum -y install mysql
#yum -y install php

PHP 추가 모듈 설치
#yum -y install gd gd-devel
#yum -y install libxml2 libxml2-devel
#yum -y install openssl openssl-devel
#yum -y install gmp gmp-devel
#yum -y install mysql-server
#yum -y install php-mysql
#yum -y install php-devel
#yum -y install php-gd
#yum -y install php-mbstring

MySQL 설정
mysql 환경 설정파일 복사
my-huge.cnf       1GB 이상 메모리
my-large.cnf       512MB ~ 1GB
my-medium.cnf  128MB ~ 256MB
my-small.cnf      64MB 이하

# cp /usr/share/mysql/my-large.cnf /etc/my.cnf

#vi /etc/my.cnf

[client]
default-character-set = utf8

[mysqld]
init_connect=SET collation_connection = utf8_general_ci
init_connect=SET NAMES utf8
default-character-set = utf8
character-set-server = utf8
collation-server = utf8_general_ci

[mysqldump]
default-character-set = utf8

[mysql]
default-character-set = utf8

Apache 설정
#vi /etc/httpd/conf/httpd.conf

ServerName localhost:80
DirectoryIndex index.html index.htm index.php
DocumentRoot "/home/www/public_html"

#chcon -R -h -t httpd_sys_content_t /home

#vi /etc/php.ini

date.timezone = Asia/Seoul

관리자 비밀번호 생성
#mysqladmin -uroot password 비번

ZendGuardLoader (Zend.net) 설정
ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
(5.3은 ZendGuardLoader 사용)

#vi /etc/php.d/zendguard.ini
zend_extension=/etc/httpd/modules/ZendGuardLoader.so
zend_loader.enable=1

#setsebool -P allow_execstack 1
#execstack -c /etc/httpd/modules/ZendGuardLoader.so
#chcon -t texrel_shlib_t /etc/httpd/modules/ZendGuardLoader.so

Posted by sasem

2011/07/13 18:29 2011/07/13 18:29
, ,
Response
No Trackback , No Comment
RSS :
http://blog.sasem.net/rss/response/8

Centos5.6 :: elRepo 사용하기

elRepo -  http://elrepo.org

#rpm -Uvh http://elrepo.org/elrepo-release-5-2.el5.elrepo.noarch.rpm

#rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org


[사용예]
EeePC 901 무선랜 드라이버

#yum --enablerepo=elrepo install rt2860-firmware

#yum --enablerepo=elrepo install kmod-rt2860sta

Posted by sasem

2011/05/10 20:38 2011/05/10 20:38
,
Response
10 Trackbacks , No Comment
RSS :
http://blog.sasem.net/rss/response/7

[드라이버 다운로드]

http://elrepo.org/

http://elrepo.reloumirrors.net/elrepo/el5/i386/RPMS/kmod-atl1e-1.0.1.9-2.el5.elrepo.i686.rpm

-> USB에 저장

[드라이버 설치]

#mkdir /usb
#mount -t vfat /dev/sda1 /usb
#cd /usb
#rpm -Uvh kmod-atl1e-1.0.1.9-2.el5.elrepo.i686.rpm --force --nodpes
#reboot
#setup (네트워크 설정)

Posted by sasem

2011/05/09 22:43 2011/05/09 22:43
, ,
Response
11 Trackbacks , No Comment
RSS :
http://blog.sasem.net/rss/response/6

PHPQRCODE 사용

PHPQRCODE (http://phpqrcode.sourceforge.net/)

#unzip phpqrcode-2010100721_1.1.4.zip

#vi test.php

<?php

include "./phpqrcode/qrlib.php";

QRcode::png('www.soripan.com');

?>

Posted by sasem

2010/11/29 15:14 2010/11/29 15:14
,
Response
10 Trackbacks , a comment
RSS :
http://blog.sasem.net/rss/response/5

Sulinux2.0 Zint 설치

** cmake 필요**
1) 저장소 추가

#vi /etc/yum.repos.d/SUL-Base.repo
[epel5]
name=EPEL5
baseurl=http://ftp.sayclub.com/pub/Linux/fedora/epel/5/i386
gpgcheck=0

2) cmake 설치
#yum install cmake

1. Zint 설치 (http://www.zint.org.uk/zintSite/)

#tar xvfz zint-2.4.0.src.tar.gz
#cd zint-2.4.0
#cmake CMakeLists.txt
#make
#make install

2. qrencode 설치 (http://fukuchi.org/works/qrencode/index.en.html)

#tar xvfz qrencode-3.1.1.tar.gz
#cd qrencode-3.1.1
#./configure
#make
#make install

3. Zint PHP Extionsion 설치 (http://dev.naver.com/projects/phpzint)

#unzip source-phpzint-20101025.zip

#mv source-phpzint-20101025 /usr/local/src/php-5.2.14/ext/zint

#cd /usr/local/src/php-5.2.14/ext/zint

#/usr/local/php/bin/phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519

#./configure --with-php-config=/usr/local/php/bin/php-config

#make

#make install

#vi /usr/local/lib/php.ini
extension_dir="/usr/local/php_5.2.14/lib/php/extensions/no-debug-non-zts-20060613/"
extension=zint.so

#service httpd restart

4. 테스트
#vi qr.php
<?
$a = zint_imagepng("-b 58 --height=50 --border=10 -d www.test.com --out=return");
echo $a;
?>

Posted by sasem

2010/11/29 15:12 2010/11/29 15:12
, ,
Response
11 Trackbacks , No Comment
RSS :
http://blog.sasem.net/rss/response/4

Sulinux 2.0에 Red5 0.9.1 설치

[다운로드]

SuLinux2.0 : https://www.sulinux.net/2.0/

Sun Java JDK 1.6 : http://www.oracle.com/technetwork/java/javase/downloads/index.html

Ant : http://ant.apache.org/bindownload.cgi

Red5 : http://code.google.com/p/red5/


1. Sulinux 설치

2. 업데이트

#yum update

3. Java JDK 1.6 설치

#cd /usr/src/
#chmod +x jdk-6u22-linux-i586-rpm.bin
#./jdk-6u22-linux-i586-rpm.bin

4. Ant 설치

#tar jxvf apache-ant-1.8.1-bin.tar.bz2
# mv apache-ant-1.8.1 /usr/local/ant/

5. 경로 설정

#vi /etc/profile

export JAVA_HOME=/usr/java/jdk1.6.0_21/
export ANT_HOME=/usr/local/ant
export PATH=$PATH:/usr/local/ant/bin
export CLASSPATH="."

#source /etc/profile

6. Red5 설치

#tar xvfz red5-0.9.1.tar.gz
#mkdir /usr/local/red5
#cd red5-0.9.1/
#cp -apr * /usr/local/red5/


#vi /etc/init.d/red5

#!/bin/bash
# For RedHat and cousins:
# chkconfig: 2345 85 85
# description: Red5 flash streaming server
# processname: red5
# Created By: Sohail Riaz

PROG=red5
RED5_HOME=/usr/local/red5
DAEMON=$RED5_HOME/$PROG.sh
PIDFILE=/var/run/$PROG.pid

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/red5 ] && . /etc/sysconfig/red5

RETVAL=0

case "$1" in
 start)
 echo -n $"Starting $PROG: "
 cd $RED5_HOME
 $DAEMON >/dev/null 2>/dev/null &
 RETVAL=$?
 if [ $RETVAL -eq 0 ]; then
  echo $! > $PIDFILE
  touch /var/lock/subsys/$PROG
 fi
 [ $RETVAL -eq 0 ] && success $"$PROG startup" || failure $"$PROG startup"
 echo
 ;;
 stop)
 echo -n $"Shutting down $PROG: "
 killproc -p $PIDFILE
 RETVAL=$?
 echo
 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROG
 ;;
 restart)
 $0 stop
 $0 start
 ;;
 status)
 status $PROG -p $PIDFILE
 RETVAL=$?
 ;;
 *)
 echo $"Usage: $0 {start|stop|restart|status}"
 RETVAL=1
esac

exit $RETVAL

#chmod 755 /etc/init.d/red5
# chkconfig --add red5
#/etc/init.d/red5 start

7. 방화벽 설정

#setup

방화벽 허용 포트 추가

5080:tpc 1935:rtmp

8. 동작 확인

http://ip:5080/installer -> 데모 설치 후, 확인.

Posted by sasem

2010/10/14 17:11 2010/10/14 17:11
,
Response
13 Trackbacks , No Comment
RSS :
http://blog.sasem.net/rss/response/3

Balsamiq Mockups 한글 사용

사용자 삽입 이미지

View -> Use System Fonts 선택.

Posted by sasem

2010/08/19 18:30 2010/08/19 18:30
, ,
Response
220 Trackbacks , No Comment
RSS :
http://blog.sasem.net/rss/response/2

2010.07.14

blog.sasem.net

Posted by sasem

2010/07/14 10:39 2010/07/14 10:39
Response
13 Trackbacks , No Comment
RSS :
http://blog.sasem.net/rss/response/1


Calendar

«   2012/01   »
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 31