summaryrefslogtreecommitdiff
blob: ad62f8021ce70d99e056ea62917955d50151cb32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
--- WebMO.install.orig/scripts/diagnose.pl	2005-11-21 07:40:28.000000000 -0800
+++ WebMO.install/scripts/diagnose.pl	2005-12-03 18:52:58.000000000 -0800
@@ -80,26 +80,26 @@
 print handle "\n";
 
 # Check home directory
-if ($ENV{'HOME'} ne "")
-{
-	print handle "<H3>Checking Home Directory</H3>";
-	my $stat_info = stat($ENV{'HOME'});
-	my $leng = length($ENV{'HOME'});
-
-	print handle "Checking home directory:";
-	if (($stat_info->mode & 00001) != 1)
-	{
-		print handle "&nbsp;" x (59 - $leng);
-		print handle "<FONT COLOR=\"red\"><B>Failed</B></FONT>\n";
-		printf handle "<B>Home directory must be world-executable if WebMO is installed there</B>\n"
-	}
-	else
-	{
-		print handle "&nbsp;" x (59 - $leng);
-		print handle "<FONT COLOR=\"green\"><B>Passed</B></FONT>\n";
-	}
-	print handle "\n";
-}
+#if ($ENV{'HOME'} ne "")
+#{
+#	print handle "<H3>Checking Home Directory</H3>";
+#	my $stat_info = stat($ENV{'HOME'});
+#	my $leng = length($ENV{'HOME'});
+#
+#	print handle "Checking home directory:";
+#	if (($stat_info->mode & 00001) != 1)
+#	{
+#		print handle "&nbsp;" x (59 - $leng);
+#		print handle "<FONT COLOR=\"red\"><B>Failed</B></FONT>\n";
+#		printf handle "<B>Home directory must be world-executable if WebMO is installed there</B>\n"
+#	}
+#	else
+#	{
+#		print handle "&nbsp;" x (59 - $leng);
+#		print handle "<FONT COLOR=\"green\"><B>Passed</B></FONT>\n";
+#	}
+#	print handle "\n";
+#}
 
 # Check permissions
 print handle "<H3>Checking CGI Directory</H3>";
@@ -345,36 +345,36 @@
 	}
 	
 	# check for AddHandler for cgi scripts	
-	print  handle ($text = "Checking for AddHandler cgi-scripts enabled: ");
-	$len = length($text);
-	@results = grep(/AddHandler cgi\-script/, @contents);
-	if ($results[0] =~ /^#/)
-	{
-		print handle "&nbsp;" x (70 - $len);
-		print handle "<FONT COLOR=\"red\"><B>Failed</B></FONT>\n";
-		print handle "<B>Uncomment the line 'AddHandle cgi-scripts .cgi'</B>\n";
-	}
-	else
-	{
-		print handle "&nbsp;" x (70 - $len);
-		print handle "<FONT COLOR=\"green\"><B>Passed</B></FONT>\n";
-	}
+#	print  handle ($text = "Checking for AddHandler cgi-scripts enabled: ");
+#	$len = length($text);
+#	@results = grep(/AddHandler cgi\-script/, @contents);
+#	if ($results[0] =~ /^#/)
+#	{
+#		print handle "&nbsp;" x (70 - $len);
+#		print handle "<FONT COLOR=\"red\"><B>Failed</B></FONT>\n";
+#		print handle "<B>Uncomment the line 'AddHandle cgi-scripts .cgi'</B>\n";
+#	}
+#	else
+#	{
+#		print handle "&nbsp;" x (70 - $len);
+#		print handle "<FONT COLOR=\"green\"><B>Passed</B></FONT>\n";
+#	}
 	
 	# check for user directories
-	print  handle ($text = "Checking for UserDir enabled: ");
-	$len = length($text);
-	@results = grep(/UserDir /, @contents);
-	if ($results[0] =~ /^#/)
-	{
-		print handle "&nbsp;" x (70 - $len);
-		print handle "<FONT COLOR=\"red\"><B>Failed</B></FONT>\n";
-		print handle "<B>Uncomment the line 'UserDir public_html'</B>\n";
-	}
-	else
-	{
-		print handle "&nbsp;" x (70 - $len);
-		print handle "<FONT COLOR=\"green\"><B>Passed</B></FONT>\n";
-	}
+#	print  handle ($text = "Checking for UserDir enabled: ");
+#	$len = length($text);
+#	@results = grep(/UserDir /, @contents);
+#	if ($results[0] =~ /^#/)
+#	{
+#		print handle "&nbsp;" x (70 - $len);
+#		print handle "<FONT COLOR=\"red\"><B>Failed</B></FONT>\n";
+#		print handle "<B>Uncomment the line 'UserDir public_html'</B>\n";
+#	}
+#	else
+#	{
+#		print handle "&nbsp;" x (70 - $len);
+#		print handle "<FONT COLOR=\"green\"><B>Passed</B></FONT>\n";
+#	}
 	
 	# check for suexec
 	print  handle ($text = "Checking for suExec enabled: ");