PDA

View Full Version : OpenSRS How-To


JamesC
10-01-2006, 07:35 AM
Ok I have been asked from a few forum members how I managed to get the OpenSRS to work, so I thought I would but together a little How-To on the steps it took me.

Ok there has been some issues finding the OpenSRS files so here is a working link as of 08/05/07 OpenSRS 2.9.9 (http://resellers.tucows.com/current/) Down load it here.

You can find documentation here http://documentation.tucows.com/opensrs_rcl.pdf

Log into your Resller account and set up your access for the API and your Private Key

1. At the bottom of the page look for, Add IPs for Script/API Access (add your web server and/or your ordering site IP) and Generate New Private Key (copy this down because you will need it later).
2. Next be sure the ports are open on your server that will be used by the scripts. These are port numbers 52000, 52044, and 52443.

Ok now that we have set up the ports and gave access to your ReSeller One account to your Scripts by adding the IP’s that will be used we can start editing the config files for OpenSRS

There is a config file for each of the services that will be edited to suite your needs but I will only cover the one for the main config (OpenSRS Config) here the rest of the scripts will use these settings to access the RWI2 and you should be able to figure those out and make adjustments to suite your needs.

3.Change the user name, Private Key and admin email address

my $USERNAME = "(your user name)"; # XXX insert username here
my $PRIVATE_KEY = "(your private key)"; # XXX insert DES key here

$ADMIN_EMAIL = 'your_address@your_domain.com';
$RENEW_EMAIL = 'your_address_for_renewal_messages@your_domain.com';

4. Test server should be set to 0
$TEST_SERVER = 0;

5. Change the source path to where your config and other files are located.
$PATH_SOURCE = "<path_to_source>"; # e.g., "/home/username/opensrs"

6. Now we need to change the port numbers and server address using these settings should work.

REMOTE_PORT => 52000,
REMOTE_HOST => "resellers.resellone.net",
REMOTE_HTTPS_PORT => 52443,

# OSRS IDN conversion server connection settings
REMOTE_IDN_HOST => 'resellers.resellone.net',
REMOTE_IDN_PORT => 52044,

Ok up load the files make sure the .cgi files are in the cgi-bin and the rest of the files are in the path you used above in the config file for step 5

Ok there you go now do some testing make sure that you have set your RWI2Order Preferences settings to No so you can test the scripts with out ordering any services, make any adjustments to the files for your services needs.

Good luck and I hope this helps.

JamesC

Hector
10-04-2006, 02:28 AM
Hello,

What version are you running?
I have 2.9.5 but it don't work. On Ensim I have "No response - Please contact Support for assistance". On Plesk "error 500 Internal Server Error"

JamesC
10-04-2006, 05:21 PM
Hello,

What version are you running?
I have 2.9.5 but it don't work. On Ensim I have "No response - Please contact Support for assistance". On Plesk "error 500 Internal Server Error"

We are using 2.9.2 at this time but we are testing 2.9.5 and it is working (just need to tweak the templates to fit our design)

Check your error logs you may need to install this perl module " Data::Structure::Util " also be sure the cgi file is chmod to 755.

Also which script (register , manage , etc...) is giving the error knowing this may help finding the problem.

JamesC
08-05-2007, 12:08 PM
Added links to the opensrs files and the pdf documentation files.

I will be glad to help anyone out thru emails for free but if you can't get it set up as a last resort, I will offer my services for a fee.

Please be sure all the perl files are installed on your server as required in the pdf file provided by Tucows

hasan
09-02-2009, 12:32 AM
Hello
How to setup API.

Please give me more info.

Where i upload My data My CGI parl server active and NP in server.

You don't have permission to access /domains/cgi/ on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

domains/cgi/manage.cgi

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator xxxxxxxxxxxxxxxxxxxxxxxxx.com

nd inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Thanks

JamesC
09-04-2009, 08:52 AM
Hello
How to setup API.

Please give me more info.

Where i upload My data My CGI parl server active and NP in server.

You don't have permission to access /domains/cgi/ on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

domains/cgi/manage.cgi

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator xxxxxxxxxxxxxxxxxxxxxxxxx.com

nd inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Thanks

These are all permissions issues i suggest you look thru your error log file for which file is causing the problem

chandro
10-01-2009, 07:57 AM
get some errors when i try to search a domain,


Warning: fsockopen() expects parameter 2 to be long, string given in /home/dedicado/public_ht ....


bla bla bla.


checking what is the problem

chandro
10-01-2009, 12:10 PM
everything is ok, just getting to work manage.cgi

Skissolvessob
05-05-2010, 11:45 PM
I wondered how that happened.

Swami