woensdag 29 oktober 2008

Leopard samba client

Some Mac leopard clients ignore the force create mode settings from your smb.conf which work with most other clients.

If you want stuff to work with those clients try this (user+group can read, write all, others cannot do anything):


create mask = 0660
force create mode = 0660
security mask = 0000
force security mode = 0660

directory mask = 0770
force directory mode = 0770
directory security mask = 0000
force directory security mode = 0770


http://discussions.apple.com/message.jspa?messageID=5904901

maandag 20 oktober 2008

php4-cgi with php5 apache2 module

Ran in a situation where I had to run php4 and 5 on the same box (but different folders).

On debian you'll have to install php4-cgi and enable apache mods (suexec, ssl, actions, mime) following VritualHost config worked for me:



<VirtualHost *:80 >

ServerAdmin bart@dlma.nl
DocumentRoot /var/www/tutos/HTML/
ServerName tutos.dlma.nl


ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory /var/www/tutos/HTML>
AllowOverride All
Options -Indexes

AddHandler php-script .php
Action php-script /cgi-bin/php4


</Directory>

</VirtualHost>

maandag 6 oktober 2008

switch user svn+ssh

If you want to change the username of your svn+ssh working copy (and the username is in the url i.e. svn+ssh://username@host.nl/repos ) the '--username' will not work. Instead you'll have to change the URL with the 'switch --relocate' command as follows:

$svn switch --relocate svn+ssh://username@host.nl/repos svn+ssh://newusername@host.nl/repos