Trouble accessing .php files
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 <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html> 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@norweb.se Web : http://www.rikjoh.com/users/rikjoh Mob : +46 735 05 51 01 PGP : 0x461CEE56 ---------------------------------------------------------------
On Wed, 23 Mar 2005 09:45:29 +0100, Rikard Johnels
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 <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html>
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@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@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
rpm -q apache2-mod_php4 ? CI.-
On Wednesday 23 March 2005 09.55, Ciro Iriarte wrote:
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 <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html>
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@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@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@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 ;) -- /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@norweb.se Web : http://www.rikjoh.com/users/rikjoh Mob : +46 735 05 51 01 PGP : 0x461CEE56 ---------------------------------------------------------------
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 is your apache server that is serving the php script as "application/x-httpd-php", when it should (presumably) have been "text/html". If you're scripts are being properly executed, maybe you need this in php.ini: default_mimetype = "text/html" Do you have php loaded? check your /server-info page. /Per Jessen, Zürich -- http://www.spamchek.com/freetrial - sign up for your free 30-day trial now!
participants (3)
-
Ciro Iriarte
-
Per Jessen
-
Rikard Johnels