January 26th, 2005, 02:17 PM
|
#31 (permalink)
| | Member
Join Date: Jan 2004
Posts: 242
|
none of the browsers worked differently than mozilla. (all tried to download the file because it could not run the app for php). i looked in my httpd.conf again and it doesnt load a php module. i tried adding
LoadModule php4_module modules/libphp4.so
and couldnt restart apache. it was telling me there was a conflict. i dont remember the wording (not on my home pc right now) but i will post the error when i get back to it. |
| |
January 26th, 2005, 03:00 PM
|
#32 (permalink)
| | Did you try Google yet?
Join Date: Feb 2003 Location: Buckhannon, WV
Posts: 3,466
|
php is not defined properly in the Apache MIME types. I don't recall where to put it, but a quick google should turn it up.
__________________
My computer is bigger than yours!
|
| |
January 27th, 2005, 03:26 AM
|
#33 (permalink)
| | Senior Member
Join Date: Jul 2004 Location: New Zealand
Posts: 582
|
My mod_php.conf (pulled in by http.conf) has
mod_php.conf:AddType application/x-httpd-php .php
mod_php.conf:AddType application/x-httpd-php .xml |
| |
January 28th, 2005, 03:28 PM
|
#34 (permalink)
| | Member
Join Date: Jan 2004
Posts: 242
|
i have those lines included also
im guessing the apt-get isnt as effective (or personally configured) as installing from source. my last resort is trying to install from source this way i can configure it to use the php module. (there is a ton of documentation) |
| |
January 28th, 2005, 03:39 PM
|
#35 (permalink)
| | Senior Member
Join Date: Jul 2004 Location: New Zealand
Posts: 582
|
The only other thing I can think of is to wonder if your text editor is adding funny codes in your php file.
I'm still not getting a clear feeling over where your fault is lying, whether in your server or client. Have you tried using a web browser on a separate machine? |
| |
January 28th, 2005, 03:51 PM
|
#36 (permalink)
| | Perfetc Member
Join Date: Jan 2003 Location: Maryland Suburbia
Posts: 4,327
|
Seems to be that the server is not processing the php and just treating it like a file to download... so something isn't setup properly
I highly doubt this is a browser thing. |
| |
January 28th, 2005, 04:26 PM
|
#37 (permalink)
| | Did you try Google yet?
Join Date: Feb 2003 Location: Buckhannon, WV
Posts: 3,466
|
Is php defined as a MIME type in httpd.conf?
This smacks of Apache not knowing how to process php files. |
| |
January 28th, 2005, 05:17 PM
|
#38 (permalink)
| | Senior Member
Join Date: Jul 2004 Location: New Zealand
Posts: 582
|
Yeah, but even when you turn mod_php off you can still read a .php file in a web browser and it shows correctly as a web page except that the components that should be processed by php are not and that part of the page is displayed as garbage.
I tried it.
So even if apache doesn't process php, it should still serve php files to the client. The client should then display them.
Hmmpfh, engineuity, try pulling a page with wget. This will dump the page raw as apache has delivered it. It is quite useful at pulling javascripts without running them and style sheets. Also make the file a html file but rename it to a php (server side) and include <? and ?> around some html. If php runs it'll hide the content. If not it won't. |
| |
January 28th, 2005, 07:13 PM
|
#39 (permalink)
| | Perfetc Member
Join Date: Jan 2003 Location: Maryland Suburbia
Posts: 4,327
|
You'll need the text inside to be in an "echo" block for that to work though right? |
| |
January 28th, 2005, 07:26 PM
|
#40 (permalink)
| | Did you try Google yet?
Join Date: Feb 2003 Location: Buckhannon, WV
Posts: 3,466
|
Some relevant links I found: http://www.php-editors.com/phphelp/a...p.general.html
Some other things I found suggest this happens if Apache cannot locate the PHP libraries or similar. I have no clue how to troubleshoot that, beyond double checking your PHP install.
Perhaps you installed the Debian Apache and compiled PHP?
Just some thoughts.. |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |