timrdf / DataFAQs

LINKED DATA QUALITY REPORTS
41 stars 7 forks source link

handle twistd multiple threads #2

Open timrdf opened 12 years ago

timrdf commented 12 years ago

twistd's current config only uses one thread. Need to use more.

timrdf commented 12 years ago

Jim:

1) ok, do an update and install on sadi 

(following https://github.com/timrdf/DataFAQs/wiki/SADI-Semantic-Web-Services-framework
sudo svn checkout... ; python setup.py bdist_egg ; 
sudo python setup.py bdist_egg ; sudo easy_install dist/sadi-0.1.4-py2.6.egg)

on mac:
2) install mod_python. You'll need to build from svn:
3) svn co https://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk mod_python-trunk
4) ./configure && make && sudo make install

on linux: `sudo apt-get install libapache2-mod-python`

Instructions also at https://github.com/timrdf/DataFAQs/wiki/Sample-FAqT-deployment

timrdf commented 12 years ago

https://github.com/timrdf/DataFAQs/wiki/Sample-FAqT-deployment

jpmccu commented 12 years ago

Enable mod_python in httpd.conf or wherever is appropriate for your system. For whatever directory the service will be in, enable AllowOverride all. (done with sudo a2enmod python)

In the web directory of your choice, add the following to .htaccess:

SetHandler mod_python PythonHandler sadi

Place a conventional sadi service file in there with an extension of .py and try it out.