JohnnyKnoxville
asked on
cant see my php page
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
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
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)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
Do you place your files in a directory or a sub-directory of the one defined in DocumentRoot ?
HIH
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.
(httpd.conf)
also...some web hosting co's make you use .pcgi or .php4 as extensions.
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
In httpd.conf:
AddType application/x-httpd-php .php
Also usefull:
DirectoryIndex index.html index.php