1
eddie123
Using Xoops with DSL and dynamic IPs with DYNDNS and port redirection services
  • 2006/8/15 4:44

  • eddie123

  • Just popping in

  • Posts: 23

  • Since: 2005/6/17


I am going to try to define clearly the proper setup of DYNDNS.org's custom DNS services with port redirection for IIS and Xoops. I had a considerable amount of trouble with XOOPS using DYNDNS services and IIS and after finally figuring it all out I thought I would share this info.

This method allows you to use a cheap DSL line with dynamic IP addressing and setup a website with a XOOPS backend and route just fine if you follow the following procedures.

This is very handy as DSL packages with IP addresses are more expensive and with this method you can really save some money and get XOOPS working correctly. I pay 24 dollars a month for 6MB down and 608 up and I have 3 XOOPS websites for different domains on one static IP address.

First install XOOPS on your server as you normally would.

Second go tohttp://www.DYNDNS.org and get your domain or transfer your domain to them and buy the custom DNS services for the domain. It’s cheap and well worth it.

Logon to DYNDNS.org and go to my services. Select Custom DNS link for yourdomain.

Set the DYNDNS.org custom DNS web interface preference to standard not expert. This will allow you to use the wizards and make it simple to follow these directions

Setup the domain by adding an "A" Record of yourdomain.com
Then add a CNAME record of www.yourdomain.com alias to yourdomain.com.

Download the DNS client update software athttp://www.dyndns.com/support/clients/

Install the software and set it to install as a service or to start with Windows. Open the settings and go to groups tab and click the ADD button. Pick a name for the group then fill out the form and type in your DYNDNS account info in and then click the ADD button. Enter the hostname like this www2.yourdomain.com. Select "custom" under the System selection and them hit ok.. Make sure you use only the WWW2 host name and no others.

Once this is done set up your IIS website server to use a different port other than port 80 such as port 3193 or another you prefer. For a list of ports you can use go herehttp://www.iss.net/security_center/advice/Exploits/Ports/
If you have a firewall then you need to open the port you changed the web server to.

At the bottom of the DYNDNS custom DNS interface is a link for "add new mywebhop". Click that link and select port redirection. Add the port you set up for your web server. DO NOT USE THE CLOAKING OR MASKING OPTION just add the new port number.

You will notice a new entry into the custom DNS of an "A" record WWW2.yourdomain.com and the IP address of yourdomain will have changed to 63.208.196.110.

Edit your mainfile.php and change the define('XOOPS_URL, - I use port 3193 as an example. Use the port you set your web server for.

Example
define('XOOPS_URL, "http://www2.yourdomain.com:3193/xoops')'
Save file - you may need to change the read only property of the file to save it. Once it is saved make it read only again.

It will take a while for the new domain and port redirection to populate across the Internet's DNS world however this will work if you follow this procedure.

Note - The reason you have to change the web server port from port 80 to another is that the DSL router is where the dynamic IP address resides and the server address is most likely private IP addressing such as 10.0.0.x. XOOPS for some reason will not allow new users to register if the IPs don’t jive.. I have tried for numerous hours to get it to work on port 80 using DSL and a dynamic IP with DYNDNS.org and it will not work. XOOPS will not allow new users to register unless you set it up this way.

This method works flawlessly. Enjoy and I hope this helps someone to save some money and enjoy Xoops....

Eddie123



2
eddie123
Using Xoops with DSL and dynamic IPs with DYNDNS and port redirection services
  • 2006/8/15 4:43

  • eddie123

  • Just popping in

  • Posts: 23

  • Since: 2005/6/17


I am going to try to define clearly the proper setup of DYNDNS.org's custom DNS services with port redirection for IIS and Xoops. I had a considerable amount of trouble with XOOPS using DYNDNS services and IIS and after finally figuring it all out I thought I would share this info.

This method allows you to use a cheap DSL line with dynamic IP addressing and setup a website with a XOOPS backend and route just fine if you follow the following procedures.

This is very handy as DSL packages with IP addresses are more expensive and with this method you can really save some money and get XOOPS working correctly. I pay 24 dollars a month for 6MB down and 608 up and I have 3 XOOPS websites for different domains on one static IP address.

First install XOOPS on your server as you normally would.

Second go tohttp://www.DYNDNS.org and get your domain or transfer your domain to them and buy the custom DNS services for the domain. It’s cheap and well worth it.

Logon to DYNDNS.org and go to my services. Select Custom DNS link for yourdomain.

Set the DYNDNS.org custom DNS web interface preference to standard not expert. This will allow you to use the wizards and make it simple to follow these directions

Setup the domain by adding an "A" Record of yourdomain.com
Then add a CNAME record of www.yourdomain.com alias to yourdomain.com.

Download the DNS client update software athttp://www.dyndns.com/support/clients/

Install the software and set it to install as a service or to start with Windows. Open the settings and go to groups tab and click the ADD button. Pick a name for the group then fill out the form and type in your DYNDNS account info in and then click the ADD button. Enter the hostname like this www2.yourdomain.com. Select "custom" under the System selection and them hit ok.. Make sure you use only the WWW2 host name and no others.

Once this is done set up your IIS website server to use a different port other than port 80 such as port 3193 or another you prefer. For a list of ports you can use go herehttp://www.iss.net/security_center/advice/Exploits/Ports/
If you have a firewall then you need to open the port you changed the web server to.

At the bottom of the DYNDNS custom DNS interface is a link for "add new mywebhop". Click that link and select port redirection. Add the port you set up for your web server. DO NOT USE THE CLOAKING OR MASKING OPTION just add the new port number.

You will notice a new entry into the custom DNS of an "A" record WWW2.yourdomain.com and the IP address of yourdomain will have changed to 63.208.196.110.

Edit your mainfile.php and change the define('XOOPS_URL, - I use port 3193 as an example. Use the port you set your web server for.

Example
define('XOOPS_URL, "http://www2.yourdomain.com:3193/xoops')'
Save file - you may need to change the read only property of the file to save it. Once it is saved make it read only again.

It will take a while for the new domain and port redirection to populate across the Internet's DNS world however this will work if you follow this procedure.

Note - The reason you have to change the web server port from port 80 to another is that the DSL router is where the dynamic IP address resides and the server address is most likely private IP addressing such as 10.0.0.x. XOOPS for some reason will not allow new users to register if the IPs don’t jive.. I have tried for numerous hours to get it to work on port 80 using DSL and a dynamic IP with DYNDNS.org and it will not work. XOOPS will not allow new users to register unless you set it up this way.

This method works flawlessly. Enjoy and I hope this helps someone to save some money and enjoy Xoops....

Eddie123



3
eddie123
Re: No internet user can register
  • 2006/8/13 14:26

  • eddie123

  • Just popping in

  • Posts: 23

  • Since: 2005/6/17


I have a feeling this has soething to do with the the fact I am using Custom DNS from DYNDNS.org as I am routing to a dynamic IP.

That means that the IP I am using is the IP of the DSL router and I am sendng the traffic to a specific port based on the setting in my custon DNS account.

For example the IP of the DSL router is 70.219.215.33. The IP for my XOOPS machine is 10.0.0.219 and the port is 4040. The DSL router is set to send all traffic for port 4040 to 10.0.0.219:4040 which is where my XOOPS is located.

This works fine except when I want to register a user.. All pages load and all modules work except it will not allow a new user to register..


Any suggestions?

Eddie



4
eddie123
No internet user can register
  • 2006/8/13 6:21

  • eddie123

  • Just popping in

  • Posts: 23

  • Since: 2005/6/17


I am haveing the same problem on all my sites running on windows..

Whenever a user fills out the registration page they get the error " Could Not Register New User"

I am running NT 4.0 XOOPS release 2.014 and MySQL 4.1 with PHP ver 5.1.4.

Everything works great but no one can register, You can try yourself at Balance BMX

I have tried everything.. Does anyone have any ideas what I can do?

Thanks

Eddie



5
eddie123
XOOPS root path not defined
  • 2006/8/11 18:38

  • eddie123

  • Just popping in

  • Posts: 23

  • Since: 2005/6/17


I installed XOOPS ver 2 and all modules work fine with the exception of standard ones like Contact or forums.. I get a error " XOOPS root path not defined. The correct root path is defined on the mainfile.php.

Any ideas?

eddie



6
eddie123
RE: Xoops won´t allow new users on the Internet to register
  • 2006/8/5 2:36

  • eddie123

  • Just popping in

  • Posts: 23

  • Since: 2005/6/17


Thanks for the info however the support info you mentioned doesnt help.. Let me try to detail it a little more.. I am running windows2000 professional and IIS 5.0 with PHP 5.1.4 and MySQL 4.1 and XOOPS release 2.0.14.

Every module works fine and on my intranet I can register new users and it sends an email to an external mail server and deliveres the login key just fine.

Now when a user on the internet comes in they fill out the registration page and submit the form and the error " unable to register new users" is dispayed and the user cannot register.

I have a firewall and the ports are open for the web server and it serves up all the modules just fine however it will not let anyone on the internet register only those that are inside the network.

Are there any other ports for registration that need to be open for this to work or are there any limits to running XOOPS on a windows 2000 professional OS with IIS installed.

The windows 2000 professional has limits on IIS such as only one web site.

Are there permission settings needed somewhere for the registration piece I may have missed or a setting in the PHP.ini file that I missed..

I am really stumped here. I know it is not a firewall issue as I have set the server address as the DMZ and there are no ports being closed..


Any ideas?

Eddie



7
eddie123
Xoops won´t allow new users on the Internet to register
  • 2006/8/4 1:00

  • eddie123

  • Just popping in

  • Posts: 23

  • Since: 2005/6/17


Everything worked fine on the install. When I register on my lan it works fine however when an internet user comes in to register it says "unable to register new user".

I am running PHP, iis 5.0 and windows 2000 with MySQL and have not had this problem before.. any ideas? I have checked the user preference settings and everything is checked allowing new users to register.

Why would it allow me to register locally and not over the internet?

HELP!!!

Eddie




[size=x-small][Edit by Bender] Subject lowercsed. Please don´t shout at us.[/size]



8
eddie123
Xoops Patches
  • 2006/1/31 0:29

  • eddie123

  • Just popping in

  • Posts: 23

  • Since: 2005/6/17


I am currently running XOOPS 2.0.10. I want to upgrade with the patches to the latest version.. I downloaded the patches yet there are no instructions on how to apply the patches.. I am running windows server 2003 with php ( of course) and mysql..

I dont want to break the site. Can someone give me the procedures and tell me how to safely apply the patches?

Thanks

Eddie



9
eddie123
xoops2-mod_xoopsshop_v0_2b_michae_baecker Install issues
  • 2005/6/30 19:05

  • eddie123

  • Just popping in

  • Posts: 23

  • Since: 2005/6/17


After almost a week of playing with this code I still cannot get this module working.. It installed fine and then a massive amount of errors when I engage the admin menu. I have managed to solve a lot of them however there is one I cant figure out.. ANY HELP WOULD BE APPRECIATED!

Error - Fatal error: Cannot redeclare class currencies in E:\Website\modules\shop\includes\classes\currencies.php on line 16. Line 16 is the first item highlighted in blue below!

Here is the module code currencies.php - It appears that the areas highlighted in blue require some sort of setting. I am not sure what the "function () and the array () requires..

////
// Class to handle currencies
// TABLES: currencies
class currencies {
var $currencies;

// class constructor
function currencies() $this->currencies = array();
$currencies_query = tep_db_query("select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from " . TABLE_CURRENCIES);
while ($currencies = tep_db_fetch_array($currencies_query)) {
$this->currencies[$currencies['code']] = array('title' => $currencies['title'],
'symbol_left' => $currencies['symbol_left'],
'symbol_right' => $currencies['symbol_right'],
'decimal_point' => $currencies['decimal_point'],
'thousands_point' => $currencies['thousands_point'],
'decimal_places' => $currencies['decimal_places'],
'value' => $currencies['value']);
}
}

// class methods
function format($number, $calculate_currency_value = true, $currency_type = DEFAULT_CURRENCY, $currency_value = '') {
if ($calculate_currency_value) {
$rate = ($currency_value) ? $currency_value : $this->currencies[$currency_type]['value'];
$format_string = $this->currencies[$currency_type]['symbol_left'] . number_format($number * $rate, $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']) . $this->currencies[$currency_type]['symbol_right'];
// if the selected currency is in the european euro-conversion and the default currency is euro,
// the currency will displayed in the national currency and euro currency
if ( (DEFAULT_CURRENCY == 'EUR') && ($currency_type == 'DEM' || $currency_type == 'BEF' || $currency_type == 'LUF' || $currency_type == 'ESP' || $currency_type == 'FRF' || $currency_type == 'IEP' || $currency_type == 'ITL' || $currency_type == 'NLG' || $currency_type == 'ATS' || $currency_type == 'PTE' || $currency_type == 'FIM' || $currency_type == 'GRD') ) {
$format_string .= ' <small>[' . $this->format($number, true, 'EUR') . ']</small>';
}
} else {
$format_string = $this->currencies[$currency_type]['symbol_left'] . number_format($number, $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point']) . $this->currencies[$currency_type]['symbol_right'];
}

return $format_string;
}

function get_value($code) {
return $this->currencies[$code]['value'];
}

function display_price($products_price, $products_tax, $quantity = 1) {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
}
}
?>



10
eddie123
Error when I open the admin section of this module
  • 2005/6/26 0:50

  • eddie123

  • Just popping in

  • Posts: 23

  • Since: 2005/6/17


I am trying to install xoops2-mod_xoopsshop_v0_2b_michae_baecker. The install went fine no errors but when I open the admin options I get this error. I get a similar error on all ecommerce modules.. Is this a path problem?

This is the error I am getting. Any ideas?

Fatal error: main() [function.require]: Failed opening required 'includes/configure.php' (include_path='C:\WINNT;C:\WINNT\System32;e:\PHP;') in E:\Website\modules\shop\admin\includes\application_top.php on line 31
Warning [PHP]: main(includes/configure.php) [function.main]: failed to open stream: No such file or directory in file E:\Website\modules\shop\admin\includes\application_top.php line 31
PHP Fatal error: main() [function.require]: Failed opening required 'includes/configure.php' (include_path='C:\WINNT;C:\WINNT\System32;e:\PHP;') in E:\Website\modules\shop\admin\includes\application_top.php on line 31




TopTop
(1) 2 3 »



Login

Who's Online

225 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 225


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits