Gentoo Archives: gentoo-user-es

From: guillermo_abate <guillermo_abate@×××××.es>
To: Gentoo USER-ES <gentoo-user-es@g.o>
Subject: [gentoo-user-es] Problema con Apache
Date: Thu, 11 Dec 2003 12:36:10
Message-Id: 1071146195.2896.8.camel@soporte
1 Hola lista:
2
3 He estado trabajando con apache+php+mysql para trabajarlo con el
4 drupal ya tengo configurado el drupal y en el /etc/conf.d/apache tengo
5 -D PHP4; pero tengo el problema que el mozilla no me interpreta el
6 codigo php solo me saca el codigo por ejemplo cuando en el mozilla pongo
7 http://localhost/phpmyadmin solo me muestra:
8
9 <?php
10 /* $Id: index.php,v 1.54 2003/07/11 09:35:05 rabus Exp $ */
11 // vim: expandtab sw=4 ts=4 sts=4:
12
13
14 /**
15 * Gets core libraries and defines some variables
16 */
17 require('./libraries/grab_globals.lib.php');
18 require('./libraries/common.lib.php');
19
20 // Gets the default font sizes
21 PMA_setFontSizes();
22
23 // Gets the host name
24 // loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
25 if (empty($HTTP_HOST)) {
26 if (!empty($_ENV) && isset($_ENV['HTTP_HOST'])) {
27 $HTTP_HOST = $_ENV['HTTP_HOST'];
28 }
29 else if (!empty($HTTP_ENV_VARS) &&
30 isset($HTTP_ENV_VARS['HTTP_HOST'])) {
31 $HTTP_HOST = $HTTP_ENV_VARS['HTTP_HOST'];
32 }
33 else if (@getenv('HTTP_HOST')) {
34 $HTTP_HOST = getenv('HTTP_HOST');
35 }
36 else {
37 $HTTP_HOST = '';
38 }
39 }
40
41
42 /**
43 * Defines the frameset
44 */
45 // loic1: If left light mode -> urldecode the db name
46 if (isset($lightm_db)) {
47 // no longer urlencoded because of html entities in the db name
48 // $db = urldecode($lightm_db);
49 $db = $lightm_db;
50 unset($lightm_db);
51 }
52 $url_query = PMA_generate_common_url(isset($db) ? $db : '');
53
54 header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
55
56 require('./libraries/relation.lib.php');
57 $cfgRelation = PMA_getRelationsParam();
58
59 if ($cfg['QueryHistoryDB'] && $cfgRelation['historywork']) {
60 PMA_purgeHistory($cfg['Server']['user']);
61 }
62
63 $phpmain_hash = md5($cfg['PmaAbsoluteUri']);
64 $phpmain_hash_js = time();
65 ?>
66 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
67 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
68 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo
69 $available_languages[$lang][2]; ?>" lang="<?php echo
70 $available_languages[$lang][2]; ?>" dir="<?php echo $text_dir; ?>">
71 <head>
72 <title>phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST;
73 ?></title>
74 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo
75 $charset; ?>" />
76 <link rel="stylesheet" type="text/css"
77 href="./css/phpmyadmin.css.php?lang=<?php echo $lang;
78 ?>&amp;js_frame=right" />
79 </head>
80
81 <?php
82 if ($cfg['QueryFrame']) {
83
84 if ($cfg['QueryFrameJS']) {
85 echo '<script type="text/javascript">' . "\n";
86 echo '<!--' . "\n";
87 echo ' document.writeln(\'<frameset cols="' .
88 $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1"
89 framespacing="0">\');' . "\n";
90 echo ' document.writeln(\' <frameset rows="*, 50"
91 framespacing="0" frameborder="0" border="0">\');' . "\n";
92 echo ' document.writeln(\' <frame src="left.php?' .
93 $url_query . '&amp;hash=' . $phpmain_hash . $phpmain_hash_js . '"
94 name="nav" frameborder="0" />\');' . "\n";
95 echo ' document.writeln(\' <frame
96 src="queryframe.php?' . $url_query . '&amp;hash=' . $phpmain_hash .
97 $phpmain_hash_js . '" name="queryframe" frameborder="0" scrolling="no"
98 />\');' . "\n";
99 echo ' document.writeln(\' </frameset>\');' . "\n";
100 echo ' document.writeln(\' <frame src="' . (empty($db) ?
101 $cfg['DefaultTabServer'] : $cfg['DefaultTabDatabase']) . '?' .
102 $url_query . '" name="phpmain' . $phpmain_hash . $phpmain_hash_js . '"
103 border="0" frameborder="0" />\');' . "\n";
104 echo ' document.writeln(\' <noframes>\');' . "\n";
105 echo ' document.writeln(\' <body
106 bgcolor="#FFFFFF">\');' . "\n";
107 echo ' document.writeln(\' <p>' . str_replace("'",
108 "\'", $strNoFrames) . '</p>\');' . "\n";
109 echo ' document.writeln(\' </body>\');' . "\n";
110 echo ' document.writeln(\' </noframes>\');' . "\n";
111 echo ' document.writeln(\'</frameset>\');' . "\n";
112 echo '//-->' . "\n";
113 echo '</script>' . "\n";
114 echo "\n";
115 echo '<noscript>' . "\n";
116 }
117
118 echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*"
119 border="1" frameborder="1" framespacing="0">' . "\n";
120 echo ' <frameset rows="*, 50" framespacing="0" frameborder="0"
121 border="0">' . "\n";
122 echo ' <frame src="left.php?' . $url_query . '&amp;hash=' .
123 $phpmain_hash . '" name="nav" frameborder="0" />' . "\n";
124 echo ' <frame src="queryframe.php?' . $url_query .
125 '&amp;hash=' . $phpmain_hash . '" name="queryframe" frameborder="0"
126 scrolling="no" />' . "\n";
127 echo ' </frameset>' . "\n";
128 echo ' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] :
129 $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' .
130 $phpmain_hash . '" frameborder="0" />' . "\n";
131
132 } else {
133
134 echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*"
135 border="1" frameborder="1" framespacing="0">' . "\n";
136 echo ' <frame src="left.php?' . $url_query . '&amp;hash=' .
137 $phpmain_hash . '" name="nav" frameborder="0" />' . "\n";
138 echo ' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] :
139 $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' .
140 $phpmain_hash . '" frameborder="1" />' . "\n";
141
142 }
143 ?>
144
145 <noframes>
146 <body bgcolor="#FFFFFF">
147 <p><?php echo $strNoFrames; ?></p>
148 </body>
149 </noframes>
150 </frameset>
151 <?php
152 if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
153 echo '</noscript>' . "\n";
154 }
155 ?>
156
157 </html>
158
159 si alguien me puede orientar en donde esta mi error se los agradeceria.
160
161
162
163 Gentoo Rules.
164
165
166 Abasme
167
168
169 --
170 gentoo-user-es@g.o mailing list

Replies

Subject Author
Re: [gentoo-user-es] Problema con Apache Marcos Garcia Marti <marcos_gm@××.com>