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 »
  • Using CiviCRM »
  • Using CiviMail »
  • Using CiviSMTP (Moderator: shane) »
  • Civimail User Check : it appears that the proxy URL that you gave is invalid
Pages: [1]

Author Topic: Civimail User Check : it appears that the proxy URL that you gave is invalid  (Read 4384 times)

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
Civimail User Check : it appears that the proxy URL that you gave is invalid
September 11, 2008, 10:30:08 am
I'm configuring CiviMail with the UAS SMTP service.

It's a Drupal 6.4 multisite install with CiviCRM 2.1 beta4. The CiviCRM codebase is in sites/example.com/modules and civicrm.settings.php is in sites/example.com/

From http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+for+Drupal+-+Configure+Multi-site+Installations

"then you need to create a file named 'settings_location.php' in the top-level directory of your codebase as follows:"

// the following (/home/lobo/public_html/drupal/sites/)
// should be changed to your sites directory
define( 'CIVICRM_CONFDIR', '/home/lobo/public_html/drupal/sites/' );

I'm not clear whether this should be:
define( 'CIVICRM_CONFDIR', '/var/www/example/sites/' );
or
define( 'CIVICRM_CONFDIR', '/var/www/example/sites/example.com/' );

And whether it should go in:
/var/www/example/
or
/var/www/example/sites/example.com/modules/civicrm/

When I try to access the proxy url in a browser I get:
Could not find valid configuration dir, best guess: /var/www/example/sites/example.com/modules/civicrm/../../sites

?

Neil





Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Civimail User Check : it appears that the proxy URL that you gave is invalid
September 11, 2008, 11:37:56 am

we dont do any testing with multi-site configs, so you might have to step up and help us out a bit here :). I'm assuming u have different civicrm db's for each site

settings_location.php should go in: /var/www/example/sites/example.com/modules/civicrm/

and should contain

define( 'CIVICRM_CONFDIR', '/var/www/example/sites/' );

basically this is used in /var/www/example/sites/example.com/modules/civicrm/civicrm.config.php and there is code in there that attempts to get the right directory for the civicrm.settings.php file and load it in (line 108 or so)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Neil Adair

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: MariaDB 10
  • PHP version: 5.5 FPM
Re: Civimail User Check : it appears that the proxy URL that you gave is invalid
September 11, 2008, 11:58:52 am
Yes that worked! Thanks

It was my first guess but I wasn't sure. Change the third reference to "codebase" to "CiviCRM codebase" like the first two and it will be clearer in the instructions here http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+for+Drupal+-+Configure+Multi-site+Installations

   Sharing a Single CiviCRM Codebase Via Symlinks

If your CiviCRM codebase is not located within the modules subdirectory of the root Drupal directory (for example, if there is a link from there to the CiviCRM codebase), then you need to create a file named 'settings_location.php' in the top-level directory of your codebase as follows:

Also this applies even if you're not sharing the codebase  or using symlinks but whenever the CiviCRM codebase is not in root/modules.
Haven't run into any issues with this before the civimail soap setup.

shane

  • Moderator
  • I post frequently
  • *****
  • Posts: 265
  • Karma: 16
Re: Civimail User Check : it appears that the proxy URL that you gave is invalid
September 11, 2008, 12:52:16 pm
thx for getting that Lobo

jubex

  • Guest
Re: Civimail User Check : it appears that the proxy URL that you gave is invalid
March 05, 2010, 07:47:52 pm
Indeed.. thanks for these posts guys. Really helped me get things straight :)

Nerdcore

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.1.x
  • CMS version: Drupal 6.x / 7.x
  • MySQL version: 5.1
  • PHP version: 5.2
Re: Civimail User Check : it appears that the proxy URL that you gave is invalid
August 20, 2012, 07:29:42 am
Yikes! The link used above [http://wiki.civicrm.org/confluence/display/CRMDOC41/CiviCRM+for+Drupal+-+Configure+Multi-site+Installations] seems to be dead.

I am having this same problem after upgrading from 3.x to 4.1.x where the cron and Scheduled Jobs system has changed. Perhaps I just missed it but there didn't seem to be any reference to check for this settings_location.php during the upgrade instructions...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail »
  • Using CiviSMTP (Moderator: shane) »
  • Civimail User Check : it appears that the proxy URL that you gave is invalid

This forum was archived on 2017-11-26.