LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-30-2007, 02:31 PM   #1
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, Fedora
Posts: 415

Rep: Reputation: 31
Question You have chosen to open index.php which is a : PHP Script from: http://localhost


I installed Apache, MySql and php on my linux box(Ubuntu). When I try to open a index.php file using Firefox I get:

You have chosen to open index.php which is a : PHP Script from: http://localhost
What should firefox do with this file?

Does this means php is not installed? If so, I tried to install php but it is not listed in the synaptic package manager. Maybe I did not install everything correctly. I'm trying to run Joomla on my localhost.
 
Old 01-30-2007, 04:25 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Yes, it means PHP is either not installed or not configured to handle php pages. I guess the former is true if it is not listed.. Is there mod_php package? Did you try enabling Universe package repository and getting it there?
 
Old 01-30-2007, 04:52 PM   #3
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, Fedora
Posts: 415

Original Poster
Rep: Reputation: 31
Right now I have no Internet connection. How do I check that PHP is installed in my system. Do I check in /etc directory and look for php file? Thanks
 
Old 01-30-2007, 04:58 PM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Try
which php
ldconfig -p 2>/dev/null | grep -i php

both should output nothing if you do not have PHP.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: <a href="http://blogs.zdnet.com/threatchaos/index.php?p=311">Why is Linux more secure than Windows?</a> LXer Syndicated Linux News 0 04-18-2006 03:03 PM
How to receive arbitrary HTTP posted XML data in a php script rstewart Programming 2 03-10-2006 12:36 PM
Suse 9.3/apache2/php4 - Firefox tries to download index.php, other *php pages work stefanlasiewski Suse/Novell 1 01-18-2006 07:12 PM
apache http://localhost/mysite ---> http://localhost/mysite/index.php how? ilnli Linux - General 8 06-04-2005 04:23 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 07:02 PM


All times are GMT -5. The time now is 05:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration