# To manually go from 0.3.2devel to 0.3.3, replace your old README,
# CHANGES, lib/sieve.lib and lib/version.php with the new ones and
# fix their permissions. No need to following the instructions
# in the next section.
cd /usr/local/apache/htdocs
test -d ./smartsieve &&
mv -f ./smartsieve ./smartsieve.old &&
chmod 700 ./smartsieve.old
tar xzvf ~/smartsieve-0.3.3devel.tar.gz
mv smartsieve-0.3.3devel smartsieve
chown -R root.nobody smartsieve
find smartsieve -type d | xargs chmod 750
find smartsieve -type f | xargs chmod 640
cd smartsieve
chmod 400 CHANGES COPYING INSTALL NOTICE README TODO
# Replace conf/.htaccess with this:
Allow from all
Deny from all
# Now modify the conf/* files
cd
mkdir -p installed/apache
rm -f installed/apache/smartsieve-*.tar.*
mv smartsieve-0.3.3devel.tar.gz installed/apache/
# Make sure index.php is set for Apache's "DirectoryIndex" in httpd.conf:
#
# DirectoryIndex index.php index.html
#
# Make sure you have something like this in httpd.conf for php:
#AddType application/x-httpd-php .php .php3
# Make sure .htaccess files are allowed for the smartsieve directory
AllowOverride All
# Create the .htaccess file you allowed (this one is for auth_ldap):
cat < .htaccess
AuthType Basic
AuthName "Smartsieve"
AuthLDAPURL ldap://localhost:389/ou=people,dc=foo,dc=org?uid??host=Sieve
require valid-user
HTFILE
chown root.nobody .htaccess
chmod 640 .htaccess
# That should be it:
#lynx https://yourserver/smartsieve/