Help - Search - Members - Calendar
Full Version: Help installing squerril mail !
The Planet Forums > Control Panels > Plesk
rhordern
Hi
I'm trying to install squerrilmail on my plesk 2.5 server but I need a bit of help.
When I enter a correct username and password it says :

"ERROR
Error opening ../data/default_pref
Could not create initial preference file!
../data/ should be writable by user apache
Please contact your system administrator and report this error. "

But I have done this :

chown -R nobody data
chgrp -R nobody data

Should I change "nobody" for something else what user does the user apach run as? Maybe it should be just my sites normal ftp username ??

Please help icon_smile.gif
When I have got a working version I will post a detailed how to for those who have had enough of the imp that comes with plesk !

Richard
huck
Make sure permissions are set to write for the owner
chmod -R 755 dir
where dir is the directory name

Also make sure that apache is running as nobody and not something else, e.g. httpd.
ps -aux
look for the httpd procs. and get the user name or check the apache config files.
rhordern
thanks it works now, (I had to set the owner to the site owner and not nobody) but now I want to try and set it up so that the whole server can use it. If I create an alias /squirrelmail in the httpdocs, is there a variable or some way to replace "mydomain.com" by the correct domain? ie: change $domain='domain.com' in the script to $domain=$sitedomain ... ??
alex.davies
I have the following script in /etc/cron.hourly and this works a treat, sitewide and it means that if if I fiddle around as root it solves any permission problems for me.
QUOTE
#!/bin/bash
#CHMOD's all the HTTPD directories of all virtual sites.
#© Alex Davies 2002.

number=0
while [ $number -lt 40 ]; do


if [ -d /home/virtual/site$number/fst/var/www/ ]; then



       chown -R admin /home/virtual/site$number/fst/var/www/ || die "Site does not exist - site$number";
       chgrp -R admin /home/virtual/site$number/fst/var/www/ || die "Site does not exist - site$number";
chown -R apache /home/virtual/site$number/fst/var/www/squ*
chgrp -R apache /home/virtual/site$number/fst/var/www/squ*
       echo "Site $number does exist"

else
       echo "Site $number does not exist"
fi

       number=$((number + 1))
done


Obviously if you have more than 40 sites, change the number.
With all best regards,

Alex Davies
alex@davz.net
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.