DevReview.net

More development notices …

Archive for the ‘apache’ tag

Config apache mod_wsgi for python web applications

leave a comment

Installing mod_wsgi
Example of http.conf:
LoadModule wsgi_module        libexec/apache22/mod_wsgi.so

Example


ServerName python.dev
ServerAdmin webmaster@python.dev
DocumentRoot "/usr/local/www/apache22/data/sites/python.dev"


Order allow,deny
Allow from all

WSGIScriptAlias / /usr/local/www/apache22/data/sites/python.dev/index.py

ErrorLog "/var/log/python.dev-error_log"
CustomLog "/var/log/python.dev-access_log" common

Example of index.py

def application(environ, start_response):
status = '200 OK'
output = 'Hee ello 34 World!'

response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)

return [output]

restart apache & check http://python.dev

Written by admin

May 29th, 2011 at 1:29 pm

Posted in python

Tagged with , , ,

Apache SOLR search engine – simple to install & try to use

leave a comment

With this post I want to tell you that SOLR – is really easy to install and use, if you even dont have any knowledge in search engine principles, but always wanted to implement fulltext search for your web application.

Recently, I’m playing with sphinx search engine and trying to connect it to one project. Sphinx is great simple SE, but it has some limitations and stuff I dont like. So, I think – it would be nice to have some alternative.

Honestly, saying I did not touch to much SOLR on this moment as well :) , but main public use cases are clear to me, checked, read, and fear of using something java related from php disappeared. :)

Why SOLR is cool? and what do you need for start?
Read the rest of this entry »

Written by admin

March 14th, 2010 at 11:11 pm