cvs: phpweb / mirror-info.php mirroring.php /manual mirror-info.php
| From: | Gabor Hojtsy | Date: | Tue, 12 Sep 2006 11:36:23 +0000 |
| Subject: | cvs: phpweb / mirror-info.php mirroring.php /manual mirror-info.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-32525@lists.php.net to get a copy of this message | ||
goba Tue Sep 12 11:36:23 2006 UTC
Removed files:
/phpweb/manual mirror-info.php
Modified files:
/phpweb mirror-info.php mirroring.php
Log:
lifted up the requirement to use PHP as an Apache module for the mirror (this was requested way
back in time)
http://cvs.php.net/viewvc.cgi/phpweb/mirror-info.php?r1=1.19&r2=1.20&diff_format=u
Index: phpweb/mirror-info.php
diff -u phpweb/mirror-info.php:1.19 phpweb/mirror-info.php:1.20
--- phpweb/mirror-info.php:1.19 Sat Aug 20 12:48:41 2005
+++ phpweb/mirror-info.php Tue Sep 12 11:36:23 2006
@@ -1 +1,25 @@
-<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/manual/mirror-info.php';
+<?php
+// $Id: mirror-info.php,v 1.20 2006/09/12 11:36:23 goba Exp $
+
+// Define $MYSITE and $LAST_UPDATED variables
+include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
+
+// Text/plain content type for better readability in browsers
+header("Content-type: text/plain; charset=utf-8");
+
+// Provide information on local stats setup
+$mirror_stats = (int) (isset($_SERVER['MIRROR_STATS']) &&
$_SERVER['MIRROR_STATS'] == '1');
+
+// Check for an existing exe file (identifies rsync setup problems)
+$exefile = (int) file_exists($_SERVER['DOCUMENT_ROOT'] .
'/distributions/php-5.1.5-installer.exe');
+
+echo join('|', array(
+ $MYSITE, // 0: ServerName problems
+ phpversion(), // 1: PHP version overview
+ $LAST_UPDATED, // 2: Update problems
+ 0, // 3: Search support is not tracked anymore
+ $mirror_stats, // 4: Optional local stats support
+ default_language(), // 5: Mirror language
+ 'manual-noalias', // 6: /manual alias check is done elsewhere now
+ $exefile // 7: Rsync setup problems
+));
http://cvs.php.net/viewvc.cgi/phpweb/mirroring.php?r1=1.50&r2=1.51&diff_format=u
Index: phpweb/mirroring.php
diff -u phpweb/mirroring.php:1.50 phpweb/mirroring.php:1.51
--- phpweb/mirroring.php:1.50 Tue Sep 12 09:49:14 2006
+++ phpweb/mirroring.php Tue Sep 12 11:36:23 2006
@@ -1,5 +1,5 @@
<?php
-// $Id: mirroring.php,v 1.50 2006/09/12 09:49:14 goba Exp $
+// $Id: mirroring.php,v 1.51 2006/09/12 11:36:23 goba Exp $
$_SERVER['BASE_PAGE'] = 'mirroring.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
$SIDEBAR_DATA = '
@@ -40,8 +40,10 @@
usage. A reasonable estimate for an often visited mirror as of September
2006 is 12GB/day, based on access data from uk.php.net. The PHP website
requires at least PHP 4.3.x, but PHP 5 is preferred. Set it up as an Apache
- module with the settings <a href="#settings">outlined below</a>. The size
- of the full website is approximately 1.7 gigabyte.
+ module with the settings <a href="#settings">outlined below</a>, or in
+ any other Apache connected way (CGI, FastCGI, etc), considering the requested
+ PHP settings outlined below in the Apache vhost instructions. The size of
+ the full website is approximately 1.7 gigabyte.
</p>
<a name="rule"></a>