XAMPP Status sceren

Problems with the Linux version of XAMPP, questions, comments, and anything related.

XAMPP Status sceren

Postby n17lbl » 03. August 2013 12:12

I have seen on the the web lots of people having problems with the XAMPP status screen either showing all deactivated of just 1 or 2 entries deactivated. I have noticed this on the last 3 versions of XAMPP 1.8.1 - 1.8.3 beta.
I have found a possible reason for it and have replicated it many times. It appear to be that php.ini has "allow_url_fopen" disabled (off).
I think I may have fixed this by modifying the status.php page that gets installed when XAMPP is installed
I replaced :
Code: Select all
   $a=@file("$b/php.php");
   $php=$a[0];
   $a=@file("$b/mysql.php");
   $mysql=$a[0];
   $a=@file("$b/cgi.cgi");
   $cgi=$a[0];
   $a=@file("$b/ssi.shtml");
   $ssi=$a[0];
   $a=@file("$b/perl.pl");
   $perl=$a[0];

With this:
Code: Select all
function get_info($info)
   {
      $ch = curl_init();
      curl_setopt($ch,CURLOPT_URL,$info);
      curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
      $fp = curl_exec($ch);
      curl_close($ch);
      return $fp;
   }
   $php = get_info("$b/php.php");
   $mysql = get_info("$b/mysql.php");
   $cgi = get_info("$b/cgi.cgi");
   $ssi = get_info("$b/ssi.shtml");
   $perl = get_info("$b/perl.pl");

Hope this helps all the users I have seen pulling their hair out.
n17lbl
 
Posts: 1
Joined: 03. August 2013 11:53
Operating System: Linux v13.04

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 34 guests