LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-10-2004, 09:36 AM   #1
yoshitec
LQ Newbie
 
Registered: Mar 2004
Location: Hudson Valley, NY
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
How can I view php pages in Konqueror?


Hi all,

I have Mandrake 10 installed on my machine. I want to be able to create php files and view them with Konqueror. Do I need to have apache set up to do this?

This is what I've tried:

Mysql is installed and running. Php is installed. When I create an html file on the desktop and then double click it with Konqueror I can view the html page as if it was being served on the web (i.e: not the source code).

However when I create a php file, I get the nice php icon indicating that it is a php file, but when I try to open it with Konqueror it says that it was expecting a folder not a file and it shows nothing.

Thanks
 
Old 09-10-2004, 09:55 AM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
Yes, you need Apache configured to work with PHP and MYSQL if you want to.
 
Old 09-11-2004, 12:03 PM   #3
yoshitec
LQ Newbie
 
Registered: Mar 2004
Location: Hudson Valley, NY
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
Getting apache to serve pages from my computer

Okay, so I installed apache and it is running. I can see it when I go to Services and is listed as httpd.

Then I used ifconfig (as root) to find out my ip address and got the following output:

Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0

I assumed my ip address to be 127.0.0.1

So I then went to Konqueror and tried the following addresses:

http://127.0.0.1
http://localhost
http://localhost.
http://127.0.0.1.com
http://255.0.0.0.com
http://255.0.0.0

and just got the following messages:

An error occurred while loading ......
Could not connect to host ....


I'd greatly appreciate any help with this matter,

Thanks
 
  


Reply



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
can't view man pages slzckboy Linux - General 7 09-19-2005 04:13 PM
Cannot view internet pages schismatic Linux - Networking 2 07-27-2005 02:06 AM
can't view php pages allan_y Linux - Software 2 07-23-2004 11:48 PM
View-edit error pages tommytomato Linux - Software 1 06-18-2004 05:07 AM
[PHP] How do I view PHP pages?? vbp6us Linux - General 4 04-16-2003 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:20 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration