?
Solved

cant see my php page

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

762 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