[SM-USERS] Can't find existing Data dir on Fedora 15
running configtest.php: SquirrelMail configtest This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script. SquirrelMail version: 1.4.22-2.fc15 Config file version:1.4.0 Config file last modified: 30 October 2011 15:25:44 Checking PHP configuration... PHP version 5.3.8 OK. Running as N/A(N/A) / N/A(N/A) display_errors: error_reporting: 22527 variables_order OK: GPCS. PHP extensions OK. Dynamic loading is disabled. ERROR: You have configured PHP not to allow short tags (short_open_tag=off). This shouldn't be a problem with SquirrelMail or any plugin coded coded according to the SquirrelMail Coding Guidelines, but if you experience problems with PHP code being displayed in some of the pages and changing setting to "on" solves the problem, please file a bug report against the failing plugin. The correct contact information is most likely to be found in the plugin documentation. Checking paths... ERROR: Data dir (/home/vmail/squirrelmail/data/) does not exist! BUT, cd /home/vmail/squirrelmail/data/ [root@mailserver data]# pwd /home/vmail/squirrelmail/data ls -l /home/vmail/squirrelmail/ total 8 drwx-wx---. 2 root apache 4096 Oct 29 20:14 attachment drwx-wx---. 2 root apache 4096 Oct 29 20:13 data Any help appreciated, BTW, should I enable PHP dynamic loading? If so, how? sean -- Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World™ now supports Android™ Apps for the BlackBerry® PlayBook™. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev - squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@lists.sourceforge.net List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Re: [SM-USERS] Can't find existing Data dir on Fedora 15
On 10/30/2011 03:37 PM, michael crane wrote: > > On Sun, October 30, 2011 6:47 pm, sean darcy wrote: >> running configtest.php: >> >> SquirrelMail configtest >> >> This script will try to check some aspects of your SquirrelMail >> configuration and point you to errors whereever it can find them. You >> need to go run conf.pl in the config/ directory first before you run >> this script. >> >> SquirrelMail version:1.4.22-2.fc15 >> Config file version: 1.4.0 >> Config file last modified: 30 October 2011 15:25:44 >> Checking PHP configuration... >> PHP version 5.3.8 OK. >> Running as N/A(N/A) / N/A(N/A) >> display_errors: >> error_reporting: 22527 >> variables_order OK: GPCS. >> PHP extensions OK. Dynamic loading is disabled. >> ERROR: You have configured PHP not to allow short tags >> (short_open_tag=off). This shouldn't be a problem with SquirrelMail or >> any plugin coded coded according to the SquirrelMail Coding Guidelines, >> but if you experience problems with PHP code being displayed in some of >> the pages and changing setting to "on" solves the problem, please file a >> bug report against the failing plugin. The correct contact information >> is most likely to be found in the plugin documentation. >> >> Checking paths... >> ERROR: Data dir (/home/vmail/squirrelmail/data/) does not exist! >> >> >> BUT, >> >>cd /home/vmail/squirrelmail/data/ >> [root@mailserver data]# pwd >> /home/vmail/squirrelmail/data >> >> ls -l /home/vmail/squirrelmail/ >> total 8 >> drwx-wx---. 2 root apache 4096 Oct 29 20:14 attachment >> drwx-wx---. 2 root apache 4096 Oct 29 20:13 data >> >> Any help appreciated, >> >> BTW, should I enable PHP dynamic loading? If so, how? >> >> sean > > the directories are not readable by apache ? > > mick > I was following the instructions at http://squirrelmail.org/docs/admin/admin-3.html: Prepare data and attachment directories . Both of these directories should be writable (not readable) by the web server and no one else (except you). In a Unix or Linux environment, that means that they should be owned by the root user if possible (otherwise whatever user you log in as), their group should be the same as that that the web server runs as (e.g. "www-data", "apache", "nobody", "wheel", etc.), and their permissions should be 0730 (rwx-wx---). sean -- Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World™ now supports Android™ Apps for the BlackBerry® PlayBook™. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev - squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@lists.sourceforge.net List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Re: [SM-USERS] Can't find existing Data dir on Fedora 15
On 10/30/2011 04:04 PM, sean darcy wrote: > On 10/30/2011 03:37 PM, michael crane wrote: >> >> On Sun, October 30, 2011 6:47 pm, sean darcy wrote: >>> running configtest.php: >>> >>> SquirrelMail configtest >>> >>> This script will try to check some aspects of your SquirrelMail >>> configuration and point you to errors whereever it can find them. You >>> need to go run conf.pl in the config/ directory first before you run >>> this script. >>> >>> SquirrelMail version: 1.4.22-2.fc15 >>> Config file version:1.4.0 >>> Config file last modified: 30 October 2011 15:25:44 >>> Checking PHP configuration... >>>PHP version 5.3.8 OK. >>>Running as N/A(N/A) / N/A(N/A) >>>display_errors: >>>error_reporting: 22527 >>>variables_order OK: GPCS. >>>PHP extensions OK. Dynamic loading is disabled. >>>ERROR: You have configured PHP not to allow short tags >>> (short_open_tag=off). This shouldn't be a problem with SquirrelMail or >>> any plugin coded coded according to the SquirrelMail Coding Guidelines, >>> but if you experience problems with PHP code being displayed in some of >>> the pages and changing setting to "on" solves the problem, please file a >>> bug report against the failing plugin. The correct contact information >>> is most likely to be found in the plugin documentation. >>> >>> Checking paths... >>>ERROR: Data dir (/home/vmail/squirrelmail/data/) does not exist! >>> >>> >>> BUT, >>> >>> cd /home/vmail/squirrelmail/data/ >>> [root@mailserver data]# pwd >>> /home/vmail/squirrelmail/data >>> >>> ls -l /home/vmail/squirrelmail/ >>> total 8 >>> drwx-wx---. 2 root apache 4096 Oct 29 20:14 attachment >>> drwx-wx---. 2 root apache 4096 Oct 29 20:13 data >>> >>> Any help appreciated, >>> >>> BTW, should I enable PHP dynamic loading? If so, how? >>> >>> sean >> >> the directories are not readable by apache ? >> >> mick >> > > I was following the instructions at > http://squirrelmail.org/docs/admin/admin-3.html: > > Prepare data and attachment directories > . > Both of these directories should be writable (not readable) by the web > server and no one else (except you). In a Unix or Linux environment, > that means that they should be owned by the root user if possible > (otherwise whatever user you log in as), their group should be the same > as that that the web server runs as (e.g. "www-data", "apache", > "nobody", "wheel", etc.), and their permissions should be 0730 (rwx-wx---). > > sean To belabor the obvious, this means you cannot login: SquirrelMail version 1.4.22-2.fc15 By the SquirrelMail Project Team ERROR Error opening ../data/default_pref Default preference file not found or not readable! Please contact your system administrator and report this error. sean -- Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World™ now supports Android™ Apps for the BlackBerry® PlayBook™. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev - squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@lists.sourceforge.net List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Re: [SM-USERS] Can't find existing Data dir on Fedora 15
On 10/30/2011 07:24 PM, michael crane wrote: > > On Sun, October 30, 2011 11:02 pm, sean darcy wrote: >> On 10/30/2011 04:04 PM, sean darcy wrote: >>> On 10/30/2011 03:37 PM, michael crane wrote: >>>> >>>> On Sun, October 30, 2011 6:47 pm, sean darcy wrote: >>>>> running configtest.php: >>>>> >>>>> SquirrelMail configtest >>>>> >>>>> This script will try to check some aspects of your SquirrelMail >>>>> configuration and point you to errors whereever it can find them. You >>>>> need to go run conf.pl in the config/ directory first before you run >>>>> this script. >>>>> >>>>> SquirrelMail version: 1.4.22-2.fc15 >>>>> Config file version: 1.4.0 >>>>> Config file last modified:30 October 2011 15:25:44 >>>>> Checking PHP configuration... >>>>> PHP version 5.3.8 OK. >>>>> Running as N/A(N/A) / N/A(N/A) >>>>> display_errors: >>>>> error_reporting: 22527 >>>>> variables_order OK: GPCS. >>>>> PHP extensions OK. Dynamic loading is disabled. >>>>> ERROR: You have configured PHP not to allow short tags >>>>> (short_open_tag=off). This shouldn't be a problem with SquirrelMail or >>>>> any plugin coded coded according to the SquirrelMail Coding >>>>> Guidelines, >>>>> but if you experience problems with PHP code being displayed in some >>>>> of >>>>> the pages and changing setting to "on" solves the problem, please file >>>>> a >>>>> bug report against the failing plugin. The correct contact information >>>>> is most likely to be found in the plugin documentation. >>>>> >>>>> Checking paths... >>>>> ERROR: Data dir (/home/vmail/squirrelmail/data/) does not >>>>> exist! >>>>> >>>>> >>>>> BUT, >>>>> >>>>> cd /home/vmail/squirrelmail/data/ >>>>> [root@mailserver data]# pwd >>>>> /home/vmail/squirrelmail/data >>>>> >>>>> ls -l /home/vmail/squirrelmail/ >>>>> total 8 >>>>> drwx-wx---. 2 root apache 4096 Oct 29 20:14 attachment >>>>> drwx-wx---. 2 root apache 4096 Oct 29 20:13 data >>>>> >>>>> Any help appreciated, >>>>> >>>>> BTW, should I enable PHP dynamic loading? If so, how? >>>>> >>>>> sean >>>> >>>> the directories are not readable by apache ? >>>> >>>> mick >>>> >>> >>> I was following the instructions at >>> http://squirrelmail.org/docs/admin/admin-3.html: >>> >>> Prepare data and attachment directories >>> . >>> Both of these directories should be writable (not readable) by the web >>> server and no one else (except you). In a Unix or Linux environment, >>> that means that they should be owned by the root user if possible >>> (otherwise whatever user you log in as), their group should be the same >>> as that that the web server runs as (e.g. "www-data", "apache", >>> "nobody", "wheel", etc.), and their permissions should be 0730 >>> (rwx-wx---). >>> >>> sean >> >> >> To belabor the obvious, this means you cannot login: >> >> SquirrelMail version 1.4.22-2.fc15 >> By the SquirrelMail Project Team >> ERROR >> Error opening ../data/default_pref >> Default preference file not found or not readable! >> Please contact your system administrator and report this error. >> >> sean > > sorry I can't really help not been sufficiently clued up. on my local > installation I make all the squirrelmail directories 755 apache.apache > and the files 644 apache.apache (apart from conf.pl) whether I'm supposed > to do that I don't know. > > mick > Tried it: ls -l squirrelmail/ total 8 drwxr-xr-x. 2 apache apache 4096 Oct 29 20:14 attachment drwxr-xr-x. 2 apache apache 4096 Oct 29 20:13 data No luck. Then tried 777. Still no luck! FWIW, selinux is permissive. Completely puzzzled! sean -- Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World™ now supports Android™ Apps for the BlackBerry® PlayBook™. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev - squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@lists.sourceforge.net List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Re: [SM-USERS] Can't find existing Data dir on Fedora 15
On 10/31/2011 01:21 AM, Tomas Kuliavas wrote: Thanks for the response. [root@mailserver home]# ls -ld /home/vmail/squirrelmail drwxrwxrwx. 4 apache apache 4096 Oct 29 20:14 /home/vmail/squirrelmail [root@mailserver home]# ls -ld /home/vmail drwx--. 10 vmail vmail 4096 Oct 30 01:40 /home/vmail [root@mailserver home]# ls -ld /home drwxr-xr-x. 7 root root 4096 Oct 21 19:23 /home From test.php: open_basedirno valueno value safe_mode Off Off safe_mode_exec_dir no valueno value safe_mode_gid Off Off safe_mode_include_dir no valueno value sean -- RSA® Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 - squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@lists.sourceforge.net List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Re: [SM-USERS] Can't find existing Data dir on Fedora 15
On 11/01/2011 01:13 AM, Tomas Kuliavas wrote: > sean darcy gmail.com> writes: > >> >> On 10/31/2011 01:21 AM, Tomas Kuliavas wrote: >> >> >> Thanks for the response. >> >> [root mailserver home]# ls -ld /home/vmail/squirrelmail >> drwxrwxrwx. 4 apache apache 4096 Oct 29 20:14 /home/vmail/squirrelmail >> [root mailserver home]# ls -ld /home/vmail >> drwx--. 10 vmail vmail 4096 Oct 30 01:40 /home/vmail >> [root mailserver home]# ls -ld /home >> drwxr-xr-x. 7 root root 4096 Oct 21 19:23 /home > > rwx--. 10 vmail vmail 4096 Oct 30 01:40 /home/vmail > > SquirrelMail can't read parent directory. If users can't read /home/vmail, > they can't read /home/vmail/squirrelmail. > > Attachment directory is used only for temporary data. Set it to /tmp. That > way data will be housekept according to your server's temp data housekeeping > policies. > > Set data directory to /var/local/squirrelmail or other directory outside of > /home/vmail. Data directory is not related to your mail store. It holds > application specific user preferences. > > If you want to simplify data backup procedures on your server, consider using > DB to store SquirrelMail user preferences and address books. > Thanks for the reply. I followed your suggestions, and I got closer. ls -ld /var/local/squirrelmail/ drwx-wx---. 4 root apache 4096 Nov 2 17:56 /var/local/squirrelmail/ [root@mailserver var]# ls -l /var/local/squirrelmail/ total 8 drwx-wx---. 2 root apache 4096 Nov 2 17:56 data drwx-wx---. 2 root apache 4096 Nov 2 17:56 tmp SquirrelMail configtest This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script. SquirrelMail version: 1.4.22-2.fc15 Config file version:1.4.0 Config file last modified: 02 November 2011 17:59:25 Checking paths... Data dir OK. Attachment dir OK. Plugins OK. Themes OK. Default language OK. Base URL detected as: https://nhi-webserver/webmail/src (location base autodetected) Checking outgoing mail service sendmail OK Checking IMAP service IMAP server ready (* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.) Capabilities: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN Checking internationalization (i18n) settings... gettext - Gettext functions are available. On some systems you must have appropriate system locales compiled. mbstring - Mbstring functions are available. recode - Recode functions are unavailable. iconv - Iconv functions are available. timezone - Webmail users can change their time zone settings. Checking database functions... not using database functionality. Congratulations, your SquirrelMail setup looks fine to me! BUT, on login: Error opening ../data/default_pref Default preference file not found or not readable! Please contact your system administrator and report this error. grep safe_mod /etc/php.ini | grep -v \; safe_mode = Off safe_mode_gid = Off safe_mode_include_dir = safe_mode_exec_dir = safe_mode_allowed_env_vars = PHP_ safe_mode_protected_env_vars = LD_LIBRARY_PATH sql.safe_mode = Off I then touch 'd data/default_pref. Permissions 730 did not work, 750 did. sean -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 - squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@lists.sourceforge.net List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users