|
-
Feb 15th, 2004, 08:39 PM
#1
Thread Starter
Giants World Champs!!!!
Can't Display a PHP file in browser
I am able to view html pages with embeded php scripts but when I attempt to view a php file in my browser I get a file not found error. Here if is my addtype statement from the httpd file:
AddType application/x-httpd-php .php .phtml .html
I am sure this is where my problem is but I don't know a that much about php yet.
Thanks
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Feb 16th, 2004, 12:32 AM
#2
does the file actually exist?
-
Feb 16th, 2004, 05:19 AM
#3
Do you also have:
ScriptAlias /php/ "C:/php/"
(or wherever you installed it)
and a
Action application/x-httpd-php /php/php.exe
?
-
Feb 16th, 2004, 08:51 AM
#4
Thread Starter
Giants World Champs!!!!
Kows:
The file does exist I saved it with a .php extension and saved the exact same file with a .html extension. The html file comes up fine and displays the embeded PHP Script but the file with the .php extension states that the file doesn't exist.
mendhak:
The only PHP specific entries I have made is the one that I listed in my original post as well as an AddType entry regarding the files types .php .phptml .html (I think, when I get home I will check).
Where would I enter the following values:
1) ScriptAlias /php/ "C:/php/"
2) Action application/x-httpd-php /php/php.exe
Thanks!
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Feb 16th, 2004, 02:14 PM
#5
New Member
Your httpd.conf file
-
Feb 16th, 2004, 03:04 PM
#6
Thread Starter
Giants World Champs!!!!
tempest1
Thanks for the post but do they eed to be in any particular section of the httpd.conf File?
Thanks again
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Feb 16th, 2004, 03:53 PM
#7
PHP is not (usually) CGI, the ScriptAlias should not be necessary and might be harmful.
Is mod_php actually installed on your server (i.e. does it actually have PHP support)?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Feb 16th, 2004, 06:29 PM
#8
I don't suggest enabling PHP as CGI.. it doesn't allow much flexibility with file locations on your server and can be quite annoying..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|