2012年12月24日 星期一

dist-packages

source from :
http://stackoverflow.com/questions/9387928/whats-the-difference-between-dist-packages-and-site-packages

dist-packages is a Debian-specific convention that is also present in its derivatives, like Ubuntu.

/usr/lib/python2.7/dist-packages

easy_install and pip are installed from the package manager, they also use dist-packages, butthey put packages here:
/usr/local/lib/python2.7/dist-packages

you manually install Python from source, it uses the site-packages directory.


2012年11月28日 星期三

Apache2

#set apache2 server
~$ sudo gedit /etc/apache2/sites-available/default

# in this file set root, cgi-bin, and share doc 

DocumentRoot /home/user/yasam/www
ScriptAlias /cgi-bin/ /home/user/yasam/cgi-bin/

Alias /doc/ "/home/user/yasam/doc/"