PHP and Zend Optimizer

옛날 강의게시판이 technote(ver. 6.9로 되어 있다.
최근에 xe(1.4.5.10)로 모두 바꾸었다. 그러나, 옛 강의게시판을 그대로 유지하고 있었다.
문제는 운영체제(ubuntu)를 최신으로(9.04에서 11.10으로) 변경하면서 발생했다. 상황을 요약하면 다음과 같다.

사용자 삽입 이미지

- 테크노트는 zend optimizer가 있어야 작동한다.
- zend optimizer는 php 5.2 이하에서 작동한다.
- ubuntu 11.10에는 php 5.3.6이 설치되어 있다.
- 고로 ubuntu 11.10에서는 테크노트가 전혀 작동이 되지 않는다.
- php 버전을 내려야 문제가 해결된다.

위 사항을 알아내는 데에 많은 시간이 걸렸다.(ㅠ.ㅠ)
- php 다운그레이드를 위해 ubuntu 포럼 페이지를 참고했다.

Posted by solarview

2011/11/01 14:53 2011/11/01 14:53
, , , , ,
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/357

Ubuntu 업그레이드

서버의 운영체제를 업그레이드했다.
- 기존의 운영체제 : Ubuntu 9.04 (일명 Jaunty)
- 보안문제가 대두됨 (전산원)
- 운영체제를 업그레이드하기로 함
[code]sudo aptitude install update-manager-core
sudo do-release-upgrade[/code]
- /boot 파티션의 공간이 부족하다는 오류 메시지가 뜸
- 현재 파티션 상황
[code]/dev/sda1   /boot
/dev/sda2    /
/dev/sda3    swap
/dev/sda4    Extended
/dev/sda5    /home[/code]
- /boot내용 옮기기
[code]sudo mkdir /boot-new
sudo rsync -axS --exclude='/*/.gvfs' /boot/. /boot-new/.[/code]
- 기존의 /boot파티션을 /파티션으로 옮기기로 함
- 부팅가능한 파티션을 /boot파티션에서 /로 변경함 (->여기서 bootable 여부를 설정함)
[code]sudo fdisk /dev/sda[/code]
- /etc/fstab의 내용을 변경함(-> /boot 부분을 주석처리함)
[code]sudo vi /etc/fstab [/code]
- 새로운 파티션으로 부팅함

- 9.04에서 9.10으로 업그레이드는 네트워크로 바로 안 되기 때문에 "Upgrades via alternate CD"방법을 사용함 (Jaunty to Karmic)
- 9.10은 이제 오래된 버전이어서 Ubuntu 9.10 (Karmic Koala) 페이지에서 이미지를 내려 받았음
[code]wget http://old-releases.ubuntu.com/releases/karmic/ubuntu-9.10-server-i386.iso[/code]
- 내려받은 이미지를 이용해서 업그레이드를 실시함( Server/Command line Upgrade)
[code]mkdir /mnt/alternate
sudo mount -o loop /home/archer/ubuntu-9.10-server-i386.iso /mnt/alternate
cd /mnt/alternate
sudo ./cdromupgrade --frontend=DistUpgradeViewText[/code]

- 9.10에서 10.XX로 업그레이드도 실시함(Network upgrades)
[code]sudo aptitude install update-manager-core
sudo do-release-upgrade[/code]

-위와 같은 네트워크 업그레이드가 안 되는 경우에는 Upgrade via alternate CD를 통해서 진행함.
- 최종적으로 현재 Ubuntu 11.10까지 업그레이드를 실시함.

Posted by solarview

2011/10/21 13:31 2011/10/21 13:31
, ,
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/356

1) 한글설치
#locale-gen ko_KR.UTF-8
2) /etc/environment  파일 편집
#vi /etc/environment
LANG="ko_KR.UTF-8"  <-- 추가
3) /etc/profile 파일 편집
#vi /etc/profile
LANG="ko_KR.UTF-8" <--추가
4) 사용자(여기서는 root)의 프로파일(/root/.profile) 편집
#vi /root/.profile
# LANG=C    <-- 주석처리
# LANGUAGE=C
위의 두 곳을 주석처리(#)

Posted by solarview

2009/08/24 12:55 2009/08/24 12:55
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/272

우분투(Ubuntu)로 갈아타다

사용자 삽입 이미지
학과 웹서버에 이어 드디어 본 사이트의 웹서버를 위한 운영체제를 우분투로 바꾸었다.
기존에는 한컴리눅스를 사용하였으나, 업그레이드가 쉽지 않았다.
우분투는 업그레이드가 쉬워서 바꾸기로 했다.

우분투의 철학이 맘에 들어 아래와 같이 인용해본다.


The Ubuntu promise

  • Ubuntu will always be free of charge, including enterprise releases and security updates.
  • Ubuntu comes with full commercial support from Canonical and hundreds of companies around the world.
  • Ubuntu includes the very best translations and accessibility infrastructure that the free software community has to offer.
  • Ubuntu CDs contain only free software applications; we encourage you to use free and open source software, improve it and pass it on.

Posted by solarview

2009/08/23 23:29 2009/08/23 23:29
,
Response
No Trackback , No Comment
RSS :
http://www.solarview.net/rss/response/274