LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-12-2011, 03:32 AM   #1
KoopaTroopa
Member
 
Registered: Aug 2003
Location: Dallas, TX
Distribution: CentOS
Posts: 43

Rep: Reputation: 15
Squirrelmail could not create initial preference file


I'm trying to install Squirrelmail and for some reason it's just not working, this seems real stupid but I have no idea why its not working.

I'm getting the error:

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

I'm pretty sure the directory is right (Hell, i've even chmod 777'd the folders and it still doesnt work...)

deimos squirrelmail # pwd
/usr/local/squirrelmail
deimos squirrelmail # ls -lah
total 32K
drwxr-xr-x 4 root root 4.0K Jan 12 03:15 .
drwxr-xr-x 13 root root 4.0K Jan 12 03:15 ..
drwxrw---- 2 apache apache 4.0K Jan 12 03:15 data
drwxrw---- 2 apache apache 4.0K Jan 12 03:15 temp

Does anyone know any other reason that would stop this from working?
 
Old 01-12-2011, 06:46 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If you're using Centos as in your profile, then it should be SELinux preventing writing
I'm not an expert on SELinux, but according to this, you need
Code:
chcon -R -t httpd_sys_content_t /usr/local/squirrelmail/
BTW for apache to work without problems you need the directories to have 755 attributes:
Code:
chmod -R 755 /usr/local/squirrelmail/
 
Old 01-13-2011, 12:13 AM   #3
KoopaTroopa
Member
 
Registered: Aug 2003
Location: Dallas, TX
Distribution: CentOS
Posts: 43

Original Poster
Rep: Reputation: 15
heh well sure enough, looks like it was SELinux preventing this. I just reformatted and vaguely remember doing this last time around too
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squirrelmail SElinux Default preference file not found or not readable terek Linux - Security 11 02-04-2011 10:26 AM
How to restore keyboard layout preference file linuxlainen Linux - Newbie 4 03-22-2008 09:55 AM
Squirrelmail: Query: CREATE "INBOX.Sent" Reason Given: Cannot create this folder. Chiragrs Linux - Server 2 03-10-2008 11:37 AM
How to create an initial raid 5 array with 2 disk? metabaron Linux - General 2 12-09-2006 05:54 PM
php mysql initial connect to create db spoody_goon Programming 10 05-07-2005 09:20 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration