piwik

dimarts, 29 d’abril del 2014

Rsync option to ignore permissions

rsync -rltzuv /source root@destination:/backup

dimarts, 22 d’abril del 2014

SVN Warning: post-commit FS processing had error 'attempt to write a readonly database'.

When committing changes to the SVN server this error pop up, doesn't seem to be affecting the commits, however I wanted to fix it. With a little bit of google'ing I found out that rep-cache.db inside each repository was missing the right permissions.

root@molly:/srv/svn/turing# ll db/
total 56
drwxrwsr-x 6 www-data subversion 4096 Apr 22 14:05 ./
drwxrwsr-x 7 www-data subversion 4096 Apr 22 14:04 ../
-rw-rwSr-- 1 www-data subversion    2 Apr 22 14:05 current
-r--rwSr-- 1 www-data subversion   22 Apr 14 17:51 format
-rw-rwSr-- 1 www-data subversion 1920 Apr 14 17:51 fsfs.conf
-rw-rwSr-- 1 www-data subversion    5 Apr 14 17:51 fs-type
-rw-rwSr-- 1 www-data subversion    2 Apr 14 17:51 min-unpacked-rev
-rw-r--r-- 1 root     subversion 4096 Apr 14 18:29 rep-cache.db

I got it fixed just by setting www-data as the owner of the file.

chown www-data ../lamport/db/rep-cache.db

So I've done it for every repository that I have. The main directory hangs from /srv/svn and from there I have all repositories, different one for each server.

dimecres, 16 d’abril del 2014

Mediawiki Error creating thumbnail: Unable to save thumbnail to destination

After installing a mediawiki on our managed server, I found that thumbnails were not displayed in the wiki because there was not a variable pointing to a temp folder were the thumbnails should go defined. I may probably had to enable ImageMagickConvertCommand as well, but not sure. That was my previous LocalSettings.php file:

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads  = true;
#$wgUseImageMagick = false;
#$wgImageMagickConvertCommand = "/usr/bin/convert";

And this is how it looks like after enabling it.

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads  = true;
$wgUseImageMagick = false;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgTmpDirectory = "$IP/images/temp";