




Drupal is a CMS written in PHP which supports PostgreSQL. It is made for mod_php and Apache, thought it works with uWGSI and Nginx.
When you have tried uWGSI you know why you want this.
Example nginx configuration:
server {
server_name drupal.example.com;
root /srv/drupal/www/;
error_log /tmp/nginx_drupal.log;
index index.php index.html;
location / {
try_files $uri @rewrite;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
}
location ~* files/styles {
access_log off;
expires 30d;
try_files $uri @rewrite;
}
location ~ .php$ {
include uwsgi_params;
uwsgi_modifier1 14;
uwsgi_pass unix:/tmp/uwsgi_drupal.sock;
}
}
And an example uwsgi configuration:
Read MoreJust stumbled on django-parting which provides a nice API to partition your data.
For those not familiar with data partitioning, I recommend reading partitionning on mysql.
Check them out.
A very nice article about troubleshooting a server
Those are notes taken from the talk “PostgreSQL when it is not your job” by Christophe Pettus from PostgreSQL Experts Inc. at DjangoCon Europe 2012.
This article describes how to make a basic PostgreSQL configuration:
Note: this article is mostly a transcript from the talk by Christophe Pettus: so send all the cookies to him. Thanks !
That’s around 12 configuration options and you’re done.
Starting with logging is a good idea because it’s the best way of getting information for configuring the other settings.
Read MoreThe new brew of Foundation 4 is out, focusing on mobile first. Worth trying.
dropzone.js is an open source library that provides drag’n’drop file uploads with image previews
Nowadays, virtualenv uses --no-site-packages
by default. This means that
the created virtualenv will not access global site-packages modules ie.
/usr/lib/python2.7/site-packages/
.
To enable global site-packages again, just remove this file::
your_env/lib/python2.7/no-global-site-packages.txt
Why would you do that ?
Some modules are complicated to install (xpyb) or take too much time to compile (pyqt). Using the distro packages can be pretty useful !
Allison from hacker school published an interesting article about virtualenv for beginners.
Please upgrade.