From rikjoh@norweb.se Wed Mar 23 08:45:43 2005
From: Rikard Johnels
To: users@lists.opensuse.org
Subject: Trouble accessing .php files
Date: Wed, 23 Mar 2005 09:45:29 +0100
Message-ID: <200503230945.30534.rikjoh@norweb.se>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2290546432187945995=="
--===============2290546432187945995==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Hi all!
I am trying top set up a "LAMP" server.
It seems to be up and running, but if i try to access it on a different
computer via konqueror or Firefox (http:mysite/page/test.php) i get a popup
asking:
Open 'http://talen.rikjo...rs/rikjoh/page.php'?
Type: application/x-httpd-php
It doesnt seem to recognize the phpscript as php...
page.php
PHP Test
Hello World
'; ?>
What am i doing wrong? Where shall i look?
--
/Rikard
" Sharing knowledge is the most fundamental act of friendship.
Because it is a way you can give something without loosing something."
-R. Stallman
---------------------------------------------------------------
Rikard Johnels email : rikjoh(a)norweb.se
Web : http://www.rikjoh.com/users/rikjoh
Mob : +46 735 05 51 01
PGP : 0x461CEE56
---------------------------------------------------------------
--===============2290546432187945995==--
From cyruspy@gmail.com Wed Mar 23 08:55:43 2005
From: Ciro Iriarte
To: users@lists.opensuse.org
Subject: Re: [SLE] Trouble accessing .php files
Date: Wed, 23 Mar 2005 04:55:38 -0400
Message-ID:
In-Reply-To: <200503230945.30534.rikjoh@norweb.se>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6376833624612742451=="
--===============6376833624612742451==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
On Wed, 23 Mar 2005 09:45:29 +0100, Rikard Johnels wrote:
> Hi all!
>
> I am trying top set up a "LAMP" server.
> It seems to be up and running, but if i try to access it on a different
> computer via konqueror or Firefox (http:mysite/page/test.php) i get a popup
> asking:
>
> Open 'http://talen.rikjo...rs/rikjoh/page.php'?
> Type: application/x-httpd-php
>
> It doesnt seem to recognize the phpscript as php...
>
> page.php
>
>
> PHP Test
>
>
> Hello World'; ?>
>
>
>
> What am i doing wrong? Where shall i look?
>
> --
>
> /Rikard
>
> " Sharing knowledge is the most fundamental act of friendship.
> Because it is a way you can give something without loosing something."
> -R. Stallman
>
> ---------------------------------------------------------------
> Rikard Johnels email : rikjoh(a)norweb.se
> Web : http://www.rikjoh.com/users/rikjoh
> Mob : +46 735 05 51 01
> PGP : 0x461CEE56
> ---------------------------------------------------------------
>
> --
> Check the headers for your unsubscription address
> For additional commands send e-mail to suse-linux-e-help(a)suse.com
> Also check the archives at http://lists.suse.com
> Please read the FAQs: suse-linux-e-faq(a)suse.com
>
>
rpm -q apache2-mod_php4 ?
CI.-
--===============6376833624612742451==--
From per@computer.org Wed Mar 23 10:54:45 2005
From: Per Jessen
To: users@lists.opensuse.org
Subject: Re: [SLE] Trouble accessing .php files
Date: Wed, 23 Mar 2005 11:54:13 +0100
Message-ID:
In-Reply-To: <200503230945.30534.rikjoh@norweb.se>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============8979083379176540082=="
--===============8979083379176540082==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Rikard Johnels wrote:
> Hi all!
>=20
> I am trying top set up a "LAMP" server.
> It seems to be up and running, but if i try to access it on a different
> computer via konqueror or Firefox (http:mysite/page/test.php) i get a popup
> asking:
>=20
> Open 'http://talen.rikjo...rs/rikjoh/page.php'?
> Type: application/x-httpd-php
It is your apache server that is serving the php script as "application/x-htt=
pd-php",
when it should (presumably) have been "text/html".=20
If you're scripts are being properly executed, maybe you need this in php.ini=
:=20
default_mimetype =3D "text/html"
Do you have php loaded?=20
check your /server-info page.
/Per Jessen, Z=C3=BCrich
--=20
http://www.spamchek.com/freetrial - sign up for your free 30-day trial now!
--===============8979083379176540082==--
From rikjoh@norweb.se Wed Mar 23 16:15:16 2005
From: Rikard Johnels
To: users@lists.opensuse.org
Subject: Re: [SLE] Trouble accessing .php files
Date: Wed, 23 Mar 2005 17:14:48 +0100
Message-ID: <200503231714.49350.rikjoh@norweb.se>
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3808389538028590170=="
--===============3808389538028590170==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
On Wednesday 23 March 2005 09.55, Ciro Iriarte wrote:
> On Wed, 23 Mar 2005 09:45:29 +0100, Rikard Johnels wro=
te:
> > Hi all!
> >
> > I am trying top set up a "LAMP" server.
> > It seems to be up and running, but if i try to access it on a different
> > computer via konqueror or Firefox (http:mysite/page/test.php) i get a
> > popup asking:
> >
> > Open 'http://talen.rikjo...rs/rikjoh/page.php'?
> > Type: application/x-httpd-php
> >
> > It doesnt seem to recognize the phpscript as php...
> >
> > page.php
> >
> >
> > PHP Test
> >
> >
> > Hello World'; ?>
> >
> >
> >
> > What am i doing wrong? Where shall i look?
> >
> > --
> >
> > /Rikard
> >
> > " Sharing knowledge is the most fundamental act of friendship.
> > Because it is a way you can give something without loosing something."
> > -R. Stallman
> >
> > ---------------------------------------------------------------
> > Rikard Johnels email : rikjoh(a)norweb.se
> > Web : http://www.rikjoh.com/users/rikjoh
> > Mob : +46 735 05 51 01
> > PGP : 0x461CEE56
> > ---------------------------------------------------------------
> >
> > --
> > Check the headers for your unsubscription address
> > For additional commands send e-mail to suse-linux-e-help(a)suse.com
> > Also check the archives at http://lists.suse.com
> > Please read the FAQs: suse-linux-e-faq(a)suse.com
>
> rpm -q apache2-mod_php4 ?
>
> CI.-
Heh.. *Embarrassed smile*
I THOUGHT i had the mod_php4 loaded... Turened out it wasnt.
So after a quick "apt install" and restart of apache2 it is now running.
Next step.. To understand how to use it ;)
--=20
/Rikard
" Sharing knowledge is the most fundamental act of friendship.=20
Because it is a way you can give something without loosing something."=20
-R. Stallman=20
---------------------------------------------------------------
Rikard Johnels email : rikjoh(a)norweb.se
Web : http://www.rikjoh.com/users/rikjoh
Mob : +46 735 05 51 01
PGP : 0x461CEE56
---------------------------------------------------------------
--===============3808389538028590170==--