![]() |
SquirrelMail 1.4.22 cannot create initial preference file Ubuntu Server 18.0.4
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/ |
Quote:
(/var/local/squirrelmail/data instead of /var/www/html/squirrelmail/data) It's not your fault, but the howto you've followed is not good. Besides the discrepancies in the directories names it mentions to create users and give them homedir inside the webserver docroot! IMO that's bad practice. Better stick with the default users' dir (like /home/user) Also it's bad practice to give 777 permissions. Directories need just 755 and files 644 Regards |
Hi Bathory,
Ah I can't believe I didn't spot that, I need to be more diligent next time! Also yes I agree, I only gave 777 permissions as a test - once I got it working I would have probably changed permissions to 755 as you mentioned. Thank you for the help anyway :) This thread can be closed now. |
Quote:
Cheers |
All times are GMT -5. The time now is 11:03 AM. |