bjdea1
04-04-2004, 09:18 AM
Hi,
I seem to be experiencing a weird PHP problem. Everytime I click on a php site a download dialog box comes up - how do I stop this? Anyone had this happening to them before?
Thanks in advance.
michaelfoo
04-04-2004, 09:42 AM
Hello,
Do you meant a download box will appear if you visit PHP sites hosted on your server?
If you do, most probably, PHP is not functioning correctly on your server. Try recompiling PHP again.
Thanks.
nickn
04-04-2004, 09:56 AM
Uh..before you try recompiling, make sure there are the correct mimetypes for *.php and what not in your httpd.conf :)
supportsup
04-04-2004, 10:24 AM
Hi
Try to recompile apache with easyapache and check for proper mimes ..
bjdea1
04-04-2004, 10:48 AM
Thanks for advice, but so far its still doing the same.
Actually I have another server (old server) up working fine with php - compared httpd.conf of new (problem) server with old server and found the apache_php4 module was commented out - so I fixed this - restarted apache - but doesn't seem to help.
Seems this server (new one) is not parsing php pages at all, just treating them as some sort of media file. I have recompiled using easyapache now about 4 times, but its definately a config prob in Apache, will do some more searching forum etc, if anyone has any more ideas - feel free to post.
Steven
04-04-2004, 12:58 PM
AddType application/x-httpd-php .php
add that to your httpd config and restart it
bjdea1
04-04-2004, 06:38 PM
Ok its working now, actually I think its been working for a while - annoying thing was my browsers (Mozilla) cache kept showing the problem respose everytime. Once I made the change to httpd.conf AND cleared my browsers cache it all worked. Thanks for help everyone.