PHP Warning: file_get_contents


#1

Hello Piwikers,

I have a problem.

My Piwik is installed on https://sub.domain.tld (only by SSL, no access with http)
This directory is protected by .htaccess (IP limitation and login/password).
Is in .htaccess I have

Allow from X.X.X.X (server’s IP)
Allow from 127.0.0.1 (for testing)
Allow from Y.Y.Y.Y (my IP)

And login/password reference ofcourse.

My public domaine is on same machine (dedied OVH).
Apache 2, PHP 5.3.

In my index.php (www.domain.tld) I use the PHP Piwik class and I have:
$Track= new PiwikTracker(1, ‘https://login:password@sub.domain.tld’);

And in my log domain file, I have
[warn] [client Y.Y.Y.Y] mod_fcgid: stderr: PHP Warning: file_get_contents(https://...@sub.domain.tld/piwik.php?idsite=1…): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden, referer: http://www.domain.tld

I supose the problem is the certificat, because not specified.

How to put certificat file location to PiwikTracker class?

Can you help me?

Thanks