Solved

cant see my php page

Posted on 2002-05-18
5
165 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
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…

828 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