Solved

cant see my php page

Posted on 2002-05-18
5
169 Views
Last Modified: 2006-11-17
Hi....

I set up a virtual directory and placed my php files in them.  I cant see my page from the browser.  I put an html page in there and I saw it just fine.  The Php page is just an example from the web cuz its my first time.  Am I doing anything wrong?  Im running a linux box with apache as my web server.

thanks,

knoxxx
0
Comment
Question by:JohnnyKnoxville
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 17

Expert Comment

by:dorward
ID: 7018923
What happens when you try? Do you get an error message? What happens if you disable "friendly error message" (if you use IE) or switch to another browser? (IE does a good job of making it hard to find out what is actually wrong)
0
 
LVL 40

Accepted Solution

by:
Richard Quadling earned 50 total points
ID: 7021008
When you say you can't see the pages, is this via a directory listing or as a http://virtual/something.php?

Is PHP configured correctly? Do you have other PHP files working in other virtual directories?

Richard.
0
 
LVL 1

Expert Comment

by:Richard Coffre
ID: 7023933
What about the variable DocumentRoot in httpd.conf ?
Do you place your files in a directory or a sub-directory of the one defined in DocumentRoot ?

HIH
0
 
LVL 1

Expert Comment

by:PeteNovember
ID: 7032481
You should check your virtual host config for that virtual host and check to see if php is supported as a script.
(httpd.conf)


also...some web hosting co's make you use .pcgi or .php4 as extensions.
0
 

Expert Comment

by:Wobin
ID: 7057272
Make sure your apache server knows what to do with .php files:


In httpd.conf:

AddType application/x-httpd-php .php


Also usefull:

DirectoryIndex index.html index.php
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question