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 (Moderator: Piotr Szotkowski) »
  • Can't test configuration
Pages: [1]

Author Topic: Can't test configuration  (Read 1418 times)

sraisz

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
    • sambandha.net
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
Can't test configuration
July 17, 2010, 12:08:33 pm
I'm doing a new install of 3.2.beta

In the documentation for setting up CiviMail it says:

Quote
Once you do this, you can test whether the polling works by visiting CiviCRM-Resource-URL/bin/CiviMailProcessor.php?name=username&pass=password&key=key  (with the bold parts replaced by your site's CiviCRM Resource URL, credentials pair of a user with CiviMail access and your site's key).

I've tried this using the admin user (all permissions for everything) and I  get a 403 error:

Quote
Forbidden

You don't have permission to access /sites/all/modules/civicrm/bin/ on this server.

I've double checked the path user name, etc. and can't get past this.

I know the user/pw/key are ok because if i put anything different I get a relevant error like:

Quote
ERROR: Invalid username and/or password

any suggestions?
« Last Edit: July 17, 2010, 12:15:25 pm by sraisz »

sraisz

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
    • sambandha.net
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
Re: Can't test configuration
July 25, 2010, 05:33:12 am
I really need some help with this. Can anyone suggest what's happening?


xcf33

  • I post frequently
  • ***
  • Posts: 181
  • Karma: 7
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.19/6.20
  • MySQL version: 5.x
  • PHP version: 5.2.6
Re: Can't test configuration
July 25, 2010, 02:05:08 pm
Have you checked your file permission for the bin directory as well as the files?

sraisz

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
    • sambandha.net
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
Re: Can't test configuration
July 29, 2010, 11:11:53 am
the file permissions were 655, so I set them to 777.

But I still get the same error.

I don't get the error on a different host that I am experimenting with. So I think it is host related.





Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Can't test configuration
July 30, 2010, 09:05:18 am
The only thing that comes to my mind is that on this problematic host the Drupal’s .htaccess file might be a bit more effective in restricting access (or some other server configuration restricts it – say, a rule that …/bin/… directories cannot be accessed by default).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

sraisz

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
    • sambandha.net
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
Re: Can't test configuration
July 30, 2010, 07:11:39 pm
I tried running the scripts from a different folder and got this:

Quote
Could not find valid configuration dir, best guess: /home/krishna/domains/fobtestsite.com/public_html/civiscriptest/../../sites

If this is a standalone installation (i.e. not a Drupal or Joomla module) and you'd like to re-initialize it, click here.

Then I tried renaming the original bin folder and got the same 403 error.

I'll check more with our web host.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Can't test configuration
August 02, 2010, 04:32:10 am
Quote from: sraisz on July 30, 2010, 07:11:39 pm
I tried running the scripts from a different folder and got this:

Code: [Select]
Could not find valid configuration dir, best guess: /home/krishna/domains/fobtestsite.com/public_html/civiscriptest/../../sites

Do check with your web host, but just in case – the above can be fixed by creating a settings_location.php file (in the same directory where the bin directory is) with the following contents:

Code: [Select]
<?php
define
('CIVICRM_CONFDIR', '/some/path/');

…where /some/path/ points to the directory with the civicrm.settings.php file.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

mariagwyn

  • I post frequently
  • ***
  • Posts: 149
  • Karma: 4
  • CiviCRM version: CiviCRM 3.3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5.2.14
  • PHP version: 5.0.91-50-log
Re: Can't test configuration
January 31, 2011, 09:48:16 pm
I am getting the same error "Could not find valid configuration dir, best guess: /home/scethics/public_html/sites/scethics.org/modules/civicrm/../../sites" when I try to run "UpdateMembershipRecord.php."  I had this running fine before I upgraded.  However, when I upgraded, I moved the Civi module from sites/all/modules to sites/scethics.org/modules.  I modified all the urls in both settings.php as well as in the civi database.  I also tried to add a settings_location.php file.  NOthing works, same error every time. 

Is there something else I can check?

Thanks,
Maria

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Can't test configuration

This forum was archived on 2017-11-26.