BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-10-2005, 10:35 AM   #1 (permalink)
New Member
 
Join Date: May 2005
Model: 7520
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default BBCorrectorServer.cgi Help

Please Login to Remove!

Well guys a need a fresh set of eyes on this because I cannot get it to work. Here is what I have done so far;

1) Install Perl (http://www.activestate.com/Products/ActivePerl/)

2) Install Aspell (http://aspell.net/win32/)

3) Create you IIS web site via the Microsoft Management Console

- right click your web site and select "Properties"
- select the "Home Directory" tab
- choose your "Local Path"
- in the "Application Settings" box, select "Configuration"
- select the "Mappings" tab
- make sure the extension ".cgi" is mapped to the Perl executable
"C:\perl\bin\perl.exe %s" (replace path as necessary)
- create a directory under your "Local Path" called cgi-bin and place
BBCorrectorServer.cgi there
- execute the following two commands:
adsutil.vbs SET w3svc/CreateCGIWithNewConsole "1"
adsutil.vbs SET w3svc/CreateProcessAsUser "0"
I found "adsutil.vbs" under C:\Inetpub\AdminScripts. Your mileage may vary but these
two commands MUST be run.
- restart your web site

4) Modify BBCorrectorServer.cgi to reflect your system configuration

- change perl executable path. Example:
#!d:/perl/bin/perl
- change path to aspell executable. Example:
my $cmdAspellExe = "\"D:/Program Files/Aspell/bin/aspell\"";

After visiting the original thread here I am confused as to what the settings should be;
http://www.pdastreet.com/forums/show...5&pagenumber=5

"C:\perl\bin\perl.exe %s" or C:\perl\bin\perl.exe "%s" %s

my $cmdAspellExe = "\"C:/Program Files/Aspell/bin/aspell\""; or

my $cmdAspellExe = "\"C:\\Program Files\\Aspell\\bin\\aspell\"";

Aspell install location;
C:\Program Files\Aspell\bin

Perl install location;
C:\Perl\bin

I keep getting BBCorrector Error HTTP response code 404.
Offline  
Old 06-10-2005, 02:11 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2005
Location: Los Angeles, CA USA
Model: 9000
OS: 4.6.0.247
Carrier: AT&T
Posts: 209
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

404 means page not found. If you open internet explorer and browse to http://yourserver/yourpath/BBCorrectorServer.cgi what happens? Do you get a 404 error?

If you just get a blank page, this should mean that the path is set up correctly and viewable by your local computer. If you browse to http://yourserver/yourpath/BBCorrectorServer.cgi from a computer not on your local network what happens? Is your server reachable from the internet? Did you open your firewall/router and forward the correct ports?

Did you set BBCorrector on your blackberry to point to http://yourserver/yourpath/BBCorrectorServer.cgi ?
Offline  
Old 06-10-2005, 03:55 PM   #3 (permalink)
New Member
 
Join Date: May 2005
Model: 7520
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by tateu
404 means page not found. If you open internet explorer and browse to http://yourserver/yourpath/BBCorrectorServer.cgi what happens? Do you get a 404 error?[/url] ?
Yes but only to the cgi file extension. TXT and ZIP work fine.

Quote:
Originally Posted by tateu
If you just get a blank page, this should mean that the path is set up correctly and viewable by your local computer. If you browse to http://yourserver/yourpath/BBCorrectorServer.cgi from a computer not on your local network what happens??[/url] ?
Same behavior cgi extension does not work but the others do.

Quote:
Originally Posted by tateu
Is your server reachable from the internet? Did you open your firewall/router and forward the correct ports?
Yes open to the internet.

Quote:
Originally Posted by tateu
Did you set BBCorrector on your blackberry to point to [url]http://yourserver/yourpath/BBCorrectorServer.cgi]
Yep

Last edited by snooz : 06-10-2005 at 03:57 PM.
Offline  
Old 06-10-2005, 05:53 PM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
jwaters's Avatar
 
Join Date: May 2005
Location: Michigan
Model: 7520
Carrier: Nextel
Posts: 265
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

The first thing I would check is make sure that all your caps and lowercase are correct. I don't work on Windows servers, but I know on Linux it makes a difference. If you put the BBCorrectorServer.cgi on your server as BBCorrectorServer.cgi but are typing the url as http://yourserver/yourpath/BBcorrectorserver.cgi it won't find it and you'll get a 404 error. Also make sure that the reference to the file in your script has the correct upper/lowercase. I've accidentally done that and not realized it and looked for the mistake for a long time.

Other than that ..... hmmmmmm
Offline  
Old 06-10-2005, 11:28 PM   #5 (permalink)
New Member
 
Join Date: May 2005
Model: 7520
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I feel stupid guys it was the web service extensions in IIS. CGI was set to prohibited so I set to allow and its working now.
Offline  




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