버그질라도 업그레이드 해주었습니다. 아래 링크의 "2.7.2.3. Upgrading using the tarball" 방식으로 진행하였습니다.

 

https://www.bugzilla.org/docs/4.2/en/html/upgrade.html

 

Upgrading to New Releases

Upgrading to new Bugzilla releases is very simple. There is a script named checksetup.pl included with Bugzilla that will automatically do all of the database migration for you. The following sections explain how to upgrade from one version of Bugzilla to

www.bugzilla.org

 

 

 

문제 1:  .htaccess overide 문제

apache2 로그에를 보면  .htaccess: Require not allowed here 와 같은 에러가 나옵니다.

AllowOverride 부분에 AuthConfig 를 추가 해주면 됩니다.

 

문제 2 :버그질라 접속시 스킨없이 텍스트만 나오는 경우

apache2 로그를 보면 AH01797: client denied by server configuration: /.../bugzilla/data/assets/2f5735cf3abd04bddc8e363a8613a9f5.css 와 같은 로그가 있습니다.

 

https://www.bugzilla.org/releases/5.0.2/release-notes.html 의 Updates in this 5.0.x Release > 5.0.2 부분에 관련 이슈가 있습니다.

버그질라 디렉토리에서 아래 명령을 실행해줍니다.

find . -mindepth 2 -name .htaccess -exec rm -f {} \;
./checksetup.pl
728x90
반응형
Apache에서 Python을 쓰기 위해서는 mod-python을 설치해야 합니다. 우분투는 아래와 같이 설치합니다.

apt-get install libapache2-mod-python


/etc/apache2/httpd.conf에 아래와 같이 설정해줍니다.
/var/www/cgi/ 에 python cgi 파일들이 있다고 가정합니다.

<Directory "/var/www/cgi">
                AddHandler cgi-script .cgi
                AddHandler cgi-script .pyc
                AddHandler cgi-script .py
                 Allow from all
                Options +ExecCGI
</Directory>

이제 /var/www/index.py 에 아래와 같이 작성해줍니다.

#!/usr/bin/python

print "Content-Type: text/plain\n"
print "Hello, Python!"

파일에 실행 권한을 줍니다.

chmod a+x /var/www/index.py


http://ip/index.py 에 접속해보면 Hello, Python! 이 출력됨을 알 수 있습니다.
728x90
반응형

'프로그래밍 > Python' 카테고리의 다른 글

Problem running *.pyc on ubuntu server  (0) 2012.01.30

+ Recent posts