1
nkarkine
servers internal and external address (localhost)
  • 2007/3/21 17:55

  • nkarkine

  • Just popping in

  • Posts: 3

  • Since: 2007/3/14


Hi,

I am wondering how to configure when i firstly want to change my server ip in XOOPS from 10.10... to the external ip or a domain name. cant find where to do that.

secondly i wonder why it is that having an external ip in the config caused the site not to work in the internal network...

thanks for any assistance!

2
Peekay
Re: servers internal and external address (localhost)
  • 2007/3/21 18:51

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


The settings are in 'mainfile.php'.

E.g if you are building a site on a PC running IIS with XOOPS installed in a subdirectory, the settings might be:
define('XOOPS_ROOT_PATH', 'C:/Inetpub/wwwroot/mysite');
define('XOOPS_URL', 'http://localhost/mysite');
To test the site across the LAN, you would need to use the DHCP IP address allocated to your PC by the router for xoops_url, e.g.
define('XOOPS_URL', 'http://192.168.***.***/mysite');
When you upload the site to a Unix/Linux server, these settings would change to something like, e.g.
define('XOOPS_ROOT_PATH', '/var/www/vhosts/mysite.co.uk/httpdocs');
define('XOOPS_URL', 'http://www.mysite.com');

HTH
A thread is for life. Not just for Christmas.