Forum Moderators: phranque

Message Too Old, No Replies

Browser asking to download instead of opening page

I know it's an old topic, but I still can't get it right.

         

stooper101

2:35 am on May 12, 2009 (gmt 0)

10+ Year Member



Hello and forgive me for bringing up an old topic, but I still can't seem to find a solution. The background is: I have a site that uses php includes for menus and such. Our host has us on a shared server. I was able to parse htm pages with php by using:

AddType application/x-httpd-php htm

Up until last week, everything was working fine. But our host upgraded some stuff and now the above code is not working. I can't tell you what the old settings were but now I'm on PHP 5.2.9 and Apache 2.2.11.

I've been all over google trying to find a solution. I've tried several combination of AddHandler and AddType and whatever in the .htaccess file. This old post is almost exactly what I'm going through now: [webmasterworld.com ]
with the exception that I believe he was editing his config file where I only have htaccess to play with. Didn't seem like there was any solution to his problem yet.

The site has been mucked-up for a week now and all the host has suggested is commenting out the above AddType line. That just takes away any php I have running on my .htm pages. (while leaving the php code in view source)

I do have a few other pages that have a .php extension and they work fine. I'd like to avoid either re-writing the entire site with php extensions or transferring hosts.

Any Help?

stooper101

4:31 pm on May 12, 2009 (gmt 0)

10+ Year Member



Here's one more thing I found out. If I use the code:

AddHandler application/x-httpd-php .htm

I thought it just didn't work, but it's more than that. The php code does not show up now when you 'view source', but I get an error message in my error log that reads:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613//usr/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613//usr/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

So, the site still doesn't seem to be parsing php on my .htm pages. Could this have something to do with how and where ffmpeg and php are installed on the server? Anybody know a fix? Or is this looking like a host problem?

jdMorgan

6:50 pm on May 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> So, the site still doesn't seem to be parsing php on my .htm pages. Could this have something to do with how and where ffmpeg and php are installed on the server? Anybody know a fix? Or is this looking like a host problem?

It is parsing PHP, otherwise it would not get an error...

The problem is evidently that the ffmpeg.so library is missing or not in the right location, or that the PHP configuration is causing the server to attempt to refer to it in the wrong location.

I'd suggest beating on your hosting company and insisting on escalating the problem until you reach a support tech that can fix this problem. Really, this host is costing you revenue, site reputation, and/or traffic because of this upgrade, and they ought to be trying to help you.

Jim