Dec 01 2009

Windos XP에서 APM 설치하기

분류: Apache2, Desktop, PHP, mysql최 태현 @ 10:22 오전

1. Apache, MySQL, PHP 설치하기

1. Apache 설치하기

  • 윈도우용 Apache Download ( 저는 apache_2.2.14-win32-x86-openssl-0.9.8k.msi 를 받았습니다. )
  • Run the Apache Installer
Server Information 설정화면

Continue reading “Windos XP에서 APM 설치하기”

Tags: , , ,


Jul 04 2009

PHP include_path 설정하기

분류: How to, PHP최 태현 @ 1:08 오전
  1. Edit your PHP configuration file. Inside that file is a directive section for “Paths and Directories.” You can change that value to whatever you like or add to (or eliminate) the default like this:
    include_path = .:/usr/local/lib/php:./include

    The above must be entered all on one line, with no linebreaks. The above will cause php scripts to search for a directory named “include”, and will look for it under the current directory of the running script in addition to the default, which is to first search the current directory and then search the /usr/local/lib/php directory (which is a system directory that is not writeable by you and is reserved for things like PEAR).

    The format of the include_path variable is a list of directories separated with a colon. A “.” (a period) in the include path means the current directory, and allows for relative includes. More information is available here.

    Use the function ini_set(). For example if you wanted to set your PHP include_path to “.:../:./include:../include” then you would do this in your PHP code:

    ini_set(”include_path”, “.:../:./include:../include”);

    You can also use ini_set() to affect other PHP settings like auto_prepend_file, auto_append_file, error_reporting, etc.

Tags: ,


Jun 17 2009

GD Library 설정하기

분류: Apache2, Server, Ubuntu, Web Server최 태현 @ 2:08 오후

# sudo apt-get install php5-gd

Tags: ,


Jun 11 2009

PHP + OCI8 설치

분류: Apache2, Desktop, How to, Web Server최 태현 @ 7:43 오후

도서관리시스템(KOLAS)이 오라클 DB를 사용해서 홈페이지 개발시 oracle instant client를 설치 했습니다.

  • $ sudo apt-get install build-essential php5-dev php-pear alien
  • Oracle 에서 Instant client 프로그램(instantclient-basic, instantclient-SDK)를 다운받는다. deb 파일 전환을 위해 rpm 파일을 다운받는다.
  • $ sudo alien -k oracle-instantclient-basic-10.2.0.4-1.i386.rpm
  • $ sudo alien -k oracle-instantclient-devel-10.2.0.4-1.i386.rpm
  • $ sudo dpkg -i oracle-instantclient-basic_10.2.0.4-1_i386.deb
  • $ sudo dpkg -i oracle-instantclient-devel_10.2.0.4-1_i386.deb
  • $ sudo pecl install oci8 ; pecl로 php rebuild

Continue reading “PHP + OCI8 설치”

Tags: , ,


Jun 08 2009

Ubuntu Desktop에서 Eclipse를 활용한 개발환경 구성하기(3)

분류: Desktop, Ubuntu최 태현 @ 10:42 오전

이번에는 Eclipse PDT 환경에 Zend Debuger를 설치해 보겠습니다. 먼저 eclipse를 구동하고

  • Eclipse를 구동시켜서 Help → Software Updates를 선택한다.
  • Available Software“  탭을 click하고, “Add Site” button을 click 한다음에 주소창에 http://downloads.zend.com/pdt 를 입력한다.
  • Zend Studio Update Site → Zend Debugger on the Feature 를 선택후 설치한다.

Continue reading “Ubuntu Desktop에서 Eclipse를 활용한 개발환경 구성하기(3)”

Tags: , ,


Jun 04 2009

Ubuntu Desktop에서 Eclipse를 활용한 개발환경 구성하기(1)

분류: Desktop, Eclipse, How to최 태현 @ 6:54 오후

한밭도서관 홈페이지 개발사업 완료후 개발된 내용을 확인하고 마음에 들지 않는 부분을 고치기 위해서 작업를 시작했습니다.

그런데 일일히 프로그램을 찾아가면서 수정하는게 귀챦고 수정되는 내용을 관리하기 위해서 공통개발작업 환경구축과 Eclipse를 사용해보기로 맘 먹었습니다. 즉 Eclipse에서 프로그램 수정과 버젼관리를 동시에 수행하는게 목적입니다.

우선 CDE 구성을 위해 Trac과 Subversion을 설치하고 프로그램 소스를 정리했습니다. (여기를 참조하세요)

다음엔 리눅스 데스크탑(Ubuntu Desktop 9.04)에 Eclipse를 구성하기 시작했습니다.

Continue reading “Ubuntu Desktop에서 Eclipse를 활용한 개발환경 구성하기(1)”

Tags: , , , ,


May 20 2009

Trac Browse Source에서 PHP file preview가 되지 않을경우

분류: Trac, Ubuntu최 태현 @ 8:26 오전

 

PHP command-line interface (CLI)를 설치해준다.

 

sudo apt-get install php5-cli


PHP CLI를 사용하기 위해 Configure를 수정해 준다.

 

  1. Window에 Trac을 설치한경우
    [mimeviewer]
    php_path = c:\PHP\php.exe
  2. Ubuntu(또는 Linux)에 설치한 경우 (/etc/trac.ini 수정 <= 제가 올린 Trac 설치방법 참조)
    [mimeviewer]
    php_path = /usr/bin/php

Tags: ,