Hey guys, I have seen this topic raised on other forums and have looked at many of the suggested solutions, but none of them have worked for me thus far.
I have been following this guide.
I'm trying to login to my SquirrelMail server (running Postfix and Dovecot in the bg) but I get the following message whenever I press the "Login" button:
I'm really not sure what other permissions www-data could possibly need; any ideas?
I have been following this guide.
I'm trying to login to my SquirrelMail server (running Postfix and Dovecot in the bg) but I get the following message whenever I press the "Login" button:
Error opening ../data/default_pref
Could not create initial preference file!
/var/local/squirrelmail/data/ should be writable by user www-data
I have given the www-data user full ownership and permission over the specified directory, as you can see below:Could not create initial preference file!
/var/local/squirrelmail/data/ should be writable by user www-data
Code:
[email protected]:/var/www/html/squirrelmail$ sudo chown -R www-data:www-data /var/www/html/squirrelmail/
[email protected]:/var/www/html/squirrelmail$ sudo chmod 777 -R /var/www/html/squirrelmail/
[email protected]:/var/www/html/squirrelmail$ sudo chown -R www-data:www-data /var/www/html/squirrelmail/data/
[email protected]:/var/www/html/squirrelmail$ sudo chmod 777 -R /var/www/html/squirrelmail/data/
[email protected]:/var/www/html/squirrelmail$ service dovecot restart
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'dovecot.service'.
Authenticating as: callum
Password:
==== AUTHENTICATION COMPLETE ===
[email protected]:/var/www/html/squirrelmail$ cd data/
[email protected]:/var/www/html/squirrelmail/data$ ls
default_pref index.php
[email protected]:/var/www/html/squirrelmail/data$ ls -ah
. .. default_pref .htaccess index.php
[email protected]:/var/www/html/squirrelmail/data$ ls -ltha
total 20K
drwxrwxrwx 2 www-data www-data 4.0K Jul 12 2011 .
drwxrwxrwx 16 www-data www-data 4.0K Jul 12 2011 ..
-rwxrwxrwx 1 www-data www-data 480 Jan 6 2011 index.php
-rwxrwxrwx 1 www-data www-data 41 Feb 7 2007 default_pref
-rwxrwxrwx 1 www-data www-data 14 Mar 2 2002 .htaccess
I'm really not sure what other permissions www-data could possibly need; any ideas?