Jump to content
Froxlor Forum
  • 0

Letsencrypt Fehler bei file_get_contents


Markus76

Question

Hi,

ich bekomme folgende Fehlermeldung bei Zertifikate erstellen.

saved at /var/www/froxlor/.well-known/acme-challenge/ESzpq_x-rPB_DvQxS64tFHuxWXnGQc1ucitrot3GrQ8 and should be available 
at http://bluepeercrew.us/.well-known/acme-challenge/ESzpq_x-rPB_DvQxS64tFHuxWXnGQc1ucitrot3GrQ8
[error] Could not get Let's Encrypt certificate for bluepeercrew.us: 
Please check http://bluepeercrew.us/.well-known/acme-challenge/ESzpq_x-rPB_DvQxS64tFHuxWXnGQc1ucitrot3GrQ8 - 
token not available; PHP error: {"type":2,"message":"file_get_contents
(http:\/\/bluepeercrew.us\/.well-known\/acme-challenge\/ESzpq_x-rPB_DvQxS64tFHuxWXnGQc1ucitrot3GrQ8): 
failed to open stream: HTTP request failed! 
HTTP\/1.1 404 Not Found\r\n","file":"\/var\/www\/froxlor\/lib\/classes\/ssl\/class.lescript.php","line":179}

allow_url_fopen On ist gesetzt. Sehe ich auch im Froxlor Admin panel.

Kann es sein, das die PHP.ini noch irgendwo überschrieben wird ?

 

Welche Config files bzw log files kann ich noch bereitstellen ?

 

Danke schon mal für die Hilfe...

Link to comment
Share on other sites

19 answers to this question

Recommended Posts

Wenn's hilft:

 

Bei mir gab file_get_contents() ständig 403 -- obwohl die URL (nachdem ich das Löschen der Datei aukommentiert hatte) im Browser wunderbar angezeigt wird.

 

Lange Rede, kurzer Sinn: Ich hatte ja bereits ein WordPress eingerichtet mit aktivierten iThemes Security, und das blockt einen leeren "User Agent" in der Anfrage mit Status 403.

 

Vorschlag:

[/var/www/froxlor/lib/classes/ssl]# diff -bub class.lescript.php.orig class.lescript.php
--- class.lescript.php.orig   2016-08-27 08:38:41.635551667 +0200
+++ class.lescript.php 2016-08-27 14:18:13.999215306 +0200
@@ -169,7 +169,9 @@
    $this->log("Token for $domain saved at $tokenPath and should be available at $uri");

    // simple self check
-   if ($payload !== trim(@file_get_contents($uri))) {
+   $contextoptions = array('http' => array('header' => "User-Agent: Froxlor"));
+   $context = stream_context_create($contextoptions);
+   if ($payload !== trim(@file_get_contents($uri, false, $contextcontext))) {
      $errmsg = json_encode(error_get_last());
      if ($errmsg != "null") {
        $errmsg = "; PHP error: " . $errmsg;

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...