CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • From Localhost to IP
Pages: [1]

Author Topic: From Localhost to IP  (Read 6822 times)

Tachikoma

  • Guest
From Localhost to IP
December 13, 2007, 02:20:25 pm
Sorry guys,

I know that this must sound like such a remedial issue...

where do I configure the site to use and IP address instead of 'localhost'?

I was able to do this in JSAS, but I don't see where in WAMP.

I made a change in the Joomla Global settings, and then MySQL lost connection, so I reverted to localhost in the configuration.php file.

I looked at the WAMP forum, and it is troublesome, and nothing as nice as this.

-Tachikoma

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: From Localhost to IP
December 13, 2007, 02:31:34 pm
If you have static ip for your local machine over network, use that instead of localhost.

HTH

kurund
Found this reply helpful? Support CiviCRM

Tachikoma

  • Guest
Re: From Localhost to IP
December 13, 2007, 03:37:04 pm
Kurund,

Thanks for responding.

I know I need to use my machine's IP, but where do I enter/update that value?

If i only change it in the Joomla Global settings, I get MySQL errors.
So where do I need to change that value for the whole server? WAMP

Thanks,

Tachikoma

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: From Localhost to IP
December 13, 2007, 04:36:20 pm
I use WAMP on my development computer. If I enter the IP address of the PC, it works the same as if I put localhost (in a browser) -- I get the WAMP homepage. You shouldn't really need to worry about it though. Joomla or anything else shouldn't care if you resolve directly to the IP or through the localhost "domain".
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Tachikoma

  • Guest
Re: From Localhost to IP
December 14, 2007, 09:43:22 am
WAMP is running on my machine on my network, Local IP XXX.XXX.XXX.101.

If I go to the PC at XXX.XXX.XXX.102 and enter XXX.XXX.XXX.101/Joomla in the address bar, I do get the Joomla Frontpage. However, if I use any of the CiviCRM tools/modules the page cannot be displayed, and I see the address it's trying to use is /localhost/.

This is where I would assume I need to change the settings in Joomla admin from localhost to XXX.XXX.XXX.101. Where do I do that?
I see in Global Configuration > Server, there is a field for hostname that has the value localhost, but aside from that, I can't see where I need to change that value.

Please assist! Thanks very much.

-Tachikoma

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: From Localhost to IP
December 14, 2007, 09:55:04 am
Open up the configuration.php file in your root Joomla directory. Edit the settings there. The db host setting should be the IP. The root folder setting should be the IP/Joomla directory (the actual directory where the files reside).
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: From Localhost to IP
December 14, 2007, 09:58:20 am
Also use ping command to confirm that other machines can connect to your machine over network.

kurund
Found this reply helpful? Support CiviCRM

Tachikoma

  • Guest
Re: From Localhost to IP
December 14, 2007, 10:05:00 am
Brian, thanks for all the help.

Here are my variables from the config

var $offline = '0';
   var $editor = 'tinymce';
   var $list_limit = '20';
   var $helpurl = 'http://help.joomla.org';
   var $debug = '0';
   var $debug_lang = '0';
   var $sef = '0';
   var $sef_rewrite = '0';
   var $sef_suffix = '0';
   var $feed_limit = '10';
   var $secret = 'LhU6DjzZlnnKxtrr';
   var $gzip = '0';
   var $error_reporting = '-1';
   var $xmlrpc_server = '1';
   var $log_path = 'C:\\wamp\\www\\joomla\\logs';
   var $tmp_path = 'C:\\wamp\\www\\joomla\\tmp';
   var $offset = '-8';
   var $caching = '0';
   var $cachetime = '15';
   var $cache_handler = 'file';
   var $memcache_settings = array();
   var $ftp_enable = '0';
   var $ftp_host = '127.0.0.1';
   var $ftp_port = '21';
   var $ftp_user = '';
   var $ftp_pass = '';
   var $ftp_root = '';
   var $dbtype = 'mysql';
   var $host = '192.168.123.101';
   var $user = 'root';
   var $db = 'mycwe';
   var $dbprefix = 'jos_';
   var $mailer = 'smtp';
   var $mailfrom = 'EDIT';
   var $fromname = 'EDIT';
   var $sendmail = '/usr/sbin/sendmail';
   var $smtpauth = '1';
   var $smtpuser = 'EDIT';
   var $smtppass = 'EDIT';
   var $smtphost = 'smtpauth.earthlink.net';
   var $MetaAuthor = '1';
   var $MetaTitle = '1';
   var $lifetime = '15';
   var $session_handler = 'database';
   var $password = '';
   var $sitename = 'MyCWE (City Wholesale Electric)';
   var $MetaDesc = 'Joomla! - the dynamic portal engine and content management system';
   var $MetaKeys = 'joomla, Joomla';
   var $offline_message = 'This site is down for maintenance. Please check back again soon.';

After changing var $host from localhost to 192.168.123.101, I get this error when I login/try to use Joomla admin: "Database Error: Unable to connect to the database:Could not connect to MySQL"

Don't I need to make a change in WAMP config somewhere?

Thanks

Tachikoma

  • Guest
Re: From Localhost to IP
December 14, 2007, 10:06:29 am
Quote from: Kurund Jalmi on December 14, 2007, 09:58:20 am
Also use ping command to confirm that other machines can connect to your machine over network.

Thanks Kurund, yes, All other machine can connect. I know it has to be an issue with the server (localhost/my PC) because when I change the config PHP file, I get an error on my machine.

***UPDATE***

If I am on another machine, and I click on one of the CiviCRM components (on the Joomla Fronpage), The URL it is using is localhost, and I get Page cannot be displayed, but If I edit the URL and insert the server machines IP, that page works, and (in this case) my contact search loads.
« Last Edit: December 14, 2007, 10:40:47 am by Tachikoma »

Tachikoma

  • Guest
Re: From Localhost to IP
December 17, 2007, 02:11:14 pm
So, I think it's a WAMp issue, but their forums are not that great.

Any ideas?

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: From Localhost to IP
December 18, 2007, 07:00:42 am
If you plug in your IP 192.168.123.101 into a browser, are you directed to the WAMP admin page?
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • From Localhost to IP

This forum was archived on 2017-11-26.