Solved

cant see my php page

Posted on 2002-05-18
5
158 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:
RQuadling 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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 …

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now