Solved

PHP, Apache, Quicktime or OSX?

Posted on 2003-11-04
4
363 Views
Last Modified: 2012-06-27
Not sure where the problem lies here.

Cast of characters:
OSX Server 10.2.8
PHP 4.3.3
Apache 1.3.28
QuickTime 6.4

The website developed in PHP has been uploaded to the server in the default location suggested by the Admin Guide. When trying to open any QuickTime movie on the site, I'm not able to open it. The code is fine on the page. But even when I do a file listing and click on the MOV file to play on it's own without the interference of the web page it might be on, I get internal server error or misconfiguration error. When I right click the file to download to disk, I get unable to load file. It seems that I should at least be able to download the file. I've checked the permissions on the folder. They're all good. MIME settings, all good. Created a new HTML file with a new MOV, nothing. Internal Server Error  is the specific error message. The most confusing for me, however, is the fact that I can't view the movie from a file listing in the browser. I figure once I get that sorted out, everything else will fall into place.

Anyway, I'm pretty lost on the issue if someone wants to throw any ideas my way, I'd be grateful.

Thanks,

Kim
0
Comment
Question by:ileotech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
ileotech earned 0 total points
ID: 9683217
I got it, thought I don't understand why it works.

At the bottom of the httpd.conf file, I entered

AddType video/quicktime .mov

and it started working.

I had tried it earlier in the day without the dot before mov and it didn't work.

What I don't understand is that in Server Settings>Configure Web Services>MIME Types, mov is listed as a MIME type with video/quicktime as a web server response. A dot before that was not an option. I already tried adding it in and OSX told me to take a hike. In the mime_macosxserver.types file lives the line:

AddType video/quicktime mov

How does adding that line (with the dot before mov) in httpd.conf differ from what's already there?
0
 
LVL 33

Expert Comment

by:shalomc
ID: 9699971
Kim,
Apache does not rely on the OS definitions and file type associations.
Defining a file type in OSX is not enough - you have to add it to httpd.conf for Apache.


0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to analyze web traffic logs 10 124
htaccess restrict subdomain 4 146
wamp versus xampp 4 77
htaccess add www, redirect to https, keep query string 17 49
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question