🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.php
Article #115

Re: iceweasel me quiere guardar un index.php, konqueror no.

#115
From: "Álvaro G. Vicario"
Date: Tue, 01 Sep 2009 06:24
66 lines
4584 bytes
angel escribió:
> "Álvaro G. Vicario" wrote:
>>> Estoy haciendo una aplicación web con php.
>>> Tengo instalado en mi ordenador apache2 y php. También el modulo de php
>>> para apache2.
>>> Para probar mi aplicación llamo a un archivo "index.php", i dependiendo
>>> de como lo llame y con qué navegador, suceden diferentes cosas:
>>>
>>> Con iceweasel y esta url: http://laipdemimaquina/index.php ->todo
>>> correcto Con konqueror y esta url: http://laipdemimaquina/index.php
>>> ->todo correcto
>>> Con konqueror y esta url: http://localhost/index.php       ->todo
>>> correcto Con iceweasel y esta url: http://localhost/index.php -> aquí
>>> empieza a liarse.
>>>
>>> Con esta última se empeña en guardarme un archivo "*.phtml.part" que no
>>> existe en mi disco. O sea, que se inventa un nombre para guardar algo.
>>> Luego resulta que bajo ese nombre guarda el archivo php que debería
>>> ejecutarse.
>>>
>>> ¿A alguien le ha pasado algo parecido?
>>> ¡La configuración de apache2 tiene que estar bién o no funcionaria con
>>> konqueror!
>>>
>>> Uso Apache/2.2.12 y php5 en debian testing.
>>> En mi /etc/hosts tengo:
>>> 127.0.0.1       localhost
>>> 192.168.1.2     debian
>> Estaría bien verificar qué encabezados HTTP envía el servidor.
>>
>>
>  angel@debian:~$ curl -I localhost/rx
> HTTP/1.1 301 Moved Permanently
> Date: Mon, 31 Aug 2009 13:47:30 GMT
> Server: Apache/2.2.12 (Debian)
> Location: http://localhost/rx/
> Vary: Accept-Encoding
> Content-Type: text/html; charset=iso-8859-1
> 
> angel@debian:~$ curl -I localhost/rx/index.php
> HTTP/1.1 200 OK
> Date: Mon, 31 Aug 2009 13:47:51 GMT
> Server: Apache/2.2.12 (Debian)
> X-Powered-By: PHP/5.2.10-2
> Set-Cookie: PHPSESSID=82246a74932c735ba52bcf56fd8d67cb; path=/
> Expires: Thu, 19 Nov 1981 08:52:00 GMT
> Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
> check=0
> Pragma: no-cache
> Vary: Accept-Encoding
> Content-Type: text/html

Parece que hay una redirección, aunque no veo nada raro en ella.

Cuando dices que "guarda el archivo php que debería ejecutarse", ¿te 
refieres a que se muestra el código fuente PHP en lugar del resultado? 
Porque eso estaría indicando que no PHP no está bien configurado con 
Apache... Pero tampoco te sé decir más.



-- 
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Technical Details
Message-ID: <h7iem4$h0l$1@news.eternal-september.org>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder.news-service.com!188.40.43.213.MISMATCH!feeder.eternal-september.org!eternal-september.org!not-for-mail
References: <h7ehn6$ks1$1@cagarruta.escomposlinux.org> <h7fpdg$oth$1@news.eternal-september.org> <h7gkoi$b5n$1@cagarruta.escomposlinux.org>

Show Full Headers
Complete Article Headers
X-Google-Thread: f9da90502c,a951b282c62e19aa
X-Google-Attributes: gidf9da90502c,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: SPANISH,UTF8
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder.news-service.com!188.40.43.213.MISMATCH!feeder.eternal-september.org!eternal-september.org!not-for-mail
From: "Álvaro G. Vicario"
 <alvaro.NOSPAMTHANX@demogracia.com.invalid>
Newsgroups: es.comp.lenguajes.php
Subject: Re: iceweasel me quiere guardar un index.php, konqueror no.
Date: Tue, 01 Sep 2009 08:24:02 +0200
Organization: A noiseless patient Spider
Lines: 66
Message-ID: <h7iem4$h0l$1@news.eternal-september.org>
References: <h7ehn6$ks1$1@cagarruta.escomposlinux.org> <h7fpdg$oth$1@news.eternal-september.org> <h7gkoi$b5n$1@cagarruta.escomposlinux.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.eternal-september.org U2FsdGVkX1/HwPpMlF4wetZs5KoIe+c/TtkarYe4wmjl6u0uMetQKyQGchNEnbyIjMT00DqLVvHhKL+GJsW9Z17I1ph3wWHTIZM/RF80SETS+0bYuuWpY3ftarxfq66HkngQc3PsDGE=
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Tue, 1 Sep 2009 06:24:04 +0000 (UTC)
In-Reply-To: <h7gkoi$b5n$1@cagarruta.escomposlinux.org>
X-Auth-Sender: U2FsdGVkX1+SMOlpFw+4fEHKJQlOmkG5bqA8hujCiUw=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAABoElEQVR4nO1ZXZPCMAgkN/3/
 fzk+VHORAFk+rtaZ40k7ZtkCC7S23jvdyX4+TYDb7QgdsWOttfG5NunxCPXe/6L+bpeyOKE5a4XW
 vGEHeYSziRJaebCDBlEXuT2h4Slw04GzFqEMlRUHBFGLuorNQACLz2qMtW0mFaFaSbvQvqcxfiRf
 dEGEvNkXijpQQPYRV7AFQr130QFCNJ9oVfatNa1/IF7DbUzt1OAKVh42mRAYFUZajIprbtCaMg10
 xV2vsBSPpLvsTfbDBwMaX1nkRNLrz1z2GyExtozi6VWToXYbBFcksZRpEIhk8H3NJnfY57VSPa8j
 VWKrWCjNkQtDR7bExApzrIjvLixCW8UileTldGi4pM+Q1XdM4aKj/bRvL0OYZexZVXM3w4dU+UP0
 gHXsQ2K/NtADbGieZZpGAtoBi13s+7wYvcJB+sLW5uN8uGYGtQFFsBIveurAo5UlNA/dPJsCQqSM
 DsYmvqBlOGlxyj51hC25ep92RVG7sraRYvKlTPELKwYK4hp7dw0h0Q1iwaBm3hwmfcvg//8GbewB
 sahWWAekCkUAAAAASUVORK5CYII=
Cancel-Lock: sha1:yD9vg2xBmiNPbul0HSsVtcvDaLY=
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)