segunda-feira, 20 de fevereiro de 2012

Debian 6: Web server setup notes

Setuptools
  1. Download Python version egg from http://pypi.python.org/pypi/setuptools
  2. Run it with sh setuptools-0.6c11-py2.???.egg
If the error zipimport.ZipImportError: can't decompress data; zlib not available happens, happily run apt-get install zlibc and rebuild Python. After that re-run steps 1 and 2 above.


mysql-python
  1. Run apt-get install libmysqlclient-dev
  2. pip install mysql-python

nginx
  1. Install the PCRE library with apt-get install libpcre3 libpcre3-dev
  2. Install the OpenSSL development package with apt-get install libssl-dev 
  3. Ensure we have the zlib development package with apt-get install zlib1g-dev
  4. Configure with the flags --with-http_ssl_module
  5. make ; make install
  6. If no prefix juggling was performed, create a symlink for nginx into /usr/bin with ln -s /usr/local/nginx/sbin /usr/bin/nginx
  7. If no prefix juggling was performed, safely delete the /etc/nginx directory
  8. After step 7, create a symlink for the nginx directory to replace the above deleted one with ln -s /usr/local/nginx /etc/nginx

Nenhum comentário:

Postar um comentário