config.php 파일 수정 [CODE]/* |-------------------------------------------------------------------------- | Reverse Proxy IPs |-------------------------------------------------------------------------- | | If your server is behind a reverse proxy, you must whitelist the proxy IP | addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR | header in order to properly identify the visitor's IP address. | Comma-delimited, e.g. '10.0.1.200,10.0.1.201' | */ $config['proxy_ips'] = '여기에 ELB 아이피를 추가';[/CODE]
MySQL 5.5.7 부터 FOREIGN KEY 설정이 된 테이블을 TRUNCATE 하려면 FOREIGN_KEY_CHECKS을 0으로 지정해야한다. 안 그러면 Cannot truncate a table referenced in a foreign key constraint 오류가 발생한다.
mongodb 를 설치하지 않으면, 처음 실행하고 회원가입 할 때 에러가 발생합니다. [CODE]$ git clone https://github.com/alexyoung/nodepad.git nodepad $ cd nodepad $ npm install $ node app[/CODE]
.vimrc 에 아무 내용없이 아래 내용만 들어가도 됩니다. [CODE]$ vi .vimrc set nocompatible " be iMproved filetype off " required!
set rtp+=~/.vim/bundle/vundle/ call vundle#rc()
" let Vundle manage Vundle " required! Bundle 'gmarik/vundle'
" My Bundles here: "
" original repos on github Bundle 'tpope/vim-fugitive' Bundle 'Lokaltog/vim-easymotion' Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} Bundle 'tpope/vim-rails.git' " vim-scripts repos Bundle 'L9' Bundle 'FuzzyFinder' " non github repos Bundle 'git://git.wincent.com/command-t.git' " ...
filetype plugin indent on " required! " " Brief help " :BundleList - list configured bundles " :BundleInstall(!) - install(update) bundles " :BundleSearch(!) foo - search(or refresh cache first) for foo " :BundleClean(!) - confirm(or auto-approve) removal of unused bundles " " see :h vundle for more details or wiki for FAQ " NOTE: comments after Bundle command are not allowed..[/CODE]
[CODE]$ sudo apt-get install freetds-common freetds-bin php5-sybase[/CODE] php5-sybase: This package provides a module for Sybase and Microsoft SQL Server database connections directly from PHP scripts.
2. Configure FreeTDS
[CODE]$ vi /etc/freetds/freetds.conf
[yourserver] host = your.server.name port = 1433 tds version = 8.0[/CODE]
$ echo "/vol/etc/mysql /etc/mysql none bind" | sudo tee -a /etc/fstab $ sudo mount /etc/mysql $ echo "/vol/lib/mysql /var/lib/mysql none bind" | sudo tee -a /etc/fstab $ sudo mount /var/lib/mysql $ echo "/vol/log/mysql /var/log/mysql none bind" | sudo tee -a /etc/fstab $ sudo mount /var/log/mysql[/CODE]
MySQL 시작 [CODE]$ sudo /etc/init.d/mysql start[/CODE]
Install Microsoft SQL Server database connection module [CODE]$ sudo apt-get install php5-sybase $ sudo /etc/init.d/apache2 restart[/CODE]
Edit freetds.conf [CODE]$ sudo vi /etc/freetds/freetds.conf # A typical Microsoft server [egServer70] host = sqlserver_hostname port = 1433 tds version = 7.0 [/CODE]