Cannot access LOGFILEDIR (debian 6, plesk 10.4.4, z-push

Trouble installing? Post questions and find answers.

Cannot access LOGFILEDIR (debian 6, plesk 10.4.4, z-push

Postby jabo10000 » Tue Apr 10, 2012 11:33 pm

Dear all,

I have a strange behaviour in my z-push installation. Environment is:

    - Debian 6.0 (squeeze) 64 bit
    - Plesk Panel 10.4.4
    - Zarafa v7.06
    - z-push 2.0beta-1185

I copied the extracted files into /var/www/vhosts/domain.com/httpdocs/z-push. I created the dirs /var/log/z-push and /var/lib/z-push and assigned the necessary rights:

triton125:/var/log# ls -la
insgesamt 3529796
drwxr-xr-x 18 root root 4096 10. Apr 23:13 .
drwxr-xr-x 19 root root 4096 21. Mär 01:13 ..
...
drwxrwxrwx 2 www-data www-data 4096 10. Apr 23:13 z-push

I updated the vhost.conf and the vhost_ssl.conf according to the documentation (Alias and php parameters). When I point the browser to http://domain.com/Microsoft-Server-ActiveSync I get the following exception:

Code: Select all
Z-Push - Open Source ActiveSync
Version 2.0beta2-1185
FatalMisconfigurationException

The configured LOGFILEDIR does not exist or can not be accessed.

Trace:
Array
(
    [0] => Array
        (
            [file] => /var/www/vhosts/domain.com/httpdocs/z-push/index.php
            [line] => 118
            [function] => CheckConfig
            [class] => ZPush
            [type] => ::
            [args] => Array
                (
                )

        )

)


I patched the exception output so that I can see which LOGFILEDIR. The result was as expected: /var/log/z-push.

Maybe that's a pretty newbie error. It seems that I'm blind. Anyone to help?

Thanks in advance
jabo10000
jabo10000
 
Posts: 5
Joined: Mon Dec 26, 2011 6:12 pm

Re: Cannot access LOGFILEDIR (debian 6, plesk 10.4.4, z-push

Postby mku » Wed Apr 11, 2012 3:06 am

Hi jabo10000,

are there some restrictions in PHP configuration so that /var/log/z-push can't be accessed by apache? You could try setting the log folder inside the z-push directory to test if works.

Greets, Manfred
Try using forum search as well!
Please do not PN me asking for support. Use the forum instead. Thank you.
mku
Site Admin
 
Posts: 1239
Joined: Thu Sep 20, 2007 4:48 pm
Location: Belo Horizonte / Brazil

Re: Cannot access LOGFILEDIR (debian 6, plesk 10.4.4, z-push

Postby jabo10000 » Wed Apr 11, 2012 8:02 am

Hi Manfred,
I've tried this as well, but with the same effect.

Kind regards,
Jakob
jabo10000
 
Posts: 5
Joined: Mon Dec 26, 2011 6:12 pm

Re: Cannot access LOGFILEDIR (debian 6, plesk 10.4.4, z-push

Postby mku » Wed Apr 11, 2012 2:26 pm

Hi Jakob,

have you also checked the php settings for restrictions? If some of the parent folders of the log file is not accessible for apache it will result in this error.

Is there anything in apache logs?

Greets, Manfred
Try using forum search as well!
Please do not PN me asking for support. Use the forum instead. Thank you.
mku
Site Admin
 
Posts: 1239
Joined: Thu Sep 20, 2007 4:48 pm
Location: Belo Horizonte / Brazil

Re: Cannot access LOGFILEDIR (debian 6, plesk 10.4.4, z-push

Postby jabo10000 » Wed Apr 11, 2012 9:37 pm

Hi Manfred,

thanks for trying to help me. I can't find a corresponding log entry in /var/apache2/*, in /var/www/vhosts/domain.com/statistics/logs.

My vhost_ssl.conf looks like:
Code: Select all
<Directory /var/www/vhosts/domain.com/httpdocs>
   <IfModule sapi_apache2.c>
      php_admin_flag engine on
      php_admin_flag safe_mode off
      php_flag register_globals off
      php_flag magic_quotes_gpc off
      php_flag magic_quotes_runtime off
      php_flag short_open_tag on
      php_admin_value open_basedir "/var/www/vhosts/domain.com/httpdocs:/tmp:/usr/share/php"
   </IfModule>
   <IfModule mod_php5.c>
      php_admin_flag engine on
      php_admin_flag safe_mode off
      php_flag register_globals off
      php_flag magic_quotes_gpc off
      php_flag magic_quotes_runtime off
      php_flag short_open_tag on
      php_admin_value open_basedir "/var/www/vhosts/domain.com/httpdocs:/tmp:/usr/share/php"
   </IfModule>
   SSLRequireSSL
   Options -Includes -ExecCGI
</Directory>



Is there something wrong? Any other hints? Which php-flags are relevant?

Thanks
Jakob
jabo10000
 
Posts: 5
Joined: Mon Dec 26, 2011 6:12 pm

Re: Cannot access LOGFILEDIR (debian 6, plesk 10.4.4, z-push

Postby mku » Wed Apr 11, 2012 10:55 pm

Hi Jakob,

the logs are usually in /var/log/apache2. Have you also looked in php.ini if there are any restrictions set? I don't know if plesk itself makes some restrictions, you could ask at plesk forum or support.

Greets, Manfred
Try using forum search as well!
Please do not PN me asking for support. Use the forum instead. Thank you.
mku
Site Admin
 
Posts: 1239
Joined: Thu Sep 20, 2007 4:48 pm
Location: Belo Horizonte / Brazil

Re: Cannot access LOGFILEDIR (debian 6, plesk 10.4.4, z-push

Postby jabo10000 » Sun Apr 15, 2012 5:28 pm

Hi Manfred,

sure /var/log/apache2 is the correct log directory. Sorry for my mistyping. I have a complete phpinfo-dump. All recommended settings for z-push are correct. Which restrictions could be relevant?

Kind regards,
Jakob
jabo10000
 
Posts: 5
Joined: Mon Dec 26, 2011 6:12 pm

Re: Cannot access LOGFILEDIR (debian 6, plesk 10.4.4, z-push

Postby mku » Mon Apr 16, 2012 4:23 pm

Hi Jakob,

the restriction preventing the apache user access certain folders. Also on my test system the z-push log folder is not completely writeable:

drwxr-xr-x 2 www-data www-data 4096 2012-03-29 16:40 z-push


Greets, Manfred
Try using forum search as well!
Please do not PN me asking for support. Use the forum instead. Thank you.
mku
Site Admin
 
Posts: 1239
Joined: Thu Sep 20, 2007 4:48 pm
Location: Belo Horizonte / Brazil


Return to Bugs

Who is online

Users browsing this forum: Bing [Bot] and 0 guests

cron