Your message dated Fri, 13 Jan 2017 13:05:30 +0000
with message-id <e1cs1xu-0009dr...@fasolo.debian.org>
and subject line Bug#841781: Removed package(s) from unstable
has caused the Debian Bug report #447764,
regarding libapache2-mod-php5: PHP5 should provide a LAMP test page
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
447764: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447764
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libapache2-mod-php5
Version: 5.2.4-1
Severity: wishlist

To make it easier for users to see that their LAMP installation is working,
PHP5 should provide a LAMP test page.

Please consider the attached diff for creating a /var/www/lamp-test/index.php
that tests PHP, MySQL and PostgreSQL.
diff -u php5-5.2.4/debian/libapache2-mod-php5.dirs php5-5.2.4/debian/libapache2-mod-php5.dirs
--- php5-5.2.4/debian/libapache2-mod-php5.dirs
+++ php5-5.2.4/debian/libapache2-mod-php5.dirs
@@ -3,0 +4 @@
+/var/www/lamp-test
diff -u php5-5.2.4/debian/changelog php5-5.2.4/debian/changelog
--- php5-5.2.4/debian/changelog
+++ php5-5.2.4/debian/changelog
@@ -1,3 +1,11 @@
+php5 (5.2.4-2) unstable; urgency=low
+
+  * added debian/lamp-test.php
+  * debian/libapache2-mod-php5.dirs: added /var/www/lamp-test
+  * debian/rules: install lamp-test.php to /var/www/lamp-test/index.php
+
+ -- Jamie Strandboge <ja...@strandboge.com>  Tue, 23 Oct 2007 12:41:34 -0400
+
 php5 (5.2.4-1) unstable; urgency=low
 
   * New upstream release.
diff -u php5-5.2.4/debian/rules php5-5.2.4/debian/rules
--- php5-5.2.4/debian/rules
+++ php5-5.2.4/debian/rules
@@ -321,6 +321,8 @@
 		debian/libapache2-mod-php5/etc/apache2/mods-available/php5.load
 	cp debian/libapache2-mod-php5.conf \
 		debian/libapache2-mod-php5/etc/apache2/mods-available/php5.conf
+	cp debian/lamp-test.php \
+		debian/libapache2-mod-php5/var/www/lamp-test/index.php
 
 	# sanitize php.ini file
 	cat php.ini-dist | tr "\t" " " > debian/php5-common/usr/share/php5/php.ini-dist
only in patch2:
unchanged:
--- php5-5.2.4.orig/debian/lamp-test.php
+++ php5-5.2.4/debian/lamp-test.php
@@ -0,0 +1,107 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html> <head> <title>LAMP Server Test Page</title> </head> <body> <h2>LAMP Server Test Page</h2> <?php ini_set("display_errors", "Off"); $errors = array(); ?> <table CELLPADDING="0" CELLSPACING="0" WIDTH="50%"> <tr> <td><h3>Component</h3></td> <td><h3>Status</h3></td> <tr> <!-- If see this page in a browser, then Apache must be working --> <td>Apache</td><td>Works</td> </tr> <tr> <!-- 
+
+
+
+
+
+
+ ###################################################################################
+ #                                                                                 #
+ #    If you were prompted to download this page as lamp-test.php and/or           #
+ #    are viewing this as raw HTML in your browser, then php is not properly       #
+ #    installed.                                                                   #
+ #                                                                                 #
+ #    To install, do (as root):                                                    #
+ #    apt-get install libapache2-mod-php5                                          #
+ #    a2enmod php5                                                                 #
+ #    /etc/init.d/apache2 force-reload                                             #
+ #                                                                                 #
+ ###################################################################################
+
+
+
+
+
+
+
+
+
+
+
+
+ -->
+
+ <td>PHP</td><td><!--
+<? /* > -->Not working<!-- Comment declaration
+
+*/  print("-"."-".">Works<!"."-"."-"); ?>--></td>
+</tr>
+
+<tr>
+ <td>Mysql (localhost)</td><td><!--
+  <?php /* -->Not working<!-- */
+	print("-"."->");
+	if (!extension_loaded("mysql")) {
+		array_push($errors, "Install php5-mysql, restart Apache and try again");
+		echo "Not Working<sup>", count($errors), "</sup>";
+	} else {
+		$conn = mysql_connect();
+		$errmsg = mysql_error();
+		$errno = mysql_errno();
+		// see http://dev.mysql.com/doc/refman/5.0/en/error-messages-server.html
+		if ($errno == 0 || $errno == 1045) {
+			echo "Works";
+		} else {
+			array_push($errors, $errmsg);
+			echo "Not Working<sup>", count($errors), "</sup>";
+		}
+	}
+	print("<!-"."-");
+?>
+-->
+ </td>
+</tr>
+<tr>
+ <td>PostgreSQL (localhost)</td>
+ <td><!--
+  <?php /* -->Not working<!-- */
+	print("-"."->");
+
+	// use register_shutdown_function, as a way to work around FATAL Undefined functions
+	if (!extension_loaded("pgsql")) {
+		array_push($errors, "Install php5-pgsql, restart Apache and try again");
+		echo "Not Working<sup>", count($errors), "</sup>";
+	} else {
+		$conn = pg_connect("hostaddr=127.0.0.1 user=www-data password=foobar");
+		$err = error_get_last();
+		if ($conn || ereg("password authentication failed", $err[message])) {
+			echo "Works";
+		} else {
+			array_push($errors, $err[message]);
+			echo "Not Working<sup>", count($errors), "</sup>";
+		}
+	}
+	print("<!-"."-");
+?>
+-->
+ </td>
+</tr>
+</table>
+<br>
+<font size="-1"><!-- 
+<?php 
+	print("-"."->");
+
+	$i = 1;
+	foreach($errors as $err) {
+		echo "[$i] $err<br>";
+		$i++;
+	}
+	print("<!-"."-");
+?> --> 
+</font>
+
+</body>
+</html>
+

--- End Message ---
--- Begin Message ---
Version: 5.6.26+dfsg-1+rm

Dear submitter,

as the package php5 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/841781

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmas...@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to