Hey guys, so I know this question has been asked on many different forums - I've looked at tons of them and still can't find the issue.
I have been using the following guide to set up a SquirrelMail server:
https://www.tecmint.com/setup-postfi...ubuntu-debian/
However, when I try to log in, I get the following message:
Error opening ../data/default_pref
Could not create initial preference file!
/var/local/squirrelmail/data/ should be writable by user www-data
I have already gone into the /var/www/html/squirrelmail dir and done the following:
Code:
callum@servpalletloopclub:/var/www/html/squirrelmail$ sudo chown -R www-data:www-data /var/www/html/squirrelmail/
callum@servpalletloopclub:/var/www/html/squirrelmail$ sudo chmod 777 -R /var/www/html/squirrelmail/
callum@servpalletloopclub:/var/www/html/squirrelmail$ sudo chown -R www-data:www-data /var/www/html/squirrelmail/data/
callum@servpalletloopclub:/var/www/html/squirrelmail$ sudo chmod 777 -R /var/www/html/squirrelmail/data/
callum@servpalletloopclub:/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 ===
callum@servpalletloopclub:/var/www/html/squirrelmail$ cd data/
callum@servpalletloopclub:/var/www/html/squirrelmail/data$ ls
default_pref index.php
callum@servpalletloopclub:/var/www/html/squirrelmail/data$ ls -ah
. .. default_pref .htaccess index.php
callum@servpalletloopclub:/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 don't understand what the www-data user could possibly not have write permissions to - anybody have any ideas?