Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

cant see my php page

Posted on 2002-05-18
5
Medium Priority
?
177 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 150 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…
Suggested Courses

610 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