Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Download issues from OSX Server...

Hello,

I have an odd issue occurring with our OSX Server (XServe RAID)... We have a directory setup as a LAMP Web Server (Apache2/PHP4). Everything works great except for one thing: downloads.

When I attempt to view or download any file (whether it be graphics in an HTML doc or files access directly by URL), it will only allow my to view/download a small portion of the file (anywhere from 64k to 500k).

The first place I looked was my php.ini file. This was because this problem first manifested from a PHP app I am using. Everything is set correctly in the ini file, though (I can upload files of any size -- depending on the ini settings, etc.).

Shortly after, I realized that this issue occurs even when trying to access a file directly by entering the URL to the file (i.e., it's not a PHP issue). So, I checked my httpd.conf file and found that nothing was odd there either.

Has anyone else experienced this problem? Is there somewhere else I can check for a "download" setting?

Keep in mind that I'm not a LAMP expert (nor ISX server). I just need to get this working so that people can view more than just half of a webpage!

Thanks for any help,
Tim

P.S. I hope I posted this to the right place.

OSX Server, Mac OS X (10.4.8), 2GHz Xserve RackMac PowerPC G5 (RAID)

Posted on Feb 28, 2007 1:03 PM

Reply
Question marked as Best reply

Posted on Feb 28, 2007 5:35 PM

Have you checked for any bottlenecks on gateway hardware? Switches/Firewalls/Routers? Do you have the OS X firewall enabled? If so, does this problem persist if you turn it off?
23 replies

Mar 1, 2007 1:20 PM in response to Celia Wessen

The WebRoot directory is on the RAID, so everything is being accessed from there.

Speed doesn't seem to be an issue in most cases (although page retrieval can hang once in a while). But, when I enter a URL to a file, it does seem to take a few moments before the files tries to actually download. Then, after starting, it stops (or times out, or whatever).

Uploads (to the same location) are relatively quick. I have my php.ini file set to accept up to 55MB files and I haven't had an issue yet. But, that's in PHP.

I'm not sure I know how to try an upload via http... Is there a way?

Thanks,
Tim

Mar 2, 2007 5:24 AM in response to Celia Wessen

Due to some early issues with the Server Admin app, we are not using it... Apache is configured and running on its own.

My httpd.conf settings are set thusly:

150/600/5/10/5

Persistent Connections is on and set to:

MaxKeepAliveRequests 100

(I don't see a setting for Maximum Persistent Connections, though.)

I will change all of these to the defaults in Server Admin and see what happens.

Tim

Mar 2, 2007 6:38 AM in response to EMBARQ Studio54

All right... I have made a number of adjustments to my httpd.conf settings and have gotten some good results. But, I'm not exactly running at 100% yet.

It seems that files are timing out and actually "freezing" or "crashing" Apache. When this happens, I can no longer access the site -- but only temporarily. I have waited for several minutes to find that the site comes back to life, but it takes a quite a while.

*Update: I take that back... I just tried to download a fairly small PDF and it crashed Apache for good -- had to restart.

If this "freeze" happens and I restart Apache, the site comes back to life right away. (But, graceful doesn't work, only restart.)

Additionaly, when I attempt to download files via PHP, I am still timing out around 64k or so... Very odd.

Any ideas?

Thanks,
Tim

Message was edited by: EMBARQ Studio54

Mar 2, 2007 11:09 AM in response to Celia Wessen

I wish I could answer all of your questions, but I can't...

I turned Persistent Connections off and some thing do seem to be working better. But I'm still getting many hang ups.

Nothing is left in the logs when Apache freezes. The Access Log shows what I was doing, but nothing there (or in the Error Log) says anything is wrong.

As for "apachectl status"... I get an error when I try that command:

===
/usr/sbin/apachectl: line 91: lynx: command not found
===

My apachectl location is /Library/Apache2/bin, so I'm confised why it's outputting that path.

Tim

Mar 2, 2007 3:56 PM in response to EMBARQ Studio54

It's putting out that message because the apachectl that you're running isn't the one that you think that you're running. I'd estimate that you have 3 Apache setups on that box. The Apache 1.3.x, which is centered around /usr and /etc. The default Apache 2.0.x install in /opt/apache2 and an Apache 2.0.x install that you have based in /Library/Apache2.

When you execute a command, if the command doesn't start with "/" to specify an absolute path the shell will try appending the command to each of the directories in you PATH variable until it either finds the command, or runs out of possible paths (which is when it will give a "Command not found" error). So if you type in:

apachectl status

it will find the apachectl program in /usr/sbin instead of the /Library/Apache2/bin/apachectl that you want. You'll either need to modify you PATH variable or use absolute paths with the commands to keep these versions straight.

AFAIK, ServerAdmin will only work on the default install (the 1.3.x version). For any of the Apache2 setups, you'll be coniguring by hand, probably in /Library/Apache2/conf/httpd.conf.

FWIW, I was running the /opt/apache2 daemons for a while and they started hanging and crashing. I never did figure out a reason, and had to keep the sites running, so I went back to the 1.3.x httpd.

Roger

Mar 5, 2007 7:05 AM in response to Community User

Roger,

Thanks for the info...

I actually only have two instances of Apache. The default 1.3.x version and the one in /Library/Apache2/. This server used to have an install in /opt/Apache2/, but we started experiencing the ServerAdmin issues that are so prevalent on OSX Server (i.e., ServerAdmin stopped working).

So, I'm actually going to the location of apachectl (cd...) -- which is at /Library/Apache2/bin/ -- and running it from there. But, I can try running the script with the absolute path and see what happens.

By the way, could you give me the simple route to going back to Apache 1.3.x? Or, is there one?

Thanks,
Tim

Download issues from OSX Server...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.