1 |
mozilla nunca podrá interpretar (ejecutar) codigo php... por eso |
2 |
inventaron el mod_php (tb se podria usar el interprete php como un cgi |
3 |
pero joer nunca lo he visto xD) |
4 |
asi q el problema lo tienes en el apache. En versiones anteriores habia |
5 |
visto las directivas AddType application/x-httpd.php .php, q si no las |
6 |
ponías el apache t servía en texto plano el código PHP. |
7 |
Pero he estado revisando, y en las ultimas versiones de PHP y APACHE2, |
8 |
en concreto (~x86): |
9 |
Calculating dependencies ...done! |
10 |
[ebuild R ] net-www/apache-2.0.48-r1 |
11 |
[ebuild R ] dev-php/mod_php-4.3.4-r1 |
12 |
|
13 |
la configuración de mod_php está en |
14 |
/etc/apache2/conf/modules.d/70mod_php o algo asi |
15 |
Pero en 4.3.3 (stable) no está ahi! está en el commonapache.conf |
16 |
|
17 |
De todas maneras, ya t digo... Por defecto funciona! asi q borra los |
18 |
archivos del etc (los del conf, los del apache y todo lo q se parezca a |
19 |
php), reemerge, modifica el /etc/conf.d/apache y yasta. DEBE funcionar |
20 |
:) |
21 |
|
22 |
|
23 |
|
24 |
El jue, 11-12-2003 a las 13:36, guillermo_abate escribió: |
25 |
> Hola lista: |
26 |
> |
27 |
> He estado trabajando con apache+php+mysql para trabajarlo con el |
28 |
> drupal ya tengo configurado el drupal y en el /etc/conf.d/apache tengo |
29 |
> -D PHP4; pero tengo el problema que el mozilla no me interpreta el |
30 |
> codigo php solo me saca el codigo por ejemplo cuando en el mozilla pongo |
31 |
> http://localhost/phpmyadmin solo me muestra: |
32 |
> |
33 |
> <?php |
34 |
> /* $Id: index.php,v 1.54 2003/07/11 09:35:05 rabus Exp $ */ |
35 |
> // vim: expandtab sw=4 ts=4 sts=4: |
36 |
> |
37 |
> |
38 |
> /** |
39 |
> * Gets core libraries and defines some variables |
40 |
> */ |
41 |
> require('./libraries/grab_globals.lib.php'); |
42 |
> require('./libraries/common.lib.php'); |
43 |
> |
44 |
> // Gets the default font sizes |
45 |
> PMA_setFontSizes(); |
46 |
> |
47 |
> // Gets the host name |
48 |
> // loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+ |
49 |
> if (empty($HTTP_HOST)) { |
50 |
> if (!empty($_ENV) && isset($_ENV['HTTP_HOST'])) { |
51 |
> $HTTP_HOST = $_ENV['HTTP_HOST']; |
52 |
> } |
53 |
> else if (!empty($HTTP_ENV_VARS) && |
54 |
> isset($HTTP_ENV_VARS['HTTP_HOST'])) { |
55 |
> $HTTP_HOST = $HTTP_ENV_VARS['HTTP_HOST']; |
56 |
> } |
57 |
> else if (@getenv('HTTP_HOST')) { |
58 |
> $HTTP_HOST = getenv('HTTP_HOST'); |
59 |
> } |
60 |
> else { |
61 |
> $HTTP_HOST = ''; |
62 |
> } |
63 |
> } |
64 |
> |
65 |
> |
66 |
> /** |
67 |
> * Defines the frameset |
68 |
> */ |
69 |
> // loic1: If left light mode -> urldecode the db name |
70 |
> if (isset($lightm_db)) { |
71 |
> // no longer urlencoded because of html entities in the db name |
72 |
> // $db = urldecode($lightm_db); |
73 |
> $db = $lightm_db; |
74 |
> unset($lightm_db); |
75 |
> } |
76 |
> $url_query = PMA_generate_common_url(isset($db) ? $db : ''); |
77 |
> |
78 |
> header('Content-Type: text/html; charset=' . $GLOBALS['charset']); |
79 |
> |
80 |
> require('./libraries/relation.lib.php'); |
81 |
> $cfgRelation = PMA_getRelationsParam(); |
82 |
> |
83 |
> if ($cfg['QueryHistoryDB'] && $cfgRelation['historywork']) { |
84 |
> PMA_purgeHistory($cfg['Server']['user']); |
85 |
> } |
86 |
> |
87 |
> $phpmain_hash = md5($cfg['PmaAbsoluteUri']); |
88 |
> $phpmain_hash_js = time(); |
89 |
> ?> |
90 |
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" |
91 |
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> |
92 |
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo |
93 |
> $available_languages[$lang][2]; ?>" lang="<?php echo |
94 |
> $available_languages[$lang][2]; ?>" dir="<?php echo $text_dir; ?>"> |
95 |
> <head> |
96 |
> <title>phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST; |
97 |
> ?></title> |
98 |
> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo |
99 |
> $charset; ?>" /> |
100 |
> <link rel="stylesheet" type="text/css" |
101 |
> href="./css/phpmyadmin.css.php?lang=<?php echo $lang; |
102 |
> ?>&js_frame=right" /> |
103 |
> </head> |
104 |
> |
105 |
> <?php |
106 |
> if ($cfg['QueryFrame']) { |
107 |
> |
108 |
> if ($cfg['QueryFrameJS']) { |
109 |
> echo '<script type="text/javascript">' . "\n"; |
110 |
> echo '<!--' . "\n"; |
111 |
> echo ' document.writeln(\'<frameset cols="' . |
112 |
> $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" |
113 |
> framespacing="0">\');' . "\n"; |
114 |
> echo ' document.writeln(\' <frameset rows="*, 50" |
115 |
> framespacing="0" frameborder="0" border="0">\');' . "\n"; |
116 |
> echo ' document.writeln(\' <frame src="left.php?' . |
117 |
> $url_query . '&hash=' . $phpmain_hash . $phpmain_hash_js . '" |
118 |
> name="nav" frameborder="0" />\');' . "\n"; |
119 |
> echo ' document.writeln(\' <frame |
120 |
> src="queryframe.php?' . $url_query . '&hash=' . $phpmain_hash . |
121 |
> $phpmain_hash_js . '" name="queryframe" frameborder="0" scrolling="no" |
122 |
> />\');' . "\n"; |
123 |
> echo ' document.writeln(\' </frameset>\');' . "\n"; |
124 |
> echo ' document.writeln(\' <frame src="' . (empty($db) ? |
125 |
> $cfg['DefaultTabServer'] : $cfg['DefaultTabDatabase']) . '?' . |
126 |
> $url_query . '" name="phpmain' . $phpmain_hash . $phpmain_hash_js . '" |
127 |
> border="0" frameborder="0" />\');' . "\n"; |
128 |
> echo ' document.writeln(\' <noframes>\');' . "\n"; |
129 |
> echo ' document.writeln(\' <body |
130 |
> bgcolor="#FFFFFF">\');' . "\n"; |
131 |
> echo ' document.writeln(\' <p>' . str_replace("'", |
132 |
> "\'", $strNoFrames) . '</p>\');' . "\n"; |
133 |
> echo ' document.writeln(\' </body>\');' . "\n"; |
134 |
> echo ' document.writeln(\' </noframes>\');' . "\n"; |
135 |
> echo ' document.writeln(\'</frameset>\');' . "\n"; |
136 |
> echo '//-->' . "\n"; |
137 |
> echo '</script>' . "\n"; |
138 |
> echo "\n"; |
139 |
> echo '<noscript>' . "\n"; |
140 |
> } |
141 |
> |
142 |
> echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" |
143 |
> border="1" frameborder="1" framespacing="0">' . "\n"; |
144 |
> echo ' <frameset rows="*, 50" framespacing="0" frameborder="0" |
145 |
> border="0">' . "\n"; |
146 |
> echo ' <frame src="left.php?' . $url_query . '&hash=' . |
147 |
> $phpmain_hash . '" name="nav" frameborder="0" />' . "\n"; |
148 |
> echo ' <frame src="queryframe.php?' . $url_query . |
149 |
> '&hash=' . $phpmain_hash . '" name="queryframe" frameborder="0" |
150 |
> scrolling="no" />' . "\n"; |
151 |
> echo ' </frameset>' . "\n"; |
152 |
> echo ' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] : |
153 |
> $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . |
154 |
> $phpmain_hash . '" frameborder="0" />' . "\n"; |
155 |
> |
156 |
> } else { |
157 |
> |
158 |
> echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" |
159 |
> border="1" frameborder="1" framespacing="0">' . "\n"; |
160 |
> echo ' <frame src="left.php?' . $url_query . '&hash=' . |
161 |
> $phpmain_hash . '" name="nav" frameborder="0" />' . "\n"; |
162 |
> echo ' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] : |
163 |
> $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . |
164 |
> $phpmain_hash . '" frameborder="1" />' . "\n"; |
165 |
> |
166 |
> } |
167 |
> ?> |
168 |
> |
169 |
> <noframes> |
170 |
> <body bgcolor="#FFFFFF"> |
171 |
> <p><?php echo $strNoFrames; ?></p> |
172 |
> </body> |
173 |
> </noframes> |
174 |
> </frameset> |
175 |
> <?php |
176 |
> if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { |
177 |
> echo '</noscript>' . "\n"; |
178 |
> } |
179 |
> ?> |
180 |
> |
181 |
> </html> |
182 |
> |
183 |
> si alguien me puede orientar en donde esta mi error se los agradeceria. |
184 |
> |
185 |
> |
186 |
> |
187 |
> Gentoo Rules. |
188 |
> |
189 |
> |
190 |
> Abasme |
191 |
> |
192 |
> |
193 |
> -- |
194 |
> gentoo-user-es@g.o mailing list |
195 |
> |
196 |
> |
197 |
|
198 |
|
199 |
-- |
200 |
gentoo-user-es@g.o mailing list |