BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 07-25-2008, 11:18 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Location: Northern IL
Model: 8330
OS: 4.5
Carrier: Verizon
Posts: 2,076
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How To: Set Up Apache Webserver For OTA Downloads

Please Login to Remove!

This is a question getting asked more and more frequently here, so I made a guide.

For Apache Webservers - The Easy Way.


By default, the apache webserver does not understand what files with .jad and .cod are. This means that by uploading them to an Apache server, when the link in clicked it will either give you plain text of the contents, or an error message. This section will give you the simple steps to make it recognize, and know what to do with, your files.

1. Create a new text document, in Notepad for example.

2. Copy these 2 lines of code, exactly, into the new text doc:
Code:
AddType text/vnd.sun.j2me.app-descriptor .jad
AddType application/vnd.rim.cod .cod
3. Save As. Make sure you change the Save As Type to ALL FILES. Make the file name
Code:
.htaccess
Make sure it has the . as the first character.



4. Upload this file to the directory where your OTA files are or will be stored.

Please Note: If this method does not work, your Apache server may not set set to allow directory based overrides.

You can also set this up in your web serverxxx8217;s main configuration file. In most cases (if you are on a shared hosting plan for example) you do not have access to this file. In case you have access and want to change the mime type setting for your server globally you need to change the main configuration file (mostly called apache2.conf or httpd.conf).

Last edited by NickfromIL : 07-25-2008 at 11:24 AM.
Offline  
Old 07-25-2008, 11:34 AM   #2 (permalink)
BlackBerry Extraordinaire
 
BCollins521's Avatar
 
Join Date: Sep 2006
Location: OH
Model: 9700
PIN: Ask...
Carrier: T-Mobile
Posts: 2,033
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Cool...good looking out Nick...going to have to use this depending on what I go with for the web space that I'm going to be making. Looks like I triggered alot of people into making things for ota downloads lol
Offline  
Old 07-25-2008, 11:41 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Location: Northern IL
Model: 8330
OS: 4.5
Carrier: Verizon
Posts: 2,076
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Lol, you sure did, or they just realized that they weren't the only ones having the problem. It was frustrating when I first tried to upload OTA files, so hopefully this will help.
Offline  
Old 07-25-2008, 11:46 AM   #4 (permalink)
BlackBerry Extraordinaire
 
BCollins521's Avatar
 
Join Date: Sep 2006
Location: OH
Model: 9700
PIN: Ask...
Carrier: T-Mobile
Posts: 2,033
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's going to make things easier to just have them ota, instead of sending files to people and having them to load it on DM
Offline  
Old 07-25-2008, 12:14 PM   #5 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Location: Northern IL
Model: 8330
OS: 4.5
Carrier: Verizon
Posts: 2,076
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yep, and it's easier to control distribution that way too. If you send them the ALX and COD, they can give it to anyone else.
Offline  
Old 08-09-2008, 04:06 PM   #6 (permalink)
Thumbs Must Hurt
 
dgy2k1's Avatar
 
Join Date: May 2007
Location: Tacoma, WA
Model: 9000
OS: 4.6.1.239
Carrier: TMo
Posts: 52
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you. I've been looking in all the forums for a simple illustrated "how to" for the OTA files.
Offline  
Old 08-09-2008, 06:20 PM   #7 (permalink)
BBF Spam Killer Moderator
 
daphne's Avatar
 
Join Date: May 2007
Location: on a sunny beach
Model: Paspt
OS: 10.3.0.90
PIN: X1ZPY34K
Carrier: VZW but not for long
Posts: 9,176
Post Thanks: 120
Thanked 147 Times in 116 Posts
Default

Nice write up Nick. Seems like I recall Windows wants to put .txt at the end of the file and after I uploaded .htaccess, I had to change the name on the server to remove the .txt. How do you get Windoze not to add the file extension?
__________________
Report spam text messages to 7726
#BlackBerry by choice
Offline  
Old 08-09-2008, 07:15 PM   #8 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Location: Northern IL
Model: 8330
OS: 4.5
Carrier: Verizon
Posts: 2,076
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did a save as and changed the save as type from txt to all files. You can always just rename the file .htaccess in your FTP client once uploaded. I use ChromeFTP as an add on to firefox, and this lets me change the filename including the extension of files that are on the web server.
Offline  
Old 08-10-2008, 12:36 AM   #9 (permalink)
BBF Spam Killer Moderator
 
daphne's Avatar
 
Join Date: May 2007
Location: on a sunny beach
Model: Paspt
OS: 10.3.0.90
PIN: X1ZPY34K
Carrier: VZW but not for long
Posts: 9,176
Post Thanks: 120
Thanked 147 Times in 116 Posts
Default

Ok, thanks. I changed the file name and extension after I uploaded it on the server.
__________________
Report spam text messages to 7726
#BlackBerry by choice
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

10K Ohm 3590S-2-103L Potentiometer With 10 Turn Counting Dial Rotary Knob
$2.79
10K Ohm 3590S-2-103L Potentiometer With 10 Turn Counting Dial Rotary Knob picture5PCS WH148 Pot B1M 1M Linear Potentiometer Shaft 15mm 3pin
$1.99
5PCS WH148 Pot B1M 1M Linear Potentiometer Shaft 15mm 3pin pictureVintage Radio Shack 271-1722 Audio Taper Potentiometer 100k ohms New/Old Stock
$9.99
Vintage Radio Shack 271-1722 Audio Taper Potentiometer 100k ohms New/Old Stock pictureVintage Radio Shack 271-215A Miniature Volume Control 10k with Audio Taper SPDT
$10.0
Vintage Radio Shack 271-215A Miniature Volume Control 10k with Audio Taper SPDT  picture1x DC Potentiometer Knob Switch 1.8V 3V 5V 6V 12V PWM Motor Speed Controller
$2.9
1x DC Potentiometer Knob Switch 1.8V 3V 5V 6V 12V PWM  Motor Speed Controller picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.