Drupal2013. 6. 25. 02:39

1. execute these instructions
# sudo a2enmod rewrite
# sudo apache2ctl -l

2. replace the occurrence of AllowOverride None to AllowOverride all
# vi /etc/apache2/sites-enabled/000-default

<VirtualHost *:80> ServerAdmin admin@localhost DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride all <- change this line like that </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride all
<- change this line like that Order allow,deny allow from all </Directory>


3. restart apache

# sudo service apache2 restart



reference site : here


Posted by 준피
Server-Side/Linux2011. 9. 9. 22:35
1. Download Python2.7

http://www.python.org/download/releases/2.7.2/

2. Install

# cd /usr/local/src
# tar xzfv ./Python-2.7.2.tgz
# cd ./Python-2.7.2 
#  ./configure --prefix=/usr/local/Python-2.7
# make
# make install

3. Alias : 기본적으로 python2.4 or 2.6등이 깔려있기 때문에 python PATH 변경 

# python -V
Python 2.6.4
# alias python='/usr/local/Python2.7/bin/python2.7'
# python -V
Python 2.7.2


Reference

http://www.joywang.info/?p=112
Posted by 준피
Server-Side/Linux2011. 1. 12. 16:50
Create Repository
# cd /home/svn
# sudo mkdir PROJECT_NAME
# sudo svnadmin create --fs-type fsfs PROJECT_NAME

Configuration Repository
# sudo vi /etc/apache2/mods-available/dav_svn.conf
------------------------------------------------
<Location /svn/PROJECT_NAME>
DAV svn
SVNPath /home/svn/PROJECT_NAME
AuthType Basic
AuthName "Project Repository"
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
------------------------------------------------
# sudo chown -R www-data:subversion PROJECT_NAME
# sudo chmod -R g+rws PROJECT_NAME
# sudo /etc/init.d/apache2 restart

Create User
# sudo htpasswd -c /etc/subversion/passwd account_name
# cat /etc/subversion/passwd
account_name:encrypted_passwd
htpasswd -c 옵션은 처음 계정을 생성할 때 사용한다. 이 옵션은 파일을 만들어 준다.
두번째 계정부터는 옵션없어도된다.

Reference


Posted by 준피
Server-Side/Linux2010. 8. 27. 00:23
# uname -m
x86_64

uname에 -m 옵션을 주면 OS가 몇 비트인지 확인 가능하다.

x86_6464비트이고, i68632비트이다.

Posted by 준피